/* Freight workspaces and their portalled Mud dialogs share one visual language. */
.freight-workspace {
  height: 100%;
  min-height: 0;
  overflow: auto;
  container-type: inline-size;
  background: #0b0c0f;
  color: #dbcfb9;
  font-family: Jura, sans-serif;
}
.freight-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 36px;
  background:
    radial-gradient(ellipse at 85% 0, #ae8e4524, transparent 60%),
    linear-gradient(120deg, #191c20, #0b0c0f);
  border-bottom: 1px solid #b99b5c35;
}
.freight-kicker {
  font-size: 11px;
  line-height: 1.6;
  color: #baa171;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.freight-hero h1 {
  font:
    600 40px/1.2 Jura,
    sans-serif;
  letter-spacing: -0.035em;
  margin: 8px 0;
  color: #eadbc1;
}
.freight-hero p {
  font-size: 17px;
  color: #c8b697;
  margin: 0 0 8px;
}
.freight-muted {
  font-size: 12px;
  line-height: 1.7;
  color: #ab9d87;
}
.freight-route-art {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 300px;
  color: #cfad70;
  transform: rotate(-8deg);
}
.freight-route-art > .mud-icon-root {
  width: 46px;
  height: 46px;
  flex: none;
}
.freight-route-art > .mud-icon-root:nth-of-type(2) {
  width: 64px;
  height: 64px;
  color: #e0bd7e;
  filter: drop-shadow(0 12px 16px #0008);
}
.freight-route-art > span {
  width: 38px;
  border-top: 1px dashed #bca16480;
}
.freight-content {
  padding: 28px 36px 44px;
  max-width: 1800px;
  margin: 0 auto;
}
.freight-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.freight-toolbar .freight-search {
  flex: 1;
  max-width: 620px;
}
.freight-toolbar > .mud-button {
  margin-left: auto;
  flex: none;
}
.freight-toolbar .mud-input-control {
  margin-top: 0;
}
.freight-toolbar .mud-input-outlined {
  height: 44px;
}
.freight-toolbar .mud-button {
  min-height: 44px;
}
.freight-views {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #ffffff18;
  margin: 26px 0 0;
}
.freight-view {
  flex: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 0;
  background: none;
  color: #a99c88;
  font:
    500 15px Jura,
    sans-serif;
  cursor: pointer;
}
.freight-view span {
  font-size: 12px;
  color: #a48e65;
}
.freight-view[aria-pressed="true"] {
  color: #e0bf80;
  border-bottom-color: #c2a268;
}
.freight-views > .mud-input-control {
  width: auto;
  flex: none;
  margin-left: auto;
}
.freight-views .mud-switch {
  margin-left: 0;
}
.freight-list-heading {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 14px;
  color: #a39782;
  font-size: 12px;
}
.freight-manifest {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 235px 24px;
  gap: 24px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 26px 20px;
  border: 0;
  border-bottom: 1px solid #ffffff14;
  background: linear-gradient(100deg, #bca26408, transparent 65%);
  color: #dbcfb9;
  font:
    14px Jura,
    sans-serif;
  cursor: pointer;
}
.freight-manifest:hover {
  background: linear-gradient(100deg, #bca26417, #ffffff04);
}
.freight-manifest-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 60px;
  border-left: 2px solid #b69a6055;
  color: #b99e69;
  background: #b99e690a;
}
.freight-manifest-symbol .mud-icon-root {
  width: 28px;
  height: 28px;
}
.freight-manifest-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.freight-manifest-copy > strong {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #e2d3b9;
  overflow-wrap: anywhere;
}
.freight-destination {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #c7b697;
}
.freight-destination > .mud-icon-root {
  color: #ad9463;
  flex: none;
}
.freight-manifest-status {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.freight-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font:
    500 12px/1.5 Jura,
    sans-serif;
  color: #d4b16d;
}
.freight-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.freight-status.fulfilled {
  color: #a9c6a8;
}
.freight-status.archived {
  color: #a99f90;
}
.freight-progress-copy {
  font-size: 12px;
  color: #a99c87;
}
.freight-progress {
  width: 100%;
  height: 3px;
  appearance: none;
  border: 0;
  background: #ffffff14;
}
.freight-progress::-webkit-progress-bar {
  background: #ffffff14;
}
.freight-progress::-webkit-progress-value {
  background: #b59c6a;
}
.freight-progress::-moz-progress-bar {
  background: #b59c6a;
}
.fulfilled .freight-progress::-webkit-progress-value {
  background: #99b798;
}
.freight-open-icon {
  color: #b89c65;
  width: 20px;
}
.freight-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 280px;
  text-align: center;
  color: #b3a48a;
  padding: 28px;
}
.freight-state h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  color: #deccab;
}
.freight-state p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 60ch;
  margin: 0;
}
.freight-workspace button:focus-visible,
.freight-dialog button:focus-visible {
  outline: 2px solid #d6b26f;
  outline-offset: 3px;
}

.mud-dialog.freight-dialog {
  font-family: Jura, sans-serif;
  color: #dbcfb9;
  container-type: inline-size;
  width: calc(100% - 64px);
}
.freight-dialog .mud-dialog-title {
  padding: 0;
}
.freight-dialog .mud-dialog-content {
  padding: 24px 28px;
}
.freight-dialog .mud-dialog-actions {
  padding: 18px 28px;
  gap: 12px;
  border-top: 1px solid #ffffff14;
}
.freight-dialog-heading {
  padding: 24px 28px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.freight-dialog-heading > .mud-icon-root {
  width: 36px;
  height: 36px;
  color: #c3a56c;
  flex: none;
}
.freight-dialog-heading h2 {
  font:
    600 26px/1.3 Jura,
    sans-serif;
  letter-spacing: -0.02em;
  color: #e6d6b9;
  margin: 2px 0 0;
}
.freight-dialog-heading p {
  font-size: 13px;
  color: #ac9e88;
  line-height: 1.6;
  margin: 6px 0 0;
}
.freight-dialog .mud-input-control {
  margin-top: 0;
}
.freight-editor-fields,
.freight-detail-body {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.freight-editor-basics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.freight-editor-items {
  margin-top: 30px;
  border-top: 1px solid #ffffff14;
  padding-top: 24px;
}
.freight-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.freight-section-heading h3 {
  font-size: 21px;
  font-weight: 500;
  color: #dfcbae;
  margin: 0;
}
.freight-section-heading p {
  font-size: 13px;
  line-height: 1.6;
  color: #ab9b81;
  margin: 6px 0 0;
}
.freight-editor-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 34px;
  gap: 14px;
  align-items: center;
  padding: 0 0 20px;
}
.freight-editor-item .mud-autocomplete,
.freight-editor-item .mud-input-control {
  min-width: 0;
}
.freight-item-hint {
  grid-column: 1/-1;
  font-size: 12px;
  color: #bfa77b;
  margin-top: -4px;
}
.freight-editor-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 24px;
  margin: 24px 0 0;
  border-top: 1px solid #ffffff14;
  font-size: 12px;
  line-height: 1.8;
  color: #ab9c82;
}
.freight-editor-note > .mud-icon-root {
  flex: none;
  margin-top: 2px;
}
.freight-empty-inline {
  font-size: 14px;
  color: #a99b83;
  line-height: 1.7;
  margin: 10px 0 22px;
}
.freight-management-actions {
  display: flex;
  gap: 10px;
  margin-right: auto;
  flex-wrap: wrap;
}
.freight-discard {
  padding: 18px;
  border-left: 2px solid #c5a472;
  background: #c5a4720d;
  margin-top: 20px;
}
.freight-discard p {
  font-size: 14px;
  margin: 0 0 10px;
}
.freight-detail-body .title-section {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #ffffff14;
}
.freight-title {
  font:
    600 30px/1.3 Jura,
    sans-serif;
  letter-spacing: -0.02em;
  color: #e4d3b4;
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
.freight-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #b4a58b;
  margin-top: 18px;
}
.freight-meta .meta-item {
  display: flex;
  gap: 7px;
  align-items: center;
}
.freight-meta .meta-icon {
  width: 16px;
  color: #baa16d;
}
.freight-meta .meta-divider {
  display: none;
}
.freight-detail-body > .section {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: none;
}
.freight-detail-body .freight-detail-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9c5a0;
  font-size: 20px;
  margin: 0 0 14px;
}
.freight-section-copy {
  font-size: 12px;
  color: #b2a187;
  line-height: 1.7;
  margin: 0 0 18px;
}
.freight-cargo-list {
  border-top: 1px solid #ffffff14;
}
.freight-cargo-item {
  padding: 20px 0;
  border-bottom: 1px solid #ffffff14;
}
.freight-cargo-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.freight-cargo-heading > .mud-icon-root {
  color: #b49760;
  flex: none;
  width: 20px;
}
.freight-cargo-heading h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e0cdb0;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}
.freight-cargo-heading > span {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: #b3a185;
}
.freight-cargo-item.fulfilled .freight-cargo-heading > span {
  color: #9bb79a;
}
.freight-cargo-body {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}
.freight-quantities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
}
.freight-quantities dt {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: #ad9c7f;
}
.freight-quantities dd {
  font-size: 23px;
  line-height: 1.5;
  margin: 4px 0 0;
  color: #dcc4a0;
}
.freight-quantities .delivered dd {
  color: #a3bea2;
}
.freight-quantities .needed dd {
  color: #d8b16d;
}
.freight-cargo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.freight-my-quantity {
  flex-basis: 100%;
  text-align: right;
  font-size: 12px;
  color: #c8b188;
  margin-bottom: 3px;
}
.freight-action {
  padding: 9px 12px;
  border: 1px solid #ffffff1c;
  border-radius: var(--radius-button);
  background: #ffffff04;
  color: #d2bea0;
  font:
    500 12px/1.4 Jura,
    sans-serif;
  cursor: pointer;
}
.freight-action.primary {
  border-color: #bd9e6055;
  background: #b5965a12;
  color: #dec18b;
}
.freight-action.success {
  border-color: #9fba9845;
  color: #b1c7a8;
}
.freight-action.danger {
  border-color: transparent;
  background: none;
  color: #c39988;
}
.freight-action:hover {
  background: #ffffff0b;
}
.freight-action:disabled {
  opacity: 0.4;
  cursor: default;
}
.freight-cargo-actions .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.freight-dialog .no-value {
  font-size: 12px;
  color: #b19e81;
}
.freight-dialog .operators-list {
  border-top: 1px solid #ffffff14;
}
.freight-dialog .operator-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #ffffff14;
}
.freight-dialog .operator-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cdb897;
  font-size: 14px;
  align-self: start;
}
.freight-dialog .you-badge {
  font-size: 10px;
  color: #b69c69;
}
.freight-dialog .operator-assignments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.freight-dialog .assignment-chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #c8b391;
}
.freight-dialog .assignment-chip.delivered {
  color: #adc0a5;
}
.freight-dialog .assignment-chip.cancelled {
  color: #a39080;
}
.freight-dialog .empty-section {
  padding: 14px 0;
  font-size: 13px;
  color: #a99a83;
}
.freight-history-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid #ffffff18;
  background: none;
  color: #d0b996;
  font:
    500 17px Jura,
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.freight-history-toggle > .mud-icon-root:last-child {
  margin-left: auto;
}
.freight-dialog .history-item {
  padding: 16px 0 16px 20px;
  border-left: 1px solid #b79d6540;
  position: relative;
}
.freight-dialog .history-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 22px;
  width: 5px;
  height: 5px;
  background: #bba06b;
  border-radius: 50%;
}
.freight-dialog .history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c4b08e;
  flex-wrap: wrap;
}
.freight-dialog .history-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #aa9b81;
  margin-top: 8px;
  line-height: 1.6;
}
.freight-dialog .loading-state,
.freight-dialog .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 200px;
  color: #b4a185;
}
.freight-dialog .spacer {
  flex: 1;
}
.freight-dialog .freight-quantity-summary {
  border-left: 2px solid #b49b65;
  padding: 14px 18px;
  background: #b49b650c;
  color: #d4bd96;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.freight-dialog .freight-quantity-help {
  font-size: 13px;
  line-height: 1.8;
  color: #b4a184;
  margin: 16px 0 0;
}
@container (max-width:1000px) {
  .freight-manifest {
    grid-template-columns: 44px minmax(0, 1fr) 190px 18px;
    gap: 18px;
  }
  .freight-manifest-copy > strong {
    font-size: 19px;
  }
  .freight-cargo-body {
    grid-template-columns: 1fr;
  }
  .freight-cargo-actions {
    justify-content: flex-start;
  }
  .freight-my-quantity {
    text-align: left;
  }
  .freight-editor-basics {
    gap: 16px;
  }
}
@container (max-width:780px) {
  .freight-hero {
    padding: 24px;
  }
  .freight-hero h1 {
    font-size: 32px;
  }
  .freight-route-art {
    flex-basis: 210px;
    gap: 8px;
  }
  .freight-route-art > .mud-icon-root {
    width: 30px;
    height: 30px;
  }
  .freight-route-art > .mud-icon-root:nth-of-type(2) {
    width: 45px;
    height: 45px;
  }
  .freight-content {
    padding: 24px;
  }
  .freight-toolbar {
    flex-wrap: wrap;
  }
  .freight-toolbar .freight-search {
    min-width: 200px;
  }
  .freight-views {
    gap: 20px;
    flex-wrap: wrap;
  }
  .freight-manifest {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 14px;
    padding: 22px 0;
  }
  .freight-manifest-status {
    grid-column: 2;
    grid-row: 2;
    gap: 8px;
  }
  .freight-manifest-symbol {
    width: 34px;
  }
  .freight-open-icon {
    grid-column: 3;
    grid-row: 1;
  }
  .freight-manifest-copy > strong {
    font-size: 18px;
  }
  .freight-editor-basics {
    grid-template-columns: 1fr;
  }
  .freight-dialog .operator-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .freight-cargo-heading {
    flex-wrap: wrap;
  }
  .freight-cargo-heading > span {
    flex-basis: 100%;
    margin-left: 32px;
  }
  .freight-management-actions {
    flex-basis: 100%;
  }
}
