.fulfillment-page {
  --text: var(--ink, #172033);
  --primary: var(--blue, #2f7df4);
  --muted: #7c879b;
  --card: #fff;
  --border: var(--line, #e9edf3);
  --soft: #f7f9fc;
  --soft-blue: #f3f7ff;
  --soft-green: #eefaf5;
  --soft-amber: #fff8e8;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 16px;
  color: var(--text);
}

[data-theme="dark"] .fulfillment-page {
  --text: #e8eef8;
  --primary: #6da8ff;
  --muted: #97a5b9;
  --card: #121c2b;
  --border: #28364b;
  --soft: #101a29;
  --soft-blue: #14243b;
  --soft-green: #122b24;
  --soft-amber: #302718;
}

.fulfillment-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.fulfillment-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.fulfillment-heading p,
.fulfillment-section-kicker,
.fulfillment-workflow-heading span {
  display: block;
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.fulfillment-heading h1 {
  margin: 0 0 7px;
  font-size: 30px;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.fulfillment-heading>div>span {
  color: var(--muted);
  font-size: 13px;
}

.fulfillment-heading-summary {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.fulfillment-heading-summary span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 130px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
}

.fulfillment-heading-summary b {
  color: var(--text);
  font-size: 18px;
}

.fulfillment-back {
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 12px/1.4 inherit;
  cursor: pointer;
}

.fulfillment-back:hover,
.fulfillment-back:focus-visible {
  color: var(--primary);
}

.fulfillment-heading.detail {
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #d8e6fb;
  border-radius: 14px;
  background: linear-gradient(115deg, var(--soft-blue), var(--card) 70%);
}

[data-theme="dark"] .fulfillment-heading.detail {
  border-color: #2b4260;
}

.fulfillment-detail-identity {
  min-width: 0;
}

.fulfillment-detail-identity>div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fulfillment-detail-identity h1 {
  margin: 0 0 5px;
  font-size: 25px;
}

.fulfillment-notice,
.fulfillment-context {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #bfd6ff;
  background: #eef5ff;
  border-radius: 11px;
  color: #2769cc;
}

.fulfillment-context {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fulfillment-context>span {
  padding: 3px 7px;
  border-radius: 5px;
  background: #dceaff;
  font-size: 10px;
  font-weight: 700;
}

.fulfillment-notice.error {
  border-color: #f1bbc0;
  background: #fff1f2;
  color: #c43d4d;
}

[data-theme="dark"] .fulfillment-notice,
[data-theme="dark"] .fulfillment-context {
  border-color: #355989;
  background: #14243b;
  color: #85b8ff;
}

.fulfillment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.fulfillment-column,
.fulfillment-panel,
.fulfillment-workflow {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(30, 45, 75, .04);
}

.fulfillment-column,
.fulfillment-panel {
  padding: 18px;
}

.fulfillment-pending {
  border-top: 3px solid var(--primary);
}

.fulfillment-batches {
  border-top: 3px solid #8b5cf6;
}

.fulfillment-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.fulfillment-section-title h2,
.fulfillment-panel h2,
.fulfillment-workflow h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.fulfillment-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.fulfillment-section-title>b {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--soft-blue);
  color: var(--primary);
  font-size: 12px;
}

.fulfillment-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.fulfillment-order {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fulfillment-order::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #dfe9f8;
}

.fulfillment-order:hover {
  border-color: #b9cef0;
  box-shadow: 0 8px 22px rgba(30, 75, 145, .08);
  transform: translateY(-1px);
}

.fulfillment-order.highlight {
  border-color: var(--primary);
  background: var(--soft-blue);
  box-shadow: 0 0 0 3px rgba(47, 125, 244, .08);
}

.fulfillment-order.highlight::before {
  background: var(--primary);
}

.fulfillment-order header,
.fulfillment-order footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fulfillment-order header>div {
  min-width: 0;
}

.fulfillment-order header span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.fulfillment-order header strong {
  display: block;
  overflow-wrap: anywhere;
}

.fulfillment-order header>b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--soft-green);
  color: #147a55;
  font-size: 11px;
}

.fulfillment-order>p {
  display: flex;
  gap: 7px;
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.fulfillment-order footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.fulfillment-order footer label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.fulfillment-order [data-shipment-quantity] {
  width: 70px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.fulfillment-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.fulfillment-table-wrap table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.fulfillment-table-wrap th,
.fulfillment-table-wrap td {
  padding: 13px 11px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}

.fulfillment-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.fulfillment-table-wrap tbody tr:hover td {
  background: var(--soft-blue);
}

.fulfillment-table-wrap th {
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
}

.fulfillment-table-wrap th:last-child,
.fulfillment-table-wrap td:last-child {
  position: sticky;
  right: 0;
  text-align: right;
  background: var(--card);
  box-shadow: -8px 0 12px -12px rgba(15, 23, 42, .45);
}

.fulfillment-table-wrap tbody tr:hover td:last-child {
  background: var(--soft-blue);
}

.fulfillment-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.fulfillment-status.ready { background: #fff5df; color: #a76606; }
.fulfillment-status.shipping,
.fulfillment-status.partial { background: #eaf2ff; color: #286ed2; }
.fulfillment-status.done { background: #e9f8f1; color: #147a55; }
.fulfillment-status.canceled { background: #fff0f1; color: #bd3d4c; }

.fulfillment-empty,
.fulfillment-loading,
.fulfillment-load-error {
  padding: 36px;
  text-align: center;
  color: var(--muted, #7c879b);
}

.fulfillment-empty strong,
.fulfillment-empty span {
  display: block;
}

.fulfillment-empty strong {
  margin-bottom: 6px;
  color: var(--text);
}

.fulfillment-empty span {
  font-size: 12px;
}

.fulfillment-load-error {
  color: #c43d4d;
  background: #fff;
  border: 1px solid #f1bbc0;
  border-radius: 14px;
}

.fulfillment-workflow {
  padding: 17px 18px 18px;
}

.fulfillment-workflow-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.fulfillment-workflow-heading strong {
  color: var(--primary);
  font-size: 12px;
}

.fulfillment-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 5px 15px;
}

.fulfillment-steps>span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 8px;
  color: var(--muted);
  text-align: center;
}

.fulfillment-steps>span:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 14px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--border);
}

.fulfillment-steps>span.done:not(:last-child)::after {
  background: #72c3a4;
}

.fulfillment-steps i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-style: normal;
  font-size: 11px;
}

.fulfillment-steps b {
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
}

.fulfillment-steps small {
  font-size: 10px;
}

.fulfillment-steps .done { color: #237c5d; }
.fulfillment-steps .done i { border-color: #31a474; background: #31a474; color: #fff; }
.fulfillment-steps .current { color: var(--primary); }
.fulfillment-steps .current i { border-color: var(--primary); background: var(--soft-blue); color: var(--primary); font-weight: 700; box-shadow: 0 0 0 4px rgba(47,125,244,.08); }
.fulfillment-steps .current b { color: var(--primary); }
.fulfillment-steps .error { color: #bd3d4c; }
.fulfillment-steps .error i { border-color: #bd3d4c; color: #bd3d4c; font-weight: 700; }

.fulfillment-guidance {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid #bfd6ff;
  background: #eef5ff;
  border-radius: 10px;
  color: #2769cc;
}

.fulfillment-guidance>div small,
.fulfillment-guidance>div strong {
  display: block;
}

.fulfillment-guidance>div small {
  margin-bottom: 3px;
  font-size: 10px;
  opacity: .78;
}

.fulfillment-guidance>div strong {
  font-size: 13px;
}

.fulfillment-guidance>span,
.fulfillment-guidance ul {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.fulfillment-guidance ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-left: 18px;
}

.fulfillment-guidance.warning { border-color: #f4d7a1; background: #fff8e8; color: #98600a; }
.fulfillment-guidance.done { border-color: #bfe9d6; background: #eefbf5; color: #147a55; }
.fulfillment-guidance.error { border-color: #f1bbc0; background: #fff1f2; color: #c43d4d; }

[data-theme="dark"] .fulfillment-guidance.current { border-color: #355989; background: #14243b; color: #85b8ff; }
[data-theme="dark"] .fulfillment-guidance.warning { border-color: #5d4a25; background: #302718; color: #e9b75f; }
[data-theme="dark"] .fulfillment-guidance.done { border-color: #245541; background: #122b24; color: #66c7a1; }

.fulfillment-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.fulfillment-detail-grid main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.fulfillment-panel {
  padding: 16px;
}

.fulfillment-task-panel.is-current {
  border-color: #a9c9f8;
  background: var(--soft-blue);
}

.fulfillment-task-panel.is-complete {
  border-color: #ccebdd;
}

.fulfillment-task-result {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft-green);
  color: #147a55;
  font-size: 12px;
  font-weight: 600;
}

.fulfillment-task-result span {
  color: var(--muted);
  font-weight: 500;
}

.fulfillment-panel.sticky {
  position: sticky;
  top: 16px;
}

.fulfillment-summary {
  border-top: 3px solid var(--primary);
}

.fulfillment-panel.sticky dl {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
}

.fulfillment-panel.sticky dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.fulfillment-panel.sticky dt {
  color: var(--muted);
  font-size: 12px;
}

.fulfillment-panel.sticky dd {
  margin: 0;
  font-weight: 700;
}

.fulfillment-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.fulfillment-actions .btn {
  justify-content: center;
  width: 100%;
}

.fulfillment-muted {
  margin: 0;
  color: var(--muted);
}

.shipment-lines {
  display: grid;
  gap: 8px;
}

.shipment-lines>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--soft);
  border-radius: 9px;
  padding: 11px 13px;
}

.shipment-lines span {
  display: flex;
  flex-direction: column;
}

.shipment-lines small {
  color: var(--muted);
  margin-top: 3px;
}

.fulfillment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fulfillment-fact-group {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 10px;
}

.fulfillment-fact-group h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.fulfillment-fact-group dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fulfillment-fact-group dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
}

.fulfillment-fact-group dt { color: var(--muted); }
.fulfillment-fact-group dd { min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }

[data-package-list],
[data-waybill-list] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fulfillment-package,
.fulfillment-waybill {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--soft);
  padding: 14px;
}

.fulfillment-package header,
.fulfillment-waybill header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.fulfillment-package header div { display: flex; align-items: center; gap: 9px; }
.fulfillment-package header span { color: var(--muted); font-size: 11px; }

.package-measurements,
.waybill-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.fulfillment-package label,
.fulfillment-waybill label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.fulfillment-package input,
.fulfillment-waybill input,
.fulfillment-waybill select {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--card);
  color: var(--text);
}

.package-wide { margin-top: 10px; }
.package-contents { display: grid; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border); }
.package-contents>span { font-size: 12px; font-weight: 700; }
.package-contents label { display: grid; grid-template-columns: minmax(180px,1fr) 100px minmax(180px,.7fr); align-items: center; gap: 8px; }
.package-contents label span { display: flex; flex-direction: column; color: var(--text); font-size: 12px; }
.package-contents small { color: var(--muted); }
.package-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}
.package-copy>span { font-size: 12px; font-weight: 700; }
.package-copy label { flex-direction: row; align-items: center; gap: 6px; }
.package-copy input { width: 68px; }
.package-copy small { flex-basis: 100%; color: var(--muted); }
.fulfillment-list-workspace {
  --finance-border: var(--border);
  --finance-muted: var(--muted);
  --finance-card: var(--card);
  --finance-soft: var(--soft);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(30, 45, 75, .04);
}

.fulfillment-list-workspace>.fulfillment-view-tabs { margin: 0; padding: 0 18px; }
.fulfillment-list-workspace>.fulfillment-view-tabs,
.fulfillment-detail-tabs { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; }
.fulfillment-list-workspace>.fulfillment-view-tabs button,
.fulfillment-detail-tabs button { flex: 0 0 auto; }
.fulfillment-detail-tabs { margin: 0 0 16px; padding: 0 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.fulfillment-workspace-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
.fulfillment-workspace-card { display: grid; gap: 6px; min-width: 0; padding: 16px; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; }
.fulfillment-workspace-card:hover,
.fulfillment-workspace-card:focus-visible { border-color: var(--primary); background: var(--soft-blue); }
.fulfillment-workspace-card b { font-size: 18px; }
.fulfillment-workspace-card small { color: var(--muted); white-space: normal; }
.fulfillment-waybill-goods { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.fulfillment-waybill-goods>strong { font-size: 13px; }
.fulfillment-waybill-good { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 8px; background: var(--soft); }
.fulfillment-waybill-good>span { display: grid; gap: 2px; min-width: 0; }
.fulfillment-waybill-good small { color: var(--muted); }
.fulfillment-waybill-good b { flex: 0 0 auto; }
.fulfillment-waybill-good input { width: 88px; min-height: 38px; text-align: center; }
.fulfillment-waybill-order-720 { min-width: 0; border-radius: 9px; background: var(--soft); padding: 10px 12px; }
.fulfillment-waybill-order-720 h3 { margin: 0 0 5px; font-size: 13px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.fulfillment-waybill-order-lines-720 { display: flex; flex-wrap: wrap; gap: 6px; }
.fulfillment-waybill-chip-723 { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--muted); line-height: 1.35; }
.fulfillment-waybill-chip-723 strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; }
.fulfillment-waybill-chip-723 b { flex: 0 0 auto; font-size: 12px; font-weight: 600; }

.fulfillment-list-panel {
  min-width: 0;
  padding: 16px 18px 18px;
}
.fulfillment-list-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fulfillment-list-search,
.fulfillment-status-filter { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.fulfillment-list-search { width: min(420px, 44%); }
.fulfillment-list-search input,
.fulfillment-status-filter select { height: 38px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; }
.fulfillment-list-search input { width: 100%; padding: 0 11px; }
.fulfillment-status-filter select { min-width: 160px; padding: 0 30px 0 10px; }
.fulfillment-filter-group { display: flex; align-items: center; gap: 6px; }
.fulfillment-filter-group>span { margin-right: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.fulfillment-filter-group button { min-height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--muted); font: 600 11px/1 inherit; cursor: pointer; }
.fulfillment-filter-group button:hover,
.fulfillment-filter-group button.active { border-color: #bcd4fa; background: var(--soft-blue); color: var(--primary); }
.fulfillment-filter-group b { margin-left: 3px; font-size: 10px; }

.fulfillment-pending-table table { min-width: 1120px; }
.fulfillment-table-wrap td { vertical-align: middle; }
.fulfillment-table-wrap td>small,
.fulfillment-table-wrap td>strong { display: block; }
.fulfillment-table-wrap td>small { max-width: 270px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.fulfillment-table-wrap tr.has-error td { background: #fffafa; }
.fulfillment-table-wrap tr.has-error:hover td { background: #fff5f6; }
[data-theme="dark"] .fulfillment-table-wrap tr.has-error td { background: #25191f; }
.fulfillment-record-link { max-width: 220px; overflow: hidden; padding: 0; border: 0; background: transparent; color: var(--primary); font: 700 12px/1.4 inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.fulfillment-record-link:hover { text-decoration: underline; }
.fulfillment-select-cell { width: 38px; text-align: center !important; }
.fulfillment-select-cell input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.fulfillment-address { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.fulfillment-source { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.fulfillment-source.ready { background: var(--soft-green); color: #147a55; }
.fulfillment-source.error { background: #fff0f1; color: #bd3d4c; }
.fulfillment-quantity { display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.fulfillment-quantity input { width: 74px; height: 32px; padding: 0 7px; border: 0; background: transparent; color: var(--text); font: inherit; }
.fulfillment-quantity em { display: grid; min-width: 30px; place-items: center; border-left: 1px solid var(--border); background: var(--soft); color: var(--muted); font-size: 10px; font-style: normal; }
.fulfillment-filter-empty { padding: 28px; color: var(--muted); font-size: 12px; text-align: center; }
.fulfillment-selection-bar { position: sticky; z-index: 4; top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 11px 12px; border: 1px solid #c7dcff; border-radius: 10px; background: var(--soft-blue); box-shadow: 0 8px 22px rgba(47, 125, 244, .12); }
.fulfillment-selection-bar[hidden] { display: none; }
.fulfillment-selection-bar>div { display: flex; align-items: baseline; gap: 12px; }
.fulfillment-selection-bar strong { color: var(--text); font-size: 12px; }
.fulfillment-selection-bar small { color: var(--muted); font-size: 11px; }
.btn.compact { min-height: 32px; padding: 0 10px; font-size: 11px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.order-select{display:inline-flex!important;align-items:center;gap:7px}.order-select input{width:16px;height:16px}.fulfillment-order>small{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.5}.package-order-weights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px;padding-top:11px;border-top:1px solid var(--border)}.package-order-weights>span,.package-order-weights>small{grid-column:1/-1}.package-order-weights>span{font-size:12px;font-weight:700}.package-order-weights>small{color:var(--muted);font-size:11px}.package-order-weights label{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:8px;font-size:12px}
.fulfillment-waybill fieldset { display: flex; gap: 14px; flex-wrap: wrap; border: 0; margin: 12px 0 0; padding: 0; }
.fulfillment-waybill legend { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.fulfillment-waybill fieldset label { display: flex; flex-direction: row; align-items: center; color: var(--text); }
.fulfillment-waybill input[type=checkbox] { width: 16px; height: 16px; }
.fulfillment-waybill[data-incremental-waybill]>header>div:last-child,
.fulfillment-waybill[data-repack-cost]>header>div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fulfillment-inline-note { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); color: var(--text); font-size: 12px; }
.waybill-signed { color: #147a55; font-weight: 700; }

.fulfillment-checklists { display: grid; gap: 10px; }
.fulfillment-checklists section { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; }
.fulfillment-checklists section>header { display: flex; justify-content: space-between; padding: 9px 11px; background: var(--soft); font-size: 12px; }
.fulfillment-checklists section>header span { color: var(--muted); }
.fulfillment-checklist-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 100px 72px; gap: 10px; align-items: center; padding: 9px 11px; border-top: 1px solid var(--border); font-size: 12px; }
.fulfillment-checklist-item>span:first-child { display: flex; min-width: 0; flex-direction: column; }
.fulfillment-checklist-item small { color: var(--muted); }
.fulfillment-checklist-origin,
.fulfillment-checklist-status { justify-self: start; padding: 3px 7px; border-radius: 999px; background: #edf2f8; color: #5f6f86; font-size: 10px; font-weight: 700; }
.fulfillment-checklist-origin.supplement { background: var(--soft-amber); color: #98600a; }
.fulfillment-checklist-status.confirmed { background: var(--soft-green); color: #147a55; }
.fulfillment-checklist-status.exception { background: #fff0f1; color: #bd3d4c; }
.fulfillment-empty.compact { padding: 14px; }

.fulfillment-cost { margin-top: 13px; padding: 12px; border: 1px solid #cfe0f8; border-radius: 9px; background: var(--card); }
.fulfillment-cost>header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fulfillment-cost>header div { display: flex; flex-direction: column; gap: 2px; }
.fulfillment-cost>header span,
.fulfillment-cost.unavailable>span { color: var(--muted); font-size: 11px; }
.fulfillment-cost>header em { padding: 3px 7px; border-radius: 999px; background: var(--soft-green); color: #147a55; font-size: 10px; font-style: normal; font-weight: 700; }
.fulfillment-cost-fields { display: grid; grid-template-columns: 1fr 1fr 1fr minmax(150px, 1.4fr); gap: 10px; }
.fulfillment-cost select { height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: var(--card); color: var(--text); }
.fulfillment-cost>.btn { margin-top: 10px; }
.fulfillment-cost.unavailable { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-style: dashed; background: var(--soft); }
.shipment-cost-allocation-dialog { width: min(760px, calc(100vw - 32px)); }
.shipment-cost-allocation-summary>header { border-bottom: 0; }
.shipment-cost-allocation-list { display: grid; gap: 0; }
.shipment-cost-allocation-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--border); }
.shipment-cost-allocation-row>span:first-child { display: grid; gap: 4px; }
.shipment-cost-allocation-row small { color: var(--muted); }
.shipment-cost-allocation-row>span:nth-child(2) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.shipment-cost-allocation-row input,
.shipment-cost-allocation-reason input { width: 100%; min-width: 0; }
.shipment-cost-allocation-row b { color: var(--muted); font-size: 11px; }
.shipment-cost-allocation-reason { display: grid; gap: 6px; padding: 13px 14px; border-top: 1px solid var(--border); }
.shipment-cost-allocation-reason>span { color: var(--muted); font-size: 11px; font-weight: 700; }
.shipment-cost-allocation-reason select { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: var(--card); color: var(--text); }

.shipment-preview-dialog {
  --text: var(--ink, #172033);
  --primary: var(--blue, #2f7df4);
  --muted: #7c879b;
  --card: #fff;
  --border: var(--line, #e9edf3);
  --soft: #f7f9fc;
  --soft-blue: #f3f7ff;
  --soft-green: #eefaf5;
  --soft-amber: #fff8e8;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 70px rgb(24 42 72 / 24%);
  overflow: hidden;
  overscroll-behavior: contain;
}
[data-theme="dark"] .shipment-preview-dialog {
  --text: #e8eef8;
  --primary: #6da8ff;
  --muted: #97a5b9;
  --card: #121c2b;
  --border: #28364b;
  --soft: #101a29;
  --soft-blue: #14243b;
  --soft-green: #122b24;
  --soft-amber: #302718;
}
.shipment-preview-dialog::backdrop { background: rgb(20 32 54 / 48%); }
html.shipping-dialog-open,
html.shipping-dialog-open body { overflow: hidden; overscroll-behavior: none; }
.shipment-preview-dialog>form,
.shipment-preview-dialog>.shipping-request-detail { display: flex; max-height: calc(100vh - 50px); min-height: 0; flex-direction: column; overflow: hidden; }
.shipment-preview-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.shipment-preview-dialog>form>header,
.shipment-preview-dialog>form>footer,
.shipment-preview-dialog>.shipping-request-detail>header,
.shipment-preview-dialog>.shipping-request-detail>footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.shipment-preview-dialog>form>header,
.shipment-preview-dialog>.shipping-request-detail>header { border-bottom: 1px solid var(--border); }
.shipment-preview-dialog>form>header h2,
.shipment-preview-dialog>.shipping-request-detail>header h2 { margin: 3px 0; font-size: 20px; }
.shipment-preview-dialog>form>header p,
.shipment-preview-dialog>.shipping-request-detail>header p { margin: 0; color: var(--muted); font-size: 12px; }
.shipment-preview-dialog>form>footer,
.shipment-preview-dialog>.shipping-request-detail>footer { justify-content: flex-end; border-top: 1px solid var(--border); }
.shipment-preview-orders { display: grid; gap: 12px; overflow: auto; padding: 16px 20px; }
.shipment-preview-order,
.fulfillment-order-shipping-data { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.shipment-preview-order>header,
.fulfillment-order-shipping-data>header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; background: var(--soft); }
.shipment-preview-order>header div,
.fulfillment-order-shipping-data>header div { display: flex; flex-direction: column; }
.shipment-preview-order>header small,
.fulfillment-order-shipping-data>header small { color: var(--muted); }
.shipment-preview-order>header span,
.fulfillment-order-shipping-data>header span { color: var(--blue); font-size: 12px; font-weight: 700; }
.shipment-preview-order dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.shipment-preview-order dl>div { padding: 10px 13px; border-top: 1px solid var(--border); }
.shipment-preview-order dl>div.wide { grid-column: 1 / -1; }
.shipment-preview-order dt { color: var(--muted); font-size: 11px; }
.shipment-preview-order dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.shipment-preview-accompanying { display: grid; gap: 10px; padding: 13px; border-top: 1px solid var(--border); }
.shipment-preview-accompanying>div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shipment-preview-accompanying>div:first-child small { color: var(--muted); }
.shipment-preview-accompanying-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); }
.shipment-preview-accompanying-row>span { display: grid; gap: 3px; }
.shipment-preview-accompanying-row small { color: var(--muted); }
.shipment-preview-accompanying-row.supplement { grid-template-columns: minmax(140px, 1.2fr) minmax(100px, .6fr) minmax(120px, .7fr) minmax(160px, 1.4fr) auto; background: var(--card); }
.shipment-preview-accompanying-row label { display: grid; gap: 5px; }
.shipment-preview-accompanying-row label>span { color: var(--muted); font-size: 11px; }
.shipment-preview-accompanying-row input,
.shipment-preview-accompanying-row select { width: 100%; min-width: 0; }
.shipment-preview-accompanying-row.invalid { border-color: var(--red); }
.shipment-preview-empty,
.shipment-preview-form-error { margin: 0; color: var(--muted); }
.shipment-preview-form-error { padding: 0 20px 12px; color: var(--red); }
.fulfillment-dispatch-dialog { width: min(560px, calc(100vw - 32px)); }
.fulfillment-dispatch-packaging { padding: 0 20px 20px; }
.fulfillment-dispatch-packaging h3 { margin: 0 0 6px; font-size: 15px; }
.fulfillment-dispatch-packaging p { margin: 0 0 10px; color: var(--muted); }
.fulfillment-dispatch-packaging table { width: 100%; }
.fulfillment-dispatch-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); gap: 14px; padding: 20px; }
.fulfillment-dispatch-fields label,
.fulfillment-dispatch-fields>div { display: grid; align-content: start; gap: 7px; }
.fulfillment-dispatch-fields label>span,
.fulfillment-dispatch-fields>div>span { color: var(--muted); font-size: 12px; }
.fulfillment-dispatch-fields input,
.fulfillment-dispatch-fields select { width: 100%; }
.fulfillment-dispatch-fields small { color: var(--red); }
.fulfillment-dispatch-fields [aria-invalid="true"] { border-color: var(--red); }
.shipment-preview-warnings { margin: 16px 20px 0; padding: 10px 13px; border: 1px solid #f2d18a; border-radius: 9px; background: var(--soft-amber); color: #80520a; }
.shipment-preview-warnings p { margin: 0; }
.fulfillment-order-shipping-list { display: grid; gap: 12px; margin-top: 14px; }
.fulfillment-order-shipping-data>.fulfillment-facts { padding: 12px; }
.fulfillment-shipping-request-summaries { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.fulfillment-shipping-request-summaries>div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fulfillment-shipping-request-summaries>div:first-child small { color: var(--muted); }
.fulfillment-shipping-request-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); }
.fulfillment-shipping-request-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fulfillment-shipping-request-title>span { display: grid; gap: 3px; }
.fulfillment-shipping-request-title small { color: var(--muted); }
.fulfillment-shipping-request-summary dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.fulfillment-shipping-request-summary dl>div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fulfillment-shipping-request-summary dl>div:nth-child(4n) { border-right: 0; }
.fulfillment-shipping-request-summary dl>div.wide { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.fulfillment-shipping-request-summary dt { color: var(--muted); font-size: 11px; }
.fulfillment-shipping-request-summary dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.fulfillment-shipping-request-summary>.fulfillment-record-link { align-self: center; }

@media(max-width: 1100px) {
  .fulfillment-detail-grid { grid-template-columns: 1fr; }
  .fulfillment-panel.sticky { position: static; }
  .fulfillment-summary dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fulfillment-summary dl div { display: block; }
  .fulfillment-actions { flex-direction: row; justify-content: flex-end; }
  .fulfillment-actions .btn { width: auto; }
  .package-measurements,
  .waybill-fields,
  .fulfillment-cost-fields { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 760px) {
  .fulfillment-heading { align-items: flex-start; flex-direction: column; }
  .fulfillment-heading-summary { width: 100%; }
  .fulfillment-heading-summary span { flex: 1; min-width: 0; }
  .fulfillment-heading.detail { padding: 15px; }
  .fulfillment-detail-identity>div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .fulfillment-order-list { grid-template-columns: 1fr; }
  .fulfillment-order footer { align-items: flex-end; }
  .fulfillment-workflow { padding: 15px; }
  .fulfillment-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fulfillment-steps>span { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; }
  .fulfillment-steps>span:not(:last-child)::after { display: none; }
  .fulfillment-steps i { grid-row: 1 / 3; }
  .fulfillment-steps b { margin-top: 0; }
  .fulfillment-guidance { grid-template-columns: 1fr; gap: 8px; }
  .fulfillment-guidance ul { display: grid; gap: 4px; }
  .fulfillment-facts,
  .package-measurements,
  .waybill-fields,
  .fulfillment-cost-fields,
  .fulfillment-summary dl { grid-template-columns: 1fr; }
  .fulfillment-checklist-item { grid-template-columns: minmax(0, 1fr) auto; }
  .fulfillment-actions { flex-direction: column; }
  .fulfillment-actions .btn { width: 100%; }
  .fulfillment-section-title { align-items: stretch; flex-direction: column; }
  .fulfillment-section-title>.btn { align-self: flex-start; }
  .fulfillment-task-result { flex-direction: column; }
  .fulfillment-list-panel { padding: 14px; }
  .fulfillment-list-toolbar { align-items: stretch; flex-direction: column; }
  .fulfillment-list-search { width: 100%; }
  .fulfillment-filter-group { overflow-x: auto; padding-bottom: 2px; }
  .fulfillment-filter-group button { flex: 0 0 auto; }
  .fulfillment-status-filter select { width: 100%; }
  .fulfillment-selection-bar { align-items: stretch; flex-direction: column; }
  .fulfillment-selection-bar>div { justify-content: space-between; }
  .fulfillment-selection-bar .btn { width: 100%; }
  .shipment-preview-order dl { grid-template-columns: 1fr; }
  .fulfillment-shipping-request-summaries>div:first-child,
  .fulfillment-shipping-request-title { align-items: flex-start; flex-direction: column; }
  .fulfillment-shipping-request-summary { grid-template-columns: 1fr; }
  .fulfillment-shipping-request-summary dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fulfillment-shipping-request-summary dl>div:nth-child(4n) { border-right: 1px solid var(--border); }
  .fulfillment-shipping-request-summary dl>div:nth-child(2n) { border-right: 0; }
  .fulfillment-shipping-request-summary>.fulfillment-record-link { justify-self: start; }
  .shipment-preview-accompanying-row.supplement { grid-template-columns: 1fr 1fr; }
  .shipment-preview-accompanying-row.supplement .wide { grid-column: 1 / -1; }
  .shipment-preview-order dl>div.wide { grid-column: auto; }
  .shipment-cost-allocation-row { grid-template-columns: 1fr; }
  .fulfillment-dispatch-fields { grid-template-columns: 1fr; }
  .shipment-preview-dialog>form>header,
  .shipment-preview-dialog>.shipping-request-detail>header { align-items: flex-start; }
}

@media(max-width: 480px) {
  .fulfillment-order footer { align-items: stretch; flex-direction: column; }
  .fulfillment-order footer label { justify-content: space-between; }
  .fulfillment-order footer .btn { justify-content: center; }
  .fulfillment-heading-summary { flex-direction: column; }
  .fulfillment-steps { grid-template-columns: 1fr; }
}

/* SHIPMENT-DETAIL-SELECTION-334: extend existing fulfillment table and quantity controls. */
.shipment-source-list { display: grid; gap: 12px; padding: 12px; background: var(--card); }
.shipment-source-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 140px; align-items: center; gap: 12px; }
.shipment-source-row small { display: block; white-space: normal; overflow-wrap: anywhere; color: var(--muted); }
.shipment-source-row .fulfillment-quantity { flex-wrap: wrap; }
.shipment-source-row .shipment-field-error { width: 100%; color: #bd3d4c; }
.shipment-source-row [aria-invalid="true"] { border-color: #bd3d4c; }
[data-source-error][hidden],
[data-source-details][hidden] { display: none; }
.shipment-preview-order .shipment-lines { padding: 12px; }
.shipment-preview-order + .shipment-preview-order { margin-top: 12px; }
[data-shipment-actions] { flex-wrap: wrap; }
[data-shipment-error] { flex-basis: 100%; order: 3; margin: 0; }

/* SHIPMENT-REQUEST-BATCHING-337 */
.shipment-request-accompanying,
.shipment-request-source-form,
.shipment-request-meta { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.shipment-request-accompanying label { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; align-items: center; gap: 10px; }
.shipment-request-meta { grid-template-columns: repeat(3,minmax(0,1fr)); }
.shipment-request-meta label { display: grid; gap: 6px; }
.shipment-request-meta .wide { grid-column: 1 / -1; }
.shipment-request-meta textarea { min-height: 76px; resize: vertical; }
.shipping-request-dialog>.shipping-request-detail { min-width: 0; }
.shipping-request-detail-body { flex: 1 1 auto; min-height: 0; align-content: start; grid-auto-rows: max-content; overflow-y: auto; overscroll-behavior: contain; }
.shipping-request-detail-accompanying { border-top: 1px solid var(--border); }
[data-request-details][hidden] { display: none; }
@media(max-width:760px) {
  .shipment-request-meta { grid-template-columns: 1fr; }
  .shipment-request-meta .wide { grid-column: auto; }
  .shipment-request-accompanying label { grid-template-columns: 1fr; }
  .shipment-source-row { grid-template-columns: 20px minmax(0,1fr); }
  .shipment-source-row>.fulfillment-quantity,
  .shipment-source-row>input[type="number"] { grid-column: 2; width: 100%; }
}

/* SHIPMENT-DETAIL-WORKBENCH-378 */
.fulfillment-shipment-overview { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.35fr); align-items: center; gap: 18px 28px; }
.fulfillment-overview-metrics { display: grid; grid-template-columns: repeat(5,minmax(86px,1fr)); min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); }
.fulfillment-overview-metrics>span { display: grid; min-width: 0; gap: 3px; padding: 10px 12px; border-right: 1px solid var(--border); }
.fulfillment-overview-metrics>span:last-child { border-right: 0; }
.fulfillment-overview-metrics small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fulfillment-overview-metrics strong { font-size: 15px; }
.fulfillment-release-compact { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: -8px; color: var(--muted); font-size: 12px; }
.fulfillment-order-shipping-data>header { align-items: flex-start; }
.fulfillment-order-shipping-data>header>div:first-child { gap: 3px; min-width: 220px; }
.fulfillment-delivery-group { color: var(--blue)!important; font-size: 11px!important; letter-spacing: .02em; }
.fulfillment-delivery-metrics { display: flex!important; flex: 1; flex-flow: row wrap!important; align-items: center; justify-content: flex-end; gap: 7px 12px; min-width: 0; }
.fulfillment-delivery-metrics span { color: var(--muted)!important; font-weight: 500!important; }
.fulfillment-delivery-metrics b { font-size: 12px; }
.fulfillment-manifest-table { border-top: 1px solid var(--border); }
.fulfillment-manifest-table table { min-width: 760px; }
.fulfillment-manifest-table td strong,
.fulfillment-manifest-table td small { display: block; }
.fulfillment-manifest-table td small { margin-top: 3px; color: var(--muted); }
.fulfillment-delivery-details { border-top: 1px solid var(--border); }
.fulfillment-delivery-details>summary { padding: 10px 13px; cursor: pointer; color: var(--blue); font-size: 12px; font-weight: 700; list-style-position: inside; }
.fulfillment-delivery-details>.fulfillment-facts { padding: 0 12px 12px; }
.fulfillment-shipping-request-summary { grid-template-columns: minmax(180px,1.15fr) minmax(270px,1.3fr) minmax(220px,1fr) auto; align-items: center; padding: 9px 10px; }
.fulfillment-shipping-request-summary>span { display: grid; gap: 2px; }
.fulfillment-shipping-request-summary>span:nth-child(2),
.fulfillment-shipping-request-summary>span:nth-child(3) { color: var(--muted); font-size: 12px; }
.fulfillment-shipping-request-summary small { color: var(--muted); }
.fulfillment-shipping-request-summary>.wide { grid-column: 1 / -1; }
.fulfillment-checklists { gap: 12px; }
.fulfillment-checklists>section { overflow: hidden; }
.fulfillment-checklists>section>header { align-items: center; }
.fulfillment-checklists>section>header>div { display: grid; gap: 3px; }
.fulfillment-checklists>section>header small { color: var(--muted); font-size: 11px; }
.fulfillment-checklists table { min-width: 760px; }
.fulfillment-checklists td { vertical-align: top; }
.fulfillment-checklists td>strong,
.fulfillment-checklists td>small,
.fulfillment-checklists td>span>small { display: block; }
.fulfillment-checklists td>small,
.fulfillment-checklists td>span>small { margin-top: 3px; color: var(--muted); }
.fulfillment-checklist-origin { display: inline-block; color: var(--text); font-size: 12px; }
.fulfillment-checklist-origin.supplement { color: var(--blue); }
.fulfillment-checklist-status { display: inline-block; font-size: 12px; font-weight: 700; }
.fulfillment-checklist-status.confirmed { color: var(--green); }
.fulfillment-checklist-status.pending { color: var(--muted); }
.fulfillment-checklist-status.exception { color: var(--red); }
.fulfillment-accompanying-sources>summary { cursor: pointer; color: var(--blue); font-size: 12px; }
.fulfillment-accompanying-sources small { display: block; margin-top: 4px; color: var(--muted); }
.fulfillment-coverage { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 11px; font-weight: 500; }
.fulfillment-coverage b { color: inherit; font-size: inherit; font-weight: 600; }
.fulfillment-package header>div,
.fulfillment-waybill header>div { display: grid; gap: 3px; }
.fulfillment-package-readonly { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.fulfillment-package-readonly>summary { display: grid; grid-template-columns: minmax(120px,.45fr) minmax(220px,.8fr) minmax(240px,1fr); align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style-position: inside; background: var(--soft); }
.fulfillment-package-readonly>summary>span:first-child { display: grid; gap: 2px; }
.fulfillment-package-readonly>summary small { color: var(--muted); }
.fulfillment-package-readonly-body { padding: 12px 14px 14px; }
.fulfillment-package-readonly-body>dl,
.fulfillment-waybill-readonly>dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0 0 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.fulfillment-package-readonly-body>dl>div,
.fulfillment-waybill-readonly>dl>div { padding: 9px 11px; border-right: 1px solid var(--border); }
.fulfillment-package-readonly-body dt,
.fulfillment-waybill-readonly dt { color: var(--muted); font-size: 11px; }
.fulfillment-package-readonly-body dd,
.fulfillment-waybill-readonly dd { margin: 3px 0 0; }
.fulfillment-package-readonly table { min-width: 640px; }
.fulfillment-package-readonly td strong,
.fulfillment-package-readonly td small { display: block; }
.fulfillment-package-readonly td small { margin-top: 3px; color: var(--muted); }
.fulfillment-waybill-readonly>header { align-items: center; }
.fulfillment-waybill-readonly>dl { margin: 12px; }
.fulfillment-history { display: grid; border-top: 1px solid var(--border); }
.fulfillment-history>div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 14px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.fulfillment-history>div>span:first-child { display: grid; gap: 2px; }
.fulfillment-history small { color: var(--muted); }
.fulfillment-history>div>small { grid-column: 1 / -1; }

@media(max-width:1100px) {
  .fulfillment-shipment-overview { grid-template-columns: 1fr; }
  .fulfillment-release-compact { grid-column: auto; }
  .fulfillment-overview-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .fulfillment-overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fulfillment-overview-metrics>span { border-bottom: 1px solid var(--border); }
  .fulfillment-overview-metrics>span:nth-child(2n) { border-right: 0; }
  .fulfillment-overview-metrics>span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .fulfillment-release-compact { justify-content: flex-start; margin-top: 0; }
  .fulfillment-order-shipping-data>header { flex-direction: column; }
  .fulfillment-delivery-metrics { justify-content: flex-start; }
  .fulfillment-shipping-request-summary { grid-template-columns: 1fr; }
  .fulfillment-package-readonly>summary { grid-template-columns: 1fr; }
  .fulfillment-package-readonly-body>dl,
  .fulfillment-waybill-readonly>dl { grid-template-columns: 1fr; }
  .fulfillment-package-readonly-body>dl>div,
  .fulfillment-waybill-readonly>dl>div { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* FULFILLMENT-DETAIL-REDESIGN-385: reuse the sales order detail information hierarchy. */
.fulfillment-page.order-page {
  --order-card: var(--card);
  --order-soft: var(--soft);
  --order-blue-soft: var(--soft-blue);
  --order-text: var(--text);
  --order-muted: var(--muted);
  --order-line: var(--border);
}
.fulfillment-shipment-overview.order-record-hero {
  grid-template-columns: auto minmax(260px,1fr) auto;
}
.fulfillment-shipment-overview .order-detail-identity>div { display: flex; align-items: center; gap: 10px; }
.fulfillment-shipment-overview .order-detail-identity h1 { margin: 2px 0; }
.fulfillment-hero-actions>.fulfillment-actions { display: flex; flex-flow: row wrap; justify-content: flex-end; }
.fulfillment-hero-actions>.fulfillment-actions .btn { width: auto; }
.fulfillment-task-progress.warning { border-color: #f0d49a; }
.fulfillment-task-progress.error { border-color: #efc5ca; }
.fulfillment-key-facts>div { min-width: 0; }
.fulfillment-panel>.order-section-title { margin-bottom: 14px; }
.fulfillment-panel>.order-section-title p:last-child,
.fulfillment-order-shipping-data>.order-section-title p:last-child { margin-top: 5px; color: var(--order-muted); font-size: 12px; }
.fulfillment-order-shipping-data>.order-section-title { margin: 0; padding: 13px 14px; background: var(--order-soft); }
.fulfillment-order-shipping-data>.order-section-title>div { display: block; min-width: 0; }
.fulfillment-order-shipping-data>.order-section-title h3 { margin: 2px 0 0; font-size: 16px; }
.fulfillment-order-shipping-data>.fulfillment-order-info-grid { margin: 0; padding: 12px 14px; border-top: 1px solid var(--order-line); }
.fulfillment-delivery-details>.fulfillment-shipping-facts { padding: 0 12px 12px; }
.fulfillment-shipping-facts .fulfillment-shipping-profile { padding: 12px 0 0; border: 0; border-radius: 0; background: transparent; }
.fulfillment-shipping-profile>header { padding: 0 12px 10px; }
.fulfillment-shipping-profile>header h4 { margin: 0; font-size: 14px; }
.fulfillment-shipping-profile>header p { margin: 3px 0 0; color: var(--order-muted); font-size: 11px; }
.fulfillment-shipping-profile>.fulfillment-order-info-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.shipping-request-detail-body>.shipment-preview-order:first-child>.fulfillment-order-info-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.fulfillment-record-history .order-timeline p { color: var(--order-text); }
.fulfillment-packing-heading.order-record-hero { grid-template-columns: auto minmax(0,1fr); }
.shipment-preview-body>.shipment-preview-orders { overflow: visible; }
.shipment-preview-request-list { display: grid; gap: 10px; margin-top: 10px; }
.shipment-preview-request { padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); }
.shipment-preview-request>header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.shipment-preview-request>header small { color: var(--muted); }

@media(max-width:1180px) {
  .fulfillment-shipment-overview.order-record-hero { grid-template-columns: auto minmax(0,1fr); }
  .fulfillment-shipment-overview .fulfillment-hero-actions { grid-column: 2; }
  .fulfillment-shipping-profile>.fulfillment-order-info-grid,
  .shipping-request-detail-body>.shipment-preview-order:first-child>.fulfillment-order-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .fulfillment-shipment-overview.order-record-hero,
  .fulfillment-packing-heading.order-record-hero { grid-template-columns: 1fr; }
  .fulfillment-shipment-overview .fulfillment-hero-actions { grid-column: auto; justify-content: flex-start; }
  .fulfillment-hero-actions>.fulfillment-actions { justify-content: flex-start; }
  .fulfillment-order-shipping-data>.order-section-title { flex-direction: column; }
  .fulfillment-order-shipping-data>.fulfillment-order-info-grid { padding: 10px 12px; }
  .fulfillment-shipping-profile>.fulfillment-order-info-grid,
  .shipping-request-detail-body>.shipment-preview-order:first-child>.fulfillment-order-info-grid { grid-template-columns: 1fr; }
}

.fulfillment-mobile-packing {
  --text: var(--ink, #172033);
  --primary: var(--blue, #2f7df4);
  --muted: #7c879b;
  --border: var(--line, #e9edf3);
  display: grid;
  width: min(100%, 760px);
  gap: 10px;
  margin: 0 auto;
  color: var(--text);
}
[data-theme="dark"] .fulfillment-mobile-packing {
  --text: #e8eef8;
  --primary: #6da8ff;
  --muted: #97a5b9;
  --border: #28364b;
}
.fulfillment-mobile-card-head,
.fulfillment-mobile-quantity,
.fulfillment-mobile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fulfillment-mobile-overview,
.fulfillment-mobile-card { padding: 15px 16px; min-width: 0; }
.fulfillment-mobile-overview-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fulfillment-mobile-overview-top>div { display: grid; gap: 2px; min-width: 0; }
.fulfillment-mobile-overview-top span,
.fulfillment-mobile-progress span,
.fulfillment-mobile-quantity small,
.fulfillment-mobile-hint { color: var(--muted); font-size: 12px; }
.fulfillment-mobile-overview-top strong { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.fulfillment-mobile-overview p { margin: 5px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.fulfillment-mobile-progress { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); }
.fulfillment-mobile-progress strong { margin-left: 3px; color: var(--text); font-size: 14px; }
.pe-workstation-main .fulfillment-mobile-packing .fulfillment-mobile-refresh.btn { width: auto; min-height: 34px; padding: 5px 10px; flex: none; font-size: 12px; }
.fulfillment-mobile-box-list { display: flex; gap: 8px; overflow-x: auto; padding: 1px 0 6px; }
.fulfillment-mobile-box-list button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card, #fff);
  color: var(--text);
  cursor: pointer;
}
.fulfillment-mobile-box-list button.active { border-color: var(--primary); color: var(--primary); background: var(--soft-blue, #f3f7ff); }
.fulfillment-mobile-box-list small { display: block; margin-top: 2px; }
.fulfillment-mobile-card-head { padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.fulfillment-mobile-card h2 { margin: 1px 0 0; font-size: 19px; }
.fulfillment-mobile-card-tools { display: flex; align-items: center; gap: 7px; }
.fulfillment-mobile-more { position: relative; }
.fulfillment-mobile-more summary { min-height: 34px; display: grid; align-items: center; padding: 5px 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.fulfillment-mobile-more summary::-webkit-details-marker { display: none; }
.fulfillment-mobile-more>div { position: absolute; right: 0; top: calc(100% + 5px); z-index: 8; display: grid; min-width: 150px; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: var(--card, #fff); box-shadow: 0 10px 25px rgba(23,32,51,.12); }
.fulfillment-mobile-more button { padding: 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.fulfillment-mobile-more button:hover,
.fulfillment-mobile-more button:focus-visible { background: var(--soft-blue, #f3f7ff); }
.fulfillment-mobile-message { padding: 10px 12px; border-radius: 8px; background: #fff0f1; color: #bb3546; }
.fulfillment-mobile-editor-body { display: grid; gap: 10px; padding-top: 10px; }
.fulfillment-mobile-fields { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fulfillment-mobile-fields h3 { margin: 5px 0 0; font-size: 15px; }
.fulfillment-mobile-hint { margin: -7px 0 0; }
.fulfillment-mobile-weight-hint { margin: 0; }
.fulfillment-mobile-quantity-list { display: grid; gap: 7px; }
.fulfillment-mobile-accompanying { display: grid; gap: 8px; }
.fulfillment-mobile-split-toggle { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.fulfillment-mobile-split-toggle input { width: 19px; height: 19px; }
.fulfillment-mobile-split-fields,
[data-packing-whole-content] { display: grid; gap: 9px; }
.fulfillment-mobile-split-fields[hidden],
[data-packing-whole-content][hidden] { display: none; }
.fulfillment-mobile-quantity {
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  flex-wrap: wrap;
}
.fulfillment-mobile-quantity span { display: grid; gap: 2px; min-width: 0; }
.fulfillment-mobile-quantity strong { overflow-wrap: anywhere; }
.fulfillment-mobile-quantity input { width: 80px; min-height: 40px; padding: 7px; text-align: center; }
.fulfillment-mobile-dimensions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.fulfillment-mobile-order-weights { display: grid; gap: 9px; }
.fulfillment-mobile-order-weights[hidden],
.fulfillment-mobile-order-weights [hidden] { display: none; }
.fulfillment-mobile-field { display: grid; gap: 5px; min-width: 0; font-size: 13px; }
.fulfillment-mobile-field>div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fulfillment-mobile-field input,
.fulfillment-mobile-field select { width: 100%; min-width: 0; min-height: 42px; padding: 8px; }
.fulfillment-mobile-field small { color: var(--muted); }
.fulfillment-mobile-field .fulfillment-mobile-box-warning { color: #bb3546; }
.fulfillment-mobile-media { display: flex; flex-wrap: wrap; gap: 8px; }
.fulfillment-mobile-media a { color: var(--primary); }
.fulfillment-mobile-upload { position: relative; display: grid; gap: 6px; font-size: 13px; cursor: pointer; }
.fulfillment-mobile-photo-trigger { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--border); border-radius: 9px; color: var(--primary); font-weight: 700; }
.fulfillment-mobile-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fulfillment-mobile-upload:focus-within .fulfillment-mobile-photo-trigger { outline: 2px solid var(--primary); outline-offset: 2px; }
.fulfillment-mobile-upload small { color: var(--primary); }
.fulfillment-mobile-secondary { border-top: 1px solid var(--border); padding-top: 9px; }
.fulfillment-mobile-secondary summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.fulfillment-mobile-secondary>div { display: grid; gap: 9px; padding-top: 10px; }
.fulfillment-mobile-action-bar { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 8px; padding: 9px 0 calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--card, #fff); }
.fulfillment-mobile-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.fulfillment-mobile-actions .btn { min-height: 44px; }
.fulfillment-mobile-fields:disabled { opacity: .7; }
.fulfillment-mobile-packing [aria-invalid="true"] { border-color: #d94d5c; }
.fulfillment-mobile-packing [data-packing-input-error] { flex-basis: 100%; color: #bb3546; font-size: 11px; text-align: right; }
.fulfillment-mobile-packing [hidden] { display: none; }
.fulfillment-handoff-suggestions { margin: 10px 0; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); }
.fulfillment-handoff-suggestions summary { padding: 11px 13px; cursor: pointer; font-weight: 700; }
.fulfillment-handoff-suggestions summary small { margin-left: 8px; color: var(--muted); font-weight: 400; }
.fulfillment-handoff-suggestions>div { display: grid; gap: 5px; padding: 0 13px 12px; }
.fulfillment-handoff-suggestions p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-top: 1px solid var(--border); }
.fulfillment-handoff-suggestions p span { display: grid; gap: 3px; min-width: 0; }
.fulfillment-handoff-suggestions p strong { overflow-wrap: anywhere; }
.fulfillment-handoff-suggestions p small,
.fulfillment-handoff-suggestions p em { color: var(--muted); font-size: 12px; font-style: normal; }
@media(max-width:600px) {
  .fulfillment-handoff-suggestions p { display: grid; }
}
@media(max-width:600px) {
  .app-shell:has(.fulfillment-mobile-packing) .sidebar { display: none; }
  .app-shell:has(.fulfillment-mobile-packing) .main-content { margin-left: 0; }
  .app-shell:has(.fulfillment-mobile-packing) .view-root { padding: 12px; }
  .fulfillment-mobile-card-tools { gap: 5px; }
  .fulfillment-mobile-card h2 { font-size: 18px; }
  .fulfillment-mobile-action-bar:has(.fulfillment-mobile-actions) {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 18px rgba(23,32,51,.09);
  }
}

/* 641 workbench uses the existing fulfillment tokens and card patterns. */
.fulfillment-waybill-first-641 { gap: 16px; }
.finance-workspace-tabs.fulfillment-primary-tabs-641 {
  gap: 24px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line, #e9edf3);
  white-space: nowrap;
}
.finance-workspace-tabs.fulfillment-primary-tabs-641 button {
  flex: 0 0 auto;
  padding: 10px 2px 12px;
  font-size: 14px;
  color: var(--muted, #7c879b);
}
.finance-workspace-tabs.fulfillment-primary-tabs-641 button.active { color: var(--blue, #2f7df4); }
.finance-workspace-tabs.fulfillment-secondary-tabs-641 {
  align-self: flex-start;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
}
.finance-workspace-tabs.fulfillment-secondary-tabs-641 button {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
}
.finance-workspace-tabs.fulfillment-secondary-tabs-641 button.active {
  background: var(--card);
  box-shadow: 0 1px 4px rgba(23,32,51,.08);
  color: var(--primary);
}
.finance-workspace-tabs.fulfillment-primary-tabs-641 button:focus-visible,
.finance-workspace-tabs.fulfillment-secondary-tabs-641 button:focus-visible {
  outline: 2px solid var(--blue, #2f7df4);
  outline-offset: -2px;
}
.fulfillment-append-heading-641,
.fulfillment-page-actions-641 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fulfillment-page-actions-641 { justify-content: flex-end; }
.fulfillment-waybill-first-641 [hidden] { display: none !important; }
.fulfillment-mobile-overview-top>.fulfillment-mobile-overview-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fulfillment-waybill-first-641 .order-record-hero { min-width: 0; }
.fulfillment-waybill-first-641 .fulfillment-view-tabs { overflow-x: auto; }
.fulfillment-pending-layout-641,
.fulfillment-detail-grid-641 { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,340px); align-items: start; gap: 18px; }
.fulfillment-selection-641 { position: sticky; top: 18px; display: grid; gap: 12px; }
.fulfillment-selection-641>.btn { width: 100%; }
.fulfillment-pending-orders-641,
.fulfillment-packing-tasks-641,
.fulfillment-order-groups-641 { display: grid; gap: 12px; }
.fulfillment-waybill-first-641[data-641-packing]>.fulfillment-page-actions-641 { margin-bottom: 12px; }
.fulfillment-packing-select-667 { display: inline-flex; align-items: center; gap: 7px; color: var(--text); cursor: pointer; }
.fulfillment-packing-select-667 input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.fulfillment-pending-orders-641>.shipment-preview-order,
.fulfillment-order-groups-641>.shipment-preview-order { margin: 0; }
.fulfillment-pending-lines-641 { display: grid; gap: 1px; margin: 10px 0; background: var(--border); }
.fulfillment-pending-lines-641>.shipment-source-row { margin: 0; padding: 10px; background: var(--card); }
.fulfillment-pending-lines-641 .fulfillment-quantity { display: flex; align-items: center; gap: 6px; }
.fulfillment-pending-lines-641 input[type="number"] { max-width: 78px; }
.fulfillment-pending-filters-664 { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 10px 0; }
.fulfillment-pending-filters-664 .fulfillment-list-search { flex: 1 1 220px; width: auto; }
.fulfillment-pending-filters-664 .fulfillment-status-filter { flex: 1 1 145px; min-width: 0; }
.fulfillment-pending-filters-664 .fulfillment-status-filter select { width: 100%; min-width: 0; }
.fulfillment-pending-filter-actions-664 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.fulfillment-pending-filter-actions-664 span { margin-right: auto; color: var(--primary); font-size: 11px; font-weight: 700; }
.fulfillment-pending-order-actions-664 { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px !important; }
.fulfillment-pending-order-actions-664 .btn { font-size: 11px; }
.fulfillment-pending-orders-641 .shipment-request-accompanying { margin-top: 8px; }
.fulfillment-order-accompanying-empty-641 { display: block; margin: 6px 10px 0; color: var(--muted); }
.fulfillment-pending-orders-641 [data-641-accompanying-row] input { width: 82px; }
.fulfillment-box-list-641 { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 10px; margin-top: 14px; }
.fulfillment-box-card-641 { display: grid; gap: 7px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); }
.fulfillment-box-card-641.suggested { border-style: dashed; background: var(--soft-blue); }
.fulfillment-box-card-641 span,
.fulfillment-box-card-641 small { color: var(--muted); overflow-wrap: anywhere; }
.fulfillment-box-card-641>.btn { justify-self: start; }
.fulfillment-overview-filters-641 { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0; }
.fulfillment-overview-filters-641 label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.fulfillment-overview-filters-641 label:first-child { flex: 1 1 240px; }
.fulfillment-overview-filters-641 input,
.fulfillment-overview-filters-641 select { min-height: 36px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); }
.fulfillment-create-waybill-dialog-641 { --cc-line: var(--border); font-family: 'Noto Sans SC', 'DM Sans', sans-serif; }
.fulfillment-create-waybill-dialog-641 .cc-dialog-close,
.fulfillment-packing-dialog-753 .cc-dialog-close,
.fulfillment-box-detail-641 .cc-dialog-close { align-self: flex-start; flex: 0 0 auto; margin-left: auto; padding: 3px 5px; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.fulfillment-create-waybill-dialog-641 .shipment-preview-orders { display: block; overflow: visible; padding-bottom: 8px; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-table-723 { width: 100%; min-width: 0; table-layout: fixed; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-table-723 th,
.fulfillment-create-waybill-dialog-641 .fulfillment-create-table-723 td { padding: 9px 12px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-table-723 thead th:first-child,
.fulfillment-create-waybill-dialog-641 .fulfillment-create-table-723 .fulfillment-create-order-cell-724 { width: 27%; text-align: left; vertical-align: top; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-table-723 thead th:last-child,
.fulfillment-create-waybill-dialog-641 .fulfillment-create-table-723 tbody td:last-child { width: 110px; text-align: right; white-space: nowrap; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-order-cell-724 { background: var(--soft); color: var(--text); font-weight: 700; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-fields-723 { margin: 6px 20px 20px; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-fields-723 .order-section-title { margin-bottom: 12px; }
.fulfillment-create-waybill-dialog-641 .fulfillment-create-fields-723 .order-section-title p,
.fulfillment-create-waybill-dialog-641>form>header p,
.fulfillment-create-waybill-dialog-641 .fulfillment-inline-note { font-size: 13px; line-height: 1.5; }
.fulfillment-create-waybill-dialog-641 .waybill-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 12px; }
.fulfillment-create-waybill-dialog-641 .waybill-fields>* { grid-column: span 2; }
.fulfillment-create-waybill-dialog-641 .waybill-fields>*:nth-child(n+4) { grid-column: span 3; }
.fulfillment-create-waybill-dialog-641 .waybill-fields>label,
.fulfillment-create-waybill-dialog-641 .waybill-fields .cc-value-picker { display: grid; align-content: end; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.fulfillment-create-waybill-dialog-641 .waybill-fields .cc-picker-label,
.fulfillment-create-waybill-dialog-641 .waybill-fields .cc-picker-hint { font-size: 13px; font-weight: 400; line-height: 1.5; }
.fulfillment-create-waybill-dialog-641 .waybill-fields :is(input, select, .cc-picker-trigger) { width: 100%; min-width: 0; height: 40px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: 500 13px 'Noto Sans SC', 'DM Sans', sans-serif; }
.fulfillment-create-waybill-dialog-641 .waybill-fields input::placeholder { color: var(--muted); opacity: 1; }
.fulfillment-create-waybill-dialog-641 .waybill-fields .cc-picker-trigger { padding: 0 12px; text-align: left; }
@media(max-width:900px) {
  .fulfillment-create-waybill-dialog-641 .waybill-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fulfillment-create-waybill-dialog-641 .waybill-fields>* { grid-column: auto; }
  .fulfillment-create-waybill-dialog-641 .waybill-fields>*:first-child { grid-column: 1 / -1; }
}
@media(max-width:600px) {
  .fulfillment-create-waybill-dialog-641 .waybill-fields { grid-template-columns: minmax(0, 1fr); }
  .fulfillment-create-waybill-dialog-641 .waybill-fields>*:first-child { grid-column: auto; }
}
.fulfillment-accompanying-place-641 { grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; }
.fulfillment-accompanying-place-641 select { min-width: 140px; width: auto; min-height: 36px; }
@media(max-width:900px) {
  .fulfillment-pending-layout-641,
  .fulfillment-detail-grid-641 { grid-template-columns: 1fr; }
  .fulfillment-selection-641 { position: static; }
}

/* SHIPMENT-UI-UNIFY-681: use the existing cards, tables and dialog shell consistently. */
.fulfillment-waybill-first-641 .fulfillment-panel,
.fulfillment-waybill-first-641 .shipment-preview-order { min-width: 0; }
.fulfillment-pending-filters-664 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.fulfillment-pending-filters-664 .fulfillment-list-search { grid-column: span 2; min-width: 0; }
.fulfillment-pending-filters-664 .fulfillment-status-filter { min-width: 0; }
.fulfillment-pending-filters-664>button { align-self: end; justify-self: start; min-height: 38px; }
.fulfillment-pending-filter-actions-664 { margin: 0 0 12px; }
.fulfillment-pending-orders-641 .shipment-preview-order>header { align-items: flex-start; }
.fulfillment-pending-orders-641 .shipment-preview-order>header>div:first-child { min-width: 0; }
.fulfillment-pending-orders-641 .shipment-preview-order>header strong,
.fulfillment-pending-orders-641 .shipment-source-row strong { overflow-wrap: anywhere; }
.fulfillment-pending-orders-641 .shipment-preview-order>header small { margin-top: 3px; }
.fulfillment-pending-orders-641 .shipment-request-accompanying { gap: 8px; margin: 0 12px 10px; padding: 10px 12px; }
.fulfillment-pending-orders-641 .shipment-preview-accompanying-row { padding: 8px 10px; }
.fulfillment-selection-641 { align-content: start; }
.fulfillment-selection-641 [data-641-selected-summary] { min-height: 0; padding: 10px 0; text-align: left; }
.fulfillment-selection-641 [data-641-selected-summary]:not(.fulfillment-empty) { display: grid; gap: 8px; overflow-wrap: anywhere; }

.fulfillment-packing-tasks-641>.fulfillment-panel>.order-section-title { align-items: center; }
.fulfillment-packing-tasks-641 .order-section-title>div:first-child { min-width: 0; }
.fulfillment-packing-tasks-641 .order-section-title h2,
.fulfillment-packing-tasks-641 .order-section-title p { overflow-wrap: anywhere; }
.fulfillment-packing-tasks-641 .order-section-title .fulfillment-actions {
  width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.fulfillment-packing-tasks-641 .order-section-title .fulfillment-actions .btn { width: auto; }
.fulfillment-packing-tasks-641 .fulfillment-order-groups-641 { padding: 0; }
.fulfillment-packing-tasks-641 .fulfillment-box-card-641 p { margin: 0; }

/* SHIPMENT-PACKING-LIST-713: compact, order-first packing queue. */
.fulfillment-packing-page-713 { display: grid; gap: 0; min-width: 0; }
.fulfillment-packing-page-713>[data-641-packing] { gap: 0; }
.fulfillment-packing-toolbar-713 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 8px 18px 12px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
}
.fulfillment-packing-toolbar-713 .btn { min-height: 36px; }
.fulfillment-packing-tasks-641 { gap: 12px; }
.fulfillment-packing-task-713 { padding: 18px 20px; }
.fulfillment-packing-task-713[tabindex] { cursor: pointer; }
.fulfillment-packing-task-713.is-selected { border-color: var(--primary); background: var(--soft-blue); }
.fulfillment-packing-task-713:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fulfillment-packing-head-713,
.fulfillment-packing-identity-713,
.fulfillment-packing-head-actions-713 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fulfillment-packing-head-713 { justify-content: space-between; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.fulfillment-packing-identity-713>input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.fulfillment-packing-identity-713>div { min-width: 0; }
.fulfillment-packing-identity-713 h2 { margin: 0; color: var(--text); font-size: 18px; overflow-wrap: anywhere; }
.fulfillment-packing-identity-713 p { margin: 3px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.fulfillment-packing-head-actions-713 { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fulfillment-packing-progress-713 { margin-right: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.fulfillment-packing-task-713 .fulfillment-order-groups-641 { gap: 0; padding: 0; }
.fulfillment-packing-task-713 .shipment-preview-order { border: 0; border-radius: 0; background: transparent; }
.fulfillment-packing-task-713 .shipment-preview-order + .shipment-preview-order { margin-top: 0; border-top: 1px solid var(--border); }
.fulfillment-packing-task-713 .shipment-preview-order>header { padding: 11px 0 5px; background: transparent; }
.fulfillment-packing-task-713 .shipment-preview-order>header>div { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.fulfillment-packing-task-713 .shipment-preview-order>header>span { color: var(--muted); font-weight: 400; }
.fulfillment-packing-task-713 .shipment-lines { padding: 0; }
.fulfillment-packing-task-713 .shipment-lines>div { margin: 0; padding: 7px 0; border: 0; background: transparent; }
.fulfillment-packing-task-713 .shipment-lines>div b { margin-left: auto; white-space: nowrap; }
.fulfillment-packing-task-713 .shipment-request-accompanying { margin: 4px 0 0; padding: 6px 0; border: 0; background: transparent; }
.fulfillment-packing-task-713 .shipment-request-accompanying>div:first-child strong { color: var(--muted); font-size: 12px; font-weight: 600; }
.fulfillment-packing-task-713 .shipment-preview-accompanying-row { padding: 4px 0; border: 0; background: transparent; font-size: 12px; }
.fulfillment-packing-task-713 .fulfillment-inline-note { margin: 5px 0 0; padding: 7px 10px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: 12px; }
.fulfillment-packing-box-list-713 { grid-template-columns: minmax(0,1fr); gap: 6px; margin-top: 12px; }
.fulfillment-packing-box-list-713 .fulfillment-box-card-641 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 9px 12px; border: 0; border-radius: 8px; }
.fulfillment-packing-box-list-713 .fulfillment-box-card-641>strong { flex: 0 0 auto; }
.fulfillment-packing-box-list-713 .fulfillment-box-card-641>span { flex: 1 1 180px; }
.fulfillment-packing-box-list-713 .fulfillment-box-card-641>small { flex: 1 1 160px; }
.fulfillment-packing-box-list-713 .fulfillment-box-card-641>.btn { margin-left: auto; }
@media(max-width: 760px) {
  .fulfillment-packing-task-713 { padding: 14px; }
  .fulfillment-packing-head-actions-713 { justify-content: flex-start; }
  .fulfillment-packing-page-713>.fulfillment-primary-tabs-641 { padding-inline: 12px; }
  .fulfillment-packing-toolbar-713 { padding-inline: 12px; }
}

.fulfillment-waybill-first-641[data-641-overview] .mini-stat .mini-label,
.fulfillment-waybill-first-641[data-641-overview] .mini-stat .mini-value { display: block; }
.fulfillment-waybill-first-641[data-641-overview] .mini-stat .mini-value { margin-top: 6px; }

/* SHIPMENT-PACKED-LIST-714: searchable completed boxes. */
.fulfillment-packed-workspace-714 { min-width: 0; }
/* SHIPMENT-PACKING-TABS-761: both queues use the same standalone tab card. */
.fulfillment-packing-page-713>.fulfillment-primary-tabs-641,
.fulfillment-packed-workspace-714>.fulfillment-primary-tabs-641 {
  margin: 0 0 12px;
  padding: 8px 18px 0;
  border: 1px solid var(--border, #e9edf3);
  border-radius: 12px;
  background: var(--card, #fff);
}
.fulfillment-packed-page-714 { gap: 12px; }
.fulfillment-packed-filters-714 { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px 20px; }
.fulfillment-packed-filters-714 label { display: grid; flex: 1 1 145px; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; }
.fulfillment-packed-filters-714 .fulfillment-packed-search-714 { flex: 2 1 250px; }
.fulfillment-packed-filters-714 input,
.fulfillment-packed-filters-714 select { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
.fulfillment-packed-filters-714 input:focus-visible,
.fulfillment-packed-filters-714 select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.fulfillment-packed-filter-actions-714 { display: flex; gap: 8px; }
.fulfillment-packed-filter-actions-714 .btn { min-height: 40px; }
.fulfillment-packed-results-714 { min-width: 0; padding: 16px 20px; }
.fulfillment-packed-summary-714 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.fulfillment-packed-summary-714 strong { color: var(--text); font-size: 17px; }
.fulfillment-packed-summary-714 span { color: var(--muted); font-size: 12px; }
.fulfillment-packed-page-714 .data-table { min-width: 900px; }
.fulfillment-packed-page-714 .data-table th,
.fulfillment-packed-page-714 .data-table td { padding: 10px 12px; }
.fulfillment-packed-page-714 .data-table tbody tr:hover { background: var(--soft); }
.fulfillment-packed-page-714 .data-table td:first-child strong { white-space: nowrap; }
.fulfillment-packed-page-714 .data-table td>div + div { margin-top: 6px; }
.fulfillment-packed-page-714 .data-table td .fulfillment-record-link { display: block; max-width: 260px; }
.fulfillment-packed-page-714 .fulfillment-packed-unlinked-714 { color: var(--muted); }
.fulfillment-packed-pages-714 { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 12px; }
@media(max-width: 760px) {
  .fulfillment-packed-workspace-714>.fulfillment-primary-tabs-641 { padding-inline: 12px; }
  .fulfillment-packed-filters-714,.fulfillment-packed-results-714 { padding: 14px; }
  .fulfillment-packed-filter-actions-714 { margin-left: auto; }
}

.fulfillment-waybill-first-641[data-641-packed] .data-table,
.fulfillment-waybill-first-641[data-641-overview] .data-table { min-width: 920px; white-space: normal; }
.fulfillment-waybill-first-641[data-641-packed] .data-table th,
.fulfillment-waybill-first-641[data-641-packed] .data-table td,
.fulfillment-waybill-first-641[data-641-overview] .data-table th,
.fulfillment-waybill-first-641[data-641-overview] .data-table td { padding: 12px; vertical-align: top; line-height: 1.45; }
.fulfillment-waybill-first-641[data-641-packed] .data-table td small,
.fulfillment-waybill-first-641[data-641-overview] .data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.fulfillment-waybill-first-641[data-641-packed] .data-table td>div + div { margin-top: 8px; }
.fulfillment-packed-page-714[data-641-packed] .data-table th,
.fulfillment-packed-page-714[data-641-packed] .data-table td { padding: 10px 12px; }
.fulfillment-packed-page-714[data-641-packed] .data-table td>div + div { margin-top: 6px; }

/* SHIPMENT-LIST-716: reuse the stock list toolbar, table and shared pagination. */
.fulfillment-overview-nav-716 { display: flex; align-items: center; gap: 16px; min-width: 0; margin-bottom: 12px; padding: 8px 18px 0; border: 1px solid var(--border, #e9edf3); border-radius: 12px; background: var(--card, #fff); }
.fulfillment-overview-nav-716>.fulfillment-primary-tabs-641 { flex: 1 1 auto; margin: 0; min-width: 0; }
.fulfillment-overview-nav-716>.btn { flex: 0 0 auto; margin-bottom: 8px; }
.fulfillment-packing-page-716,
.fulfillment-overview-page-716 { gap: 0; min-width: 0; }
.fulfillment-packing-page-716 .pe-list-card,
.fulfillment-overview-page-716 .pe-list-card,
.fulfillment-packed-page-718 .pe-list-card { min-width: 0; padding: 0; }
.fulfillment-packing-filters-716,
.fulfillment-overview-filters-641,
.fulfillment-packed-page-718 .fulfillment-packed-filters-714 { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0; padding: 16px 18px; }
.fulfillment-packing-filters-716 label,
.fulfillment-overview-filters-641 label,
.fulfillment-packed-page-718 .fulfillment-packed-filters-714 label { flex: 1 1 165px; min-width: 0; }
.fulfillment-packing-filters-716 label:first-child,
.fulfillment-overview-filters-641 label:first-child,
.fulfillment-packed-page-718 .fulfillment-packed-filters-714 label:first-child { flex: 2 1 260px; }
.fulfillment-packing-filters-716 input,
.fulfillment-packing-filters-716 select,
.fulfillment-overview-filters-641 input,
.fulfillment-overview-filters-641 select,
.fulfillment-packed-page-718 .fulfillment-packed-filters-714 input,
.fulfillment-packed-page-718 .fulfillment-packed-filters-714 select { box-sizing: border-box; width: 100%; min-height: 42px; font: inherit; font-size: 13px; }
.fulfillment-packing-filter-actions-716 { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.fulfillment-packing-filter-actions-716 .btn,
.fulfillment-overview-filters-641>.btn,
.fulfillment-packed-page-718 .fulfillment-packed-filters-714>.btn { min-height: 42px; }
.fulfillment-overview-filters-641>.btn,
.fulfillment-packed-page-718 .fulfillment-packed-filters-714>.btn { margin-left: auto; }
.fulfillment-list-summary-716 { padding: 11px 18px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 700; }
.fulfillment-list-summary-716 span { color: var(--muted); font-weight: 400; }
.fulfillment-packing-table-716,
.fulfillment-overview-table-716,
.fulfillment-packed-table-718 { width: 100%; min-width: 940px; table-layout: fixed; }
.fulfillment-packing-table-716 th,
.fulfillment-packing-table-716 td,
.fulfillment-overview-table-716 th,
.fulfillment-overview-table-716 td,
.fulfillment-packed-table-718 th,
.fulfillment-packed-table-718 td { padding: 12px 14px; line-height: 1.45; }
.fulfillment-packing-table-716 td,
.fulfillment-overview-table-716 td,
.fulfillment-packed-table-718 td { overflow-wrap: anywhere; }
.fulfillment-packed-table-718 tbody tr { cursor: default; }
.fulfillment-packed-table-718 td>div + div { margin-top: 6px; }
.fulfillment-packed-table-718 td .fulfillment-record-link { display: block; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.fulfillment-packed-table-718 th:first-child { width: 205px; }
.fulfillment-packed-table-718 th:last-child { width: 110px; }
.fulfillment-packed-table-718 { min-width: 1120px; }
.fulfillment-packed-waybill-779 { display: grid; justify-items: start; gap: 2px; }
.fulfillment-packed-waybill-779>span { color: var(--muted); font-size: 11px; }
.fulfillment-packed-waybill-779>strong { color: var(--text); font-size: 12px; font-weight: 600; }
.fulfillment-packing-table-716 th:last-child,
.fulfillment-packing-table-716 td:last-child { width: 250px; }
.fulfillment-packing-table-716 th:first-child { width: 215px; }
.fulfillment-packing-table-716 th:nth-child(2) { width: 105px; }
.fulfillment-packing-table-716 th:nth-child(3) { width: 220px; }
.fulfillment-packing-table-716 th:nth-child(4) { width: 130px; }
.fulfillment-packing-table-716 th:nth-child(5) { width: 100px; }
.fulfillment-packing-table-716 tbody tr.is-selected { background: var(--soft-blue); }
.fulfillment-packing-identity-716 { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fulfillment-packing-identity-716 input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--primary); }
.fulfillment-packing-identity-716 span { min-width: 0; }
.fulfillment-packing-row-actions-716 { display: flex; flex-wrap: wrap; gap: 6px; }
.fulfillment-packing-task-716:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.fulfillment-packing-detail-row-716 { cursor: default !important; background: var(--card); }
.fulfillment-packing-detail-row-716>td { padding: 0 18px 16px; }
.fulfillment-packing-detail-716 { display: grid; gap: 10px; padding: 4px 0 0 28px; }
.fulfillment-packing-detail-716 .fulfillment-order-groups-641 { gap: 0; padding: 0; }
.fulfillment-packing-detail-716 .shipment-preview-order { border: 0; border-radius: 0; background: transparent; }
.fulfillment-packing-detail-716 .shipment-preview-order>header { padding: 8px 0 4px; background: transparent; }
.fulfillment-packing-detail-716 .shipment-lines { padding: 0; }
.fulfillment-packing-detail-716 .shipment-lines>div { margin: 0; padding: 6px 0; border: 0; }
.fulfillment-packing-detail-716 .shipment-lines>div b { margin-left: auto; }
.fulfillment-packing-detail-716 .shipment-request-accompanying { margin: 4px 0; padding: 6px 0; border: 0; }
.fulfillment-packing-detail-716 .fulfillment-inline-note { margin: 0; color: var(--muted); font-size: 12px; }
.fulfillment-packing-page-716 .pe-pagination,
.fulfillment-overview-page-716 .pe-pagination,
.fulfillment-packed-page-714 .pe-pagination { margin: 0; }
@media(max-width: 760px) {
  .fulfillment-packing-page-713>.fulfillment-primary-tabs-641 { padding-inline: 12px; }
  .fulfillment-overview-nav-716 { flex-wrap: wrap; }
  .fulfillment-overview-nav-716>.fulfillment-primary-tabs-641 { flex-basis: 100%; }
  .fulfillment-overview-nav-716>.btn { margin-left: auto; }
  .fulfillment-packing-filters-716,
  .fulfillment-overview-filters-641 { padding: 12px; }
  .fulfillment-packing-filter-actions-716 { width: 100%; justify-content: flex-end; }
}
.fulfillment-waybill-first-641[data-641-packed] .data-table td strong,
.fulfillment-waybill-first-641[data-641-overview] .data-table td strong { overflow-wrap: anywhere; }
.fulfillment-waybill-first-641[data-641-packed] .fulfillment-record-link,
.fulfillment-waybill-first-641[data-641-overview] .fulfillment-record-link {
  max-width: none;
  overflow: visible;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-detail-grid-641 {
  grid-template-columns: minmax(0, 1fr) minmax(310px, .38fr);
}
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-detail-grid-641>aside .fulfillment-facts {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 12px;
}
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-detail-grid-641>aside .fulfillment-facts>div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-facts dt { color: var(--muted); }
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-facts dd { min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fulfillment-waybill-first-641[data-641-waybill-detail] [data-641-waybill-cost] .fulfillment-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.fulfillment-waybill-first-641[data-641-waybill-detail] [data-641-waybill-cost] .fulfillment-inline-note { margin-bottom: 0; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-box-list-641 { margin-top: 0; }

.shipment-preview-dialog.fulfillment-box-detail-641[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
}
.shipment-preview-dialog.fulfillment-box-detail-641>header,
.shipment-preview-dialog.fulfillment-box-detail-641>footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.shipment-preview-dialog.fulfillment-box-detail-641>header { border-bottom: 1px solid var(--border); }
.shipment-preview-dialog.fulfillment-box-detail-641>header h2 { margin: 3px 0; font-size: 20px; }
.shipment-preview-dialog.fulfillment-box-detail-641>header p { margin: 0; color: var(--muted); font-size: 12px; }
.shipment-preview-dialog.fulfillment-box-detail-641>footer { justify-content: flex-end; border-top: 1px solid var(--border); }
.shipment-preview-dialog.fulfillment-box-detail-641>.shipment-preview-body { flex: 1 1 auto; min-height: 0; padding: 16px 20px; }
.shipment-preview-dialog.fulfillment-box-detail-641>.shipment-preview-body>.fulfillment-facts { margin: 0; }
.shipment-preview-dialog.fulfillment-box-detail-641>.shipment-preview-body>.fulfillment-facts>div { min-width: 0; }
.shipment-preview-dialog.fulfillment-box-detail-641>.shipment-preview-body>.fulfillment-facts dt { color: var(--muted); font-size: 12px; }
.shipment-preview-dialog.fulfillment-box-detail-641>.shipment-preview-body>.fulfillment-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.shipment-preview-dialog.fulfillment-box-detail-641 .fulfillment-order-groups-641 { padding: 0; overflow: visible; }
.shipment-preview-dialog.fulfillment-box-detail-641>.shipment-preview-body>.fulfillment-panel { margin-top: 12px; }
.fulfillment-box-detail-641 .fulfillment-box-contents-827,
.fulfillment-box-detail-641 .fulfillment-box-photos-827 { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.fulfillment-box-detail-641 :is(.fulfillment-box-contents-827,.fulfillment-box-photos-827)>h3 { margin: 0 0 10px; font-size: 14px; }
.fulfillment-box-detail-641 .fulfillment-box-order-827 + .fulfillment-box-order-827 { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.fulfillment-box-detail-641 .fulfillment-box-order-heading-827 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 7px; }
.fulfillment-box-detail-641 .fulfillment-box-order-heading-827 span,
.fulfillment-box-detail-641 .fulfillment-box-order-note-827>span,
.fulfillment-box-detail-641 .fulfillment-box-empty-827 { color: var(--muted); }
.fulfillment-box-detail-641 .fulfillment-box-order-827 table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fulfillment-box-detail-641 .fulfillment-box-order-827 th { padding: 7px 10px; background: var(--soft); color: var(--muted); font-size: 12px; text-align: left; }
.fulfillment-box-detail-641 .fulfillment-box-order-827 th:last-child,
.fulfillment-box-detail-641 .fulfillment-box-order-827 td:last-child { width: 90px; text-align: right; white-space: nowrap; }
.fulfillment-box-detail-641 .fulfillment-box-order-827 td { padding: 8px 10px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.fulfillment-box-detail-641 .fulfillment-box-order-note-827 { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; margin-top: 8px; line-height: 1.5; }
.fulfillment-box-detail-641 .fulfillment-box-order-note-827 p { margin: 0; overflow-wrap: anywhere; }
.fulfillment-box-detail-641 .fulfillment-box-photo-list-827 { display: flex; flex-wrap: wrap; gap: 8px; }
.fulfillment-box-detail-641 .fulfillment-box-photo-list-827 a { display: block; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); }
.fulfillment-box-detail-641 .fulfillment-box-photo-list-827 img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fulfillment-box-detail-641 .fulfillment-box-empty-827 { margin: 0; font-size: 13px; }
.fulfillment-waybill-action-body-681 { padding: 16px 20px; }
.fulfillment-waybill-action-body-681>.waybill-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fulfillment-waybill-action-body-681>.waybill-fields>* { min-width: 0; }
.fulfillment-waybill-action-body-681>.waybill-fields>label { display: grid; align-content: start; gap: 6px; color: var(--muted); font-size: 12px; }
.fulfillment-waybill-action-body-681>.waybill-fields>label input,
.fulfillment-waybill-action-body-681>.waybill-fields>label select { width: 100%; min-width: 0; height: 38px; }
.fulfillment-waybill-action-body-681>.shipment-preview-form-error { padding: 0; }
.shipment-preview-dialog>form>.shipment-preview-orders { flex: 1 1 auto; min-height: 0; }
.shipment-preview-dialog>form>footer,
.shipment-preview-dialog>.shipping-request-detail>footer,
.shipment-preview-dialog.fulfillment-box-detail-641>footer { min-height: 68px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }

@media(max-width: 1100px) {
  .fulfillment-pending-filters-664 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width: 900px) {
  .fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-detail-grid-641 { grid-template-columns: 1fr; }
}
@media(max-width: 760px) {
  .fulfillment-pending-filters-664 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fulfillment-packing-tasks-641>.fulfillment-panel>.order-section-title { align-items: flex-start; }
  .fulfillment-packing-tasks-641 .order-section-title .fulfillment-actions { justify-content: flex-start; }
  .fulfillment-waybill-first-641[data-641-waybill-detail] [data-641-waybill-cost] .fulfillment-facts { grid-template-columns: 1fr; }
}
@media(max-width: 480px) {
  .fulfillment-pending-filters-664 { grid-template-columns: 1fr; }
  .fulfillment-pending-filters-664 .fulfillment-list-search { grid-column: auto; }
  .fulfillment-packing-tasks-641 .order-section-title .fulfillment-actions .btn { flex: 1 1 auto; }
  .shipment-preview-dialog.fulfillment-box-detail-641>.shipment-preview-body { padding: 12px; }
  .fulfillment-waybill-action-body-681 { padding: 12px; }
  .fulfillment-waybill-action-body-681>.waybill-fields { grid-template-columns: 1fr; }
}

/* SHIPMENT-PENDING-CARD-707: compact order-first pending selection. */
.fulfillment-pending-page-707 { gap: 6px; }
.fulfillment-pending-controls-707 { padding: 8px 20px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.fulfillment-pending-tab-row-707 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 28px; border-bottom: 1px solid var(--border); }
.fulfillment-pending-page-707 .fulfillment-primary-tabs-641 { display: contents; }
.fulfillment-pending-page-707 .fulfillment-primary-tabs-641 button:first-child { order: 0; }
.fulfillment-pending-page-707 .fulfillment-primary-tabs-641 button:not(:first-child) { order: 2; }
.fulfillment-pending-transport-707 { order: 1; display: flex; align-items: center; min-width: 0; max-width: 100%; margin-left: -10px; padding: 5px 0 5px 16px; border-left: 1px solid var(--border); }
.fulfillment-pending-page-707 .fulfillment-secondary-tabs-641 { background: var(--soft); }
.fulfillment-pending-page-707 .fulfillment-secondary-tabs-641 button { font-size: 12px; }
.fulfillment-pending-page-707 .fulfillment-secondary-tabs-641 button.active { color: var(--primary); font-weight: 600; }
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 { grid-template-columns: repeat(5,minmax(0,1fr)); align-items: end; gap: 9px 10px; margin: 12px 0 0; }
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 .fulfillment-list-search { grid-column: span 2; }
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 label { min-width: 0; }
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 input,
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 select,
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 .select-trigger,
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 [data-641-clear-filters] { height: 40px; min-height: 40px; }
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 [data-641-clear-filters] { padding: 0 14px; font-size: 12px; }
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 select:disabled { opacity: 1; background: var(--soft); color: var(--muted); cursor: not-allowed; }
.fulfillment-pending-page-707 .fulfillment-pending-filters-664 .select-trigger:disabled { opacity: 1; background: var(--soft); color: var(--muted); }
.fulfillment-pending-page-707 .fulfillment-pending-layout-641 { gap: 14px; }
.fulfillment-pending-list-707 { min-width: 0; }
.fulfillment-pending-page-707 .fulfillment-pending-filter-actions-664 { width: calc(100% - 354px); min-height: 32px; justify-content: space-between; margin: 0 0 3px; }
.fulfillment-pending-count-707 { display: flex; align-items: baseline; gap: 5px; margin-right: auto; }
.fulfillment-pending-page-707 .fulfillment-pending-count-707>strong { font-size: 12px; font-weight: 500; color: var(--muted); }
.fulfillment-pending-page-707 .fulfillment-pending-count-707>span { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
/* SHIPMENT-PENDING-CONTROLS-712: group the active filter and bulk action. */
.fulfillment-pending-list-actions-712 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.fulfillment-pending-compatible-chip-712 { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 2px 4px 2px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--soft-blue); color: var(--primary); white-space: nowrap; }
.fulfillment-pending-compatible-chip-712[hidden] { display: none; }
.fulfillment-pending-page-707 .fulfillment-pending-compatible-chip-712>span { margin: 0; color: inherit; font-size: 11px; font-weight: 600; }
.fulfillment-pending-compatible-chip-712>button { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; font-size: 17px; cursor: pointer; }
.fulfillment-pending-compatible-chip-712>button:hover,
.fulfillment-pending-compatible-chip-712>button:focus-visible { background: var(--card); outline: none; }
.fulfillment-pending-page-707 [data-641-select-visible] { min-height: 30px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--primary); background: var(--card); font-size: 12px; font-weight: 600; }
.fulfillment-pending-page-707 .fulfillment-pending-orders-641 { gap: 9px; }
.fulfillment-pending-page-707 .shipment-preview-order>header { align-items: center; gap: 10px; padding: 12px 16px; background: var(--card); }
.fulfillment-pending-page-707 .fulfillment-pending-order-identity-707 { flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
.fulfillment-pending-order-identity-707>input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--primary); }
.fulfillment-pending-page-707 .fulfillment-pending-order-title-707 { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
.fulfillment-pending-order-title-707>span { padding: 2px 7px; border-radius: 5px; background: var(--soft-blue); color: var(--primary); font-size: 11px; font-weight: 600; }
.fulfillment-pending-order-title-707>.fulfillment-pending-channel-719 { background: var(--soft); color: var(--muted); }
.fulfillment-pending-page-707 .shipment-preview-order>header small { margin-top: 2px; font-size: 12px; }
.fulfillment-pending-card-action-709 { min-height: 30px; padding: 4px 9px; border: 1px solid transparent; border-radius: 7px; background: var(--soft-blue); color: var(--primary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fulfillment-pending-card-action-709.secondary { border-color: var(--border); background: var(--card); color: var(--text); }
.fulfillment-pending-page-707 .is-partial .fulfillment-pending-card-action-709[data-641-partial-toggle] { border-color: var(--primary); background: var(--soft-blue); }
.fulfillment-pending-card-action-709:hover:not(:disabled),
.fulfillment-pending-card-action-709:focus-visible { background: var(--soft-blue); color: var(--primary); }
.fulfillment-pending-card-action-709:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fulfillment-pending-card-action-709:disabled { opacity: .6; cursor: not-allowed; }
.fulfillment-pending-page-707 .fulfillment-pending-address-707 { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0 16px 8px 43px; padding: 8px 11px; border-radius: 8px; background: var(--soft); }
/* 722 keeps delivery contacts on one readable line; the full value remains in the title. */
.fulfillment-pending-page-707 .fulfillment-pending-address-707>div { display: grid; grid-template-columns: 16px 70px minmax(0,1fr); align-items: start; gap: 7px; min-width: 0; padding: 0; border: 0; }
.fulfillment-pending-info-icon-711 { display: inline-flex; width: 15px; height: 15px; color: var(--muted); }
.fulfillment-pending-info-icon-711 svg { width: 100%; height: 100%; }
.fulfillment-pending-page-707 .fulfillment-pending-address-707 dt { color: var(--muted); font-size: 11px; line-height: 1.5; }
.fulfillment-pending-page-707 .fulfillment-pending-address-707 dd { display: block; margin: 0; min-width: 0; overflow: hidden; font-size: 12px; line-height: 1.5; }
.fulfillment-pending-address-main-710 { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); font-weight: 500; }
.fulfillment-pending-address-main-710 strong { font-weight: 700; }
.fulfillment-pending-contact-722 { color: var(--text); font-weight: 500; }
.fulfillment-pending-postal-719 { color: var(--muted); font-size: inherit; font-weight: 400; }
.fulfillment-pending-page-707 .shipment-preview-order { cursor: pointer; }
.fulfillment-pending-page-707 .shipment-preview-order.is-selected { box-shadow: inset 3px 0 0 var(--primary); }
.fulfillment-pending-page-707 .shipment-preview-order.is-unavailable { cursor: default; }
.fulfillment-pending-page-707 .shipment-preview-order:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fulfillment-pending-page-707 .fulfillment-pending-lines-641 { gap: 0; margin: 0; padding: 0 16px 4px 43px; background: transparent; }
.fulfillment-pending-page-707 .fulfillment-pending-lines-641>.shipment-source-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 12px; padding: 7px 0; border: 0; background: transparent; }
.fulfillment-pending-page-707 .fulfillment-pending-lines-641>.shipment-source-row>span:first-of-type { flex: 0 1 auto; min-width: 0; max-width: min(100%, 52ch); }
.fulfillment-pending-page-707 .is-partial .fulfillment-pending-lines-641>.shipment-source-row { cursor: pointer; }
.fulfillment-pending-page-707 .shipment-source-row>input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.fulfillment-pending-page-707 .shipment-source-row strong { color: var(--text); font-size: 14px; font-weight: 700; }
.fulfillment-pending-page-707 .shipment-source-row>span:first-of-type>small:has(.fulfillment-pending-address-main-710) { display: flex; align-items: baseline; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.fulfillment-pending-page-707 .shipment-source-row>span:first-of-type>small .fulfillment-pending-address-main-710 { flex: 1; min-width: 0; }
.fulfillment-pending-page-707 .shipment-source-row .fulfillment-pending-address-main-710 strong { font-size: 12px; }
.fulfillment-pending-page-707 .shipment-source-row .fulfillment-quantity { flex: 0 0 auto; width: auto; justify-self: auto; justify-content: flex-start; gap: 0; overflow: visible; border: 0; background: transparent; color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.fulfillment-pending-page-707 .is-partial .shipment-source-row .fulfillment-quantity { margin-left: auto; justify-content: flex-end; }
.fulfillment-pending-page-707 .shipment-source-row [data-641-partial-quantity] { display: inline-flex; align-items: center; gap: 5px; }
.fulfillment-pending-page-707 .shipment-source-row input[type="number"] { width: 45px; height: 28px; padding: 3px 5px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); text-align: center; }
.fulfillment-pending-page-707 .shipment-source-row input[type="number"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.fulfillment-pending-extras-711 { display: grid; gap: 5px; margin: 4px 16px 11px 43px; padding: 7px 10px; border-radius: 8px; background: var(--soft); }
.fulfillment-pending-extras-711:not(:has(> :not([hidden]))) { display: none; }
.fulfillment-pending-page-707 .shipment-request-accompanying { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; }
.fulfillment-pending-page-707 .shipment-request-accompanying>strong,
.fulfillment-pending-page-707 .fulfillment-pending-extras-711>.fulfillment-inline-note>strong { flex: 0 0 56px; color: var(--muted); font-size: 11px; font-weight: 500; }
.fulfillment-pending-page-707 .shipment-request-accompanying>[data-641-candidate-accompanying] { display: contents; }
.fulfillment-pending-page-707 .shipment-preview-accompanying-row { display: inline-flex; gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; }
.fulfillment-pending-page-707 .shipment-preview-accompanying-row>span { display: inline; }
.fulfillment-pending-page-707 .shipment-preview-accompanying-row strong { font-weight: 600; }
.fulfillment-pending-page-707 .fulfillment-order-accompanying-empty-641 { display: none; }
.fulfillment-pending-page-707 .fulfillment-pending-extras-711>.fulfillment-inline-note { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; font-size: 12px; }
.fulfillment-pending-page-707 .fulfillment-pending-extras-711>.fulfillment-inline-note>span { min-width: 0; overflow-wrap: anywhere; }
.fulfillment-pending-page-707 .fulfillment-selection-641 { gap: 8px; }
.fulfillment-pending-page-707 .fulfillment-selection-641 .order-section-title { margin-bottom: 0; }
.fulfillment-pending-page-707 .fulfillment-selection-641 [data-641-selected-summary] { padding: 5px 0; }
@media(max-width: 1100px) {
  .fulfillment-pending-page-707 .fulfillment-pending-filters-664 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 900px) {
  .fulfillment-pending-page-707 .fulfillment-pending-filter-actions-664 { width: 100%; }
}
@media(max-width: 760px) {
  .fulfillment-pending-page-707 .fulfillment-pending-filters-664 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fulfillment-pending-page-707 .fulfillment-pending-transport-707 { margin-left: 0; padding: 4px 0; border-left: 0; }
}
@media(max-width: 480px) {
  .fulfillment-pending-controls-707 { padding: 8px 12px 12px; }
  .fulfillment-pending-page-707 .fulfillment-pending-filters-664 { grid-template-columns: 1fr; }
  .fulfillment-pending-page-707 .fulfillment-pending-filters-664 .fulfillment-list-search { grid-column: auto; }
  .fulfillment-pending-page-707 .shipment-preview-order>header { align-items: flex-start; }
  .fulfillment-pending-page-707 .fulfillment-pending-address-707 { margin-left: 16px; }
  .fulfillment-pending-page-707 .fulfillment-pending-lines-641 { padding-left: 16px; }
  .fulfillment-pending-extras-711 { margin-left: 16px; }
  .fulfillment-pending-page-707 .is-partial .shipment-source-row .fulfillment-quantity { flex-basis: 100%; justify-content: flex-end; }
}

/* SHIPMENT-DETAIL-PACKING-738: one reading column and one card per packing task. */
.fulfillment-waybill-first-641[data-641-waybill-detail] { gap: 12px; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .order-record-hero { grid-template-columns: minmax(0,1fr) auto; gap: 10px 20px; padding: 18px 22px; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .order-detail-identity h1 { margin: 4px 0; font-size: clamp(23px, 2vw, 30px); overflow-wrap: anywhere; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .order-detail-identity>p:last-child { margin-bottom: 0; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .order-detail-actions { align-self: center; }
.fulfillment-waybill-meta-738 { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding-top: 9px; border-top: 1px solid var(--border); }
.fulfillment-waybill-meta-738 .fulfillment-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.fulfillment-waybill-meta-738 .fulfillment-facts>div { display: flex; gap: 8px; padding: 0; border: 0; font-size: 12px; }
.fulfillment-waybill-meta-738 .fulfillment-facts dt { color: var(--muted); }
.fulfillment-waybill-meta-738 .fulfillment-facts dd { margin: 0; color: var(--text); font-weight: 600; }
.fulfillment-waybill-meta-738>.btn { min-height: 32px; margin-left: auto; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-detail-grid-641 { display: flex; flex-direction: column; gap: 12px; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-detail-grid-641>section { width: 100%; box-sizing: border-box; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-panel { padding: 16px 20px; }
.fulfillment-detail-orders-738 { display: grid; gap: 0; }
.fulfillment-detail-order-738 { min-width: 0; padding: 12px 0; border-top: 1px solid var(--border); }
.fulfillment-detail-order-738:first-child { padding-top: 0; border-top: 0; }
.fulfillment-detail-order-738:last-child { padding-bottom: 0; }
.fulfillment-detail-order-738>header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin-bottom: 7px; }
.fulfillment-detail-order-738>header strong { color: var(--text); font-size: 14px; }
.fulfillment-detail-order-738>header span,
.fulfillment-detail-order-738>header small { color: var(--muted); font-size: 12px; }
.fulfillment-detail-order-738>header small { margin-left: auto; }
.fulfillment-detail-order-table-wrap-738 { max-width: 100%; overflow-x: auto; }
.fulfillment-detail-order-table-738 { width: 100%; min-width: 360px; table-layout: fixed; }
.fulfillment-detail-order-table-738 th,
.fulfillment-detail-order-table-738 td { padding: 7px 10px; font-size: 13px; line-height: 1.45; }
.fulfillment-detail-order-table-738 th:last-child,
.fulfillment-detail-order-table-738 td:last-child { width: 110px; text-align: right; white-space: nowrap; }
.fulfillment-detail-order-table-738 th:first-child,
.fulfillment-packing-order-table-738 th:first-child { text-align: left; }
.fulfillment-detail-order-table-738 td strong { font-weight: 600; }
.fulfillment-detail-order-table-738 td small { display: block; color: var(--muted); font-size: 11px; }
.fulfillment-detail-order-notes-738 { display: grid; gap: 4px; margin-top: 7px; color: var(--text); font-size: 12px; }
.fulfillment-detail-order-notes-738>div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.fulfillment-detail-order-notes-738>div>span { flex: 0 0 56px; color: var(--muted); }
.fulfillment-detail-order-notes-738>div>div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fulfillment-detail-order-notes-738 p { margin: 0; overflow-wrap: anywhere; }
.fulfillment-detail-order-notes-738 p small { margin-left: 6px; color: var(--muted); }
.fulfillment-waybill-contacts-778 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.fulfillment-waybill-contacts-778>:only-child { grid-column: 1 / -1; }
.fulfillment-waybill-contact-778 { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); }
.fulfillment-waybill-contact-778>span { color: var(--muted); font-size: 11px; }
.fulfillment-waybill-contact-778>strong { color: var(--text); font-size: 13px; }
.fulfillment-waybill-contact-778>small { color: var(--muted); font-size: 12px; }
.fulfillment-waybill-contact-778>p { margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-empty { min-height: 0; padding: 12px; }
.fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-box-card-641 { padding: 9px 12px; }

.fulfillment-packing-cards-738 { display: grid; gap: 10px; padding: 12px 16px; }
.fulfillment-packing-card-738 { min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.fulfillment-packing-card-738[tabindex] { cursor: pointer; }
.fulfillment-packing-card-738.is-selected { border-color: var(--primary); background: var(--soft-blue); }
.fulfillment-packing-card-738:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fulfillment-packing-card-head-738,
.fulfillment-packing-card-identity-738,
.fulfillment-packing-card-actions-738,
.fulfillment-packing-card-footer-738 { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fulfillment-packing-card-head-738 { justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-bottom: 10px; }
.fulfillment-packing-card-identity-738>input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.fulfillment-packing-card-identity-738 h2 { margin: 0; color: var(--text); font-size: 16px; overflow-wrap: anywhere; }
.fulfillment-packing-card-identity-738 p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.fulfillment-packing-card-actions-738 { flex-wrap: wrap; justify-content: flex-end; }
.fulfillment-packing-card-progress-738 { margin-right: 6px; color: var(--muted); font-size: 12px; }
.fulfillment-packing-order-738 { min-width: 0; padding: 8px 0; border-top: 1px solid var(--border); }
.fulfillment-packing-order-head-738 { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 5px; }
.fulfillment-packing-order-head-738 strong { font-size: 13px; }
.fulfillment-packing-order-head-738 span { color: var(--muted); font-size: 12px; }
.fulfillment-packing-order-table-wrap-738 { max-width: 100%; overflow-x: auto; }
.fulfillment-packing-order-table-738 { width: 100%; min-width: 340px; table-layout: fixed; }
.fulfillment-packing-order-table-738 th,
.fulfillment-packing-order-table-738 td { padding: 5px 9px; font-size: 12px; line-height: 1.4; }
.fulfillment-packing-order-table-738 th:nth-child(n+2),
.fulfillment-packing-order-table-738 td:nth-child(n+2) { width: 96px; text-align: right; white-space: nowrap; }
.fulfillment-packing-order-notes-738 { display: grid; gap: 3px; padding: 6px 9px; color: var(--text); font-size: 12px; }
.fulfillment-packing-order-notes-738 p { margin: 0; overflow-wrap: anywhere; }
.fulfillment-packing-order-notes-738 span { display: inline-block; min-width: 54px; margin-right: 8px; color: var(--muted); }
.fulfillment-packing-card-footer-738 { justify-content: space-between; flex-wrap: wrap; padding-top: 9px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.fulfillment-packing-card-738 .fulfillment-packing-detail-716 { padding: 10px 0 0; }
.fulfillment-packing-card-738 [data-641-packing-detail][hidden] { display: none !important; }
.fulfillment-packing-card-738 .fulfillment-empty { min-height: 0; padding: 9px; }
.fulfillment-packing-provider-743 { margin-right: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.fulfillment-packing-order-head-738 .fulfillment-packing-meta-743 { padding: 2px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); }
.fulfillment-packing-plan-743,
.fulfillment-packing-actual-743 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; padding: 8px 10px; border-top: 1px solid var(--border); font-size: 12px; }
.fulfillment-packing-plan-743,
.fulfillment-packing-actual-743 { background: var(--soft-blue); }
.fulfillment-packing-plan-743>span,
.fulfillment-packing-actual-743>span { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.fulfillment-packing-cross-743 { padding: 2px 7px; border-radius: 5px; background: var(--soft-blue); color: var(--primary); white-space: nowrap; }
.fulfillment-packing-plan-743>.fulfillment-packing-status-777,
.fulfillment-packing-actual-743>.fulfillment-packing-status-777 { flex: 0 0 auto; padding: 2px 7px; border-radius: 5px; background: var(--soft-amber); color: var(--text); white-space: nowrap; }
.fulfillment-packing-plan-743>.fulfillment-packing-status-777.is-complete,
.fulfillment-packing-actual-743>.fulfillment-packing-status-777.is-complete { background: var(--soft-green); color: var(--text); }
.fulfillment-packing-other-order-777 { color: var(--muted); }
.fulfillment-packing-unplanned-777 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 9px 10px; border-top: 1px solid var(--border); background: var(--soft-amber); color: var(--text); font-size: 12px; }
.fulfillment-packing-pool-743 { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.fulfillment-packing-pool-743[hidden] { display: none; }
.fulfillment-packing-pool-743 h3,
.fulfillment-packing-pool-743 p { margin: 0; }
.fulfillment-packing-pool-743 h3 { font-size: 14px; }
.fulfillment-packing-pool-743>p { color: var(--muted); font-size: 12px; }
.fulfillment-packing-pool-lines-743 { display: grid; gap: 6px; }
.fulfillment-packing-pool-lines-743>label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.fulfillment-packing-pool-lines-743>label>span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fulfillment-packing-pool-lines-743 input[type="number"] { width: 64px; min-height: 32px; padding: 4px 7px; }
.fulfillment-packing-pool-lines-743 small { color: var(--muted); }
.shipment-preview-dialog.fulfillment-packing-dialog-753 { width: min(960px, calc(100vw - 32px)); }
.fulfillment-packing-dialog-753 .fulfillment-packing-dialog-body-753 { display: grid; align-content: start; gap: 14px; padding: 16px 20px; }
.fulfillment-packing-dialog-753 .fulfillment-packing-dialog-body-753>p { margin: 0; }
.fulfillment-packing-dialog-753 .fulfillment-packing-pool-lines-743>label { font-size: 13px; }
.fulfillment-packing-dialog-753 .fulfillment-packing-pool-lines-743 input[type="number"] { width: 78px; }
.fulfillment-packing-plan-results-753 { display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--border); }
.fulfillment-packing-plan-results-753[hidden] { display: none; }
.fulfillment-packing-plan-results-753 h3,
.fulfillment-packing-plan-results-753 p { margin: 0; }
.fulfillment-packing-plan-results-753 h3 { font-size: 15px; }
.fulfillment-packing-plan-results-753>p { color: var(--muted); font-size: 12px; }
.fulfillment-packing-pool-group-753 { padding: 12px 0; border-top: 1px solid var(--border); }
.fulfillment-packing-pool-group-753:first-child { border-top: 0; padding-top: 0; }
.fulfillment-packing-pool-group-head-753 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fulfillment-packing-pool-group-head-753>div { display: grid; gap: 3px; min-width: 0; }
.fulfillment-packing-pool-group-head-753 strong { overflow-wrap: anywhere; }
.fulfillment-packing-pool-group-head-753 small { color: var(--muted); }
.fulfillment-packing-pool-group-753 .pe-table { width: 100%; }
.fulfillment-packing-pool-group-753 .pe-table th:last-child,
.fulfillment-packing-pool-group-753 .pe-table td:last-child { text-align: right; white-space: nowrap; }
.fulfillment-packing-dialog-753 [data-753-editor-host] .fulfillment-mobile-packing { width: 100%; }
.fulfillment-packing-dialog-753 [data-753-editor-host] .fulfillment-mobile-action-bar { position: sticky; bottom: 0; }
/* SHIPMENT-PACKING-DESKTOP-760: compact review inside the shared shipment dialog. */
.fulfillment-packing-review-760 { display: grid; gap: 14px; min-width: 0; }
.fulfillment-packing-review-heading-760 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fulfillment-packing-review-heading-760>strong { font-size: 16px; }
.fulfillment-packing-review-heading-760>div { display: flex; align-items: center; gap: 8px; }
.fulfillment-packing-review-760 fieldset { display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; min-width: 0; padding: 0; margin: 0; border: 0; }
.fulfillment-packing-review-760 .pe-table { width: 100%; }
.fulfillment-packing-review-table-wrap-775 { width: 100%; height: auto; max-height: none; align-self: start; overflow: visible; }
.fulfillment-packing-review-table-760 th:last-child,
.fulfillment-packing-review-table-760 td:last-child { text-align: right; white-space: nowrap; }
.fulfillment-packing-review-table-760 input[type="hidden"] { display: none; }
.fulfillment-packing-review-accompanying-760 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.fulfillment-packing-review-accompanying-760>div { display: flex; flex-wrap: wrap; gap: 6px; }
.fulfillment-packing-review-accompanying-760>div>span { padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--soft); }
.fulfillment-packing-review-dimensions-760 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.fulfillment-packing-review-photo-760 { display: grid; gap: 8px; }
.fulfillment-packing-review-photo-760 .fulfillment-mobile-media { min-height: 0; }
.fulfillment-packing-review-optional-760 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.fulfillment-packing-review-760 .fulfillment-mobile-action-bar { position: static !important; padding: 12px 0 0; box-shadow: none; }
.fulfillment-packing-review-760 .fulfillment-mobile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.fulfillment-packing-review-760 .fulfillment-mobile-actions .btn { flex: 0 0 auto; width: auto; }
.fulfillment-packing-review-760 [aria-invalid="true"] { border-color: #d94d5c; }
.fulfillment-packing-review-760 [data-packing-input-error] { color: #bb3546; font-size: 11px; }
.fulfillment-packing-review-760 [hidden] { display: none; }
/* SHIPMENT-PACKING-WAYBILL-764: keep review controls visible while only fields scroll. */
.fulfillment-packing-dialog-753 .shipping-request-detail:has([data-753-editor-host])>footer { display: none; }
.fulfillment-packing-dialog-753 .fulfillment-packing-dialog-body-753:has([data-753-editor-host]) {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.fulfillment-packing-dialog-753 [data-753-editor-host] { display: flex; flex: 1 1 auto; min-height: 0; }
.fulfillment-packing-dialog-753 [data-753-editor-host] .fulfillment-packing-review-760 {
  display: flex; flex: 1 1 auto; flex-direction: column; gap: 0; min-height: 0;
}
.fulfillment-packing-dialog-753 [data-753-editor-host] .fulfillment-packing-review-heading-760 {
  flex: 0 0 auto; padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.fulfillment-packing-dialog-753 [data-753-editor-host] .fulfillment-packing-review-760>fieldset {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 20px;
}
.fulfillment-packing-dialog-753 [data-753-editor-host] .fulfillment-packing-review-760>.fulfillment-mobile-action-bar {
  position: static !important; flex: 0 0 auto; padding: 12px 20px; border-top: 1px solid var(--border);
}
.fulfillment-packing-photo-thumb-764 { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); cursor: zoom-in; }
.fulfillment-packing-photo-thumb-764 img { width: 100%; height: 100%; object-fit: cover; }
.fulfillment-packing-review-photo-760 [data-packing-photo-preview] { display: contents; }
.fulfillment-packing-review-photo-760 .pe-file-items { overflow: visible; }
.shipment-preview-dialog.fulfillment-packing-photo-dialog-764 { width: min(900px, calc(100vw - 32px)); }
.fulfillment-packing-photo-dialog-764 .shipment-preview-body { display: grid; place-items: center; padding: 12px; }
.fulfillment-packing-photo-dialog-764 .shipment-preview-body img { display: block; max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.fulfillment-detail-product-tags-764 { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.fulfillment-detail-product-tags-764>span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--soft); }
.fulfillment-detail-product-tags-764 small { margin-left: 5px; color: var(--muted); }
.fulfillment-waybill-destinations-764 { display: grid; gap: 10px; }
.fulfillment-waybill-destination-764 { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--border); }
.fulfillment-waybill-destination-764:first-child { border-top: 0; }
.fulfillment-waybill-destination-764 p { display: flex; gap: 14px; margin: 0; }
.fulfillment-waybill-destination-764 p>span { flex: 0 0 76px; color: var(--muted); }
.fulfillment-waybill-destination-764 p>strong { font-weight: 500; overflow-wrap: anywhere; }
.fulfillment-waybill-box-table-764 td:last-child { white-space: nowrap; }
.fulfillment-waybill-box-table-764 td>div { display: grid; gap: 2px; }
.fulfillment-waybill-box-table-764 td>div+div { margin-top: 6px; }
.fulfillment-waybill-box-table-764 td small { color: var(--muted); }
@media(max-width: 760px) {
  .fulfillment-packing-review-dimensions-760 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fulfillment-packing-review-optional-760 { grid-template-columns: minmax(0,1fr); }
  .fulfillment-waybill-contacts-778 { grid-template-columns: minmax(0,1fr); }
}
@media(max-width: 600px) {
  .fulfillment-packing-dialog-753 .fulfillment-packing-dialog-body-753 { padding: 12px; }
  .fulfillment-packing-dialog-753 [data-753-editor-host] .fulfillment-mobile-action-bar:has(.fulfillment-mobile-actions) { position: sticky; padding: 9px 0; box-shadow: none; }
}
@media(max-width: 760px) {
  .fulfillment-waybill-first-641[data-641-waybill-detail] .order-record-hero,
  .fulfillment-waybill-first-641[data-641-waybill-detail] .fulfillment-panel { padding: 14px; }
  .fulfillment-waybill-first-641[data-641-waybill-detail] .order-record-hero { grid-template-columns: minmax(0,1fr); }
  .fulfillment-waybill-first-641[data-641-waybill-detail] .order-detail-actions { align-self: stretch; }
  .fulfillment-waybill-meta-738>.btn { margin-left: 0; }
  .fulfillment-packing-cards-738 { padding: 10px; }
  .fulfillment-packing-card-738 { padding: 12px; }
  .fulfillment-packing-card-actions-738 { justify-content: flex-start; }
  .fulfillment-detail-order-table-738,
  .fulfillment-packing-order-table-738 { min-width: 0; }
  .fulfillment-packing-order-table-738 th:nth-child(n+2),
  .fulfillment-packing-order-table-738 td:nth-child(n+2) { width: 72px; }
}
/* SHIPMENT-CUSTOMER-ORDER-831: one hierarchy wherever an order is identified. */
.fulfillment-order-identity-831 { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; min-width: 0; }
.fulfillment-order-identity-831 strong { color: inherit; font-weight: 700; overflow-wrap: anywhere; }
.fulfillment-order-identity-831 small { color: var(--muted); font-size: .78em; font-weight: 400; overflow-wrap: anywhere; }
