.dp-v3-shipment-page {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dp-v3-shipment-rule {
  border: 1px solid #dbe6ff;
  background: #f7f9ff;
}

.dp-v3-shipment-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dp-border, #e5e6eb);
  border-radius: 8px;
  background: #fff;
}

.dp-v3-shipment-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 126px minmax(170px, .72fr) 260px auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f3;
}

.dp-v3-shipment-toolbar .el-select,
.dp-v3-shipment-toolbar .el-date-editor,
.dp-v3-shipment-form .el-select,
.dp-v3-shipment-form .el-date-editor {
  width: 100%;
}

.dp-v3-shipment-table-shell {
  width: 100%;
  overflow-x: auto;
}

.dp-v3-shipment-table-shell .el-table {
  min-width: 1360px;
}

.dp-v3-shipment-code {
  overflow: hidden;
  color: #245bdb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.dp-v3-shipment-subtext {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #86909c;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-v3-shipment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.dp-v3-shipment-actions .el-button + .el-button {
  margin-left: 0;
}

.dp-v3-shipment-actions .is-danger-light,
.dp-v3-shipment-line .is-danger-light {
  color: #a84a4a;
}

.dp-v3-shipment-actions .is-danger-light:hover,
.dp-v3-shipment-line .is-danger-light:hover {
  color: #d54941;
}

.dp-v3-shipment-pagination {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #eef0f3;
}

.dp-v3-shipment-detail {
  min-height: 240px;
}

.dp-v3-shipment-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef0f3;
}

.dp-v3-shipment-detail__header span {
  display: block;
  margin-bottom: 5px;
  color: #86909c;
  font-size: 12px;
}

.dp-v3-shipment-detail__header strong {
  color: #1d2129;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
}

.dp-v3-shipment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 10px 0;
}

.dp-v3-shipment-facts > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 4px;
}

.dp-v3-shipment-facts dt {
  color: #86909c;
  font-size: 12px;
}

.dp-v3-shipment-facts dd {
  min-width: 0;
  margin: 0;
  color: #1d2129;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dp-v3-shipment-detail__table {
  margin-top: 8px;
  border-top: 1px solid #eef0f3;
  padding-top: 16px;
}

.dp-v3-shipment-detail__table h3,
.dp-v3-shipment-lines h3 {
  margin: 0;
  color: #1d2129;
  font-size: 14px;
}

.dp-v3-shipment-detail__note {
  margin-top: 16px;
}

.dp-v3-shipment-detail__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}

.dp-v3-shipment-detail__actions .el-button + .el-button {
  margin-left: 0;
}

.dp-v3-shipment-detail__actions .is-danger-light {
  color: #a84a4a;
}

.dp-v3-shipment-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.dp-v3-shipment-lines {
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid #e5e6eb;
  border-radius: 7px;
}

.dp-v3-shipment-lines > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 14px;
  border-bottom: 1px solid #eef0f3;
  background: #fafbfc;
}

.dp-v3-shipment-lines > header p {
  margin: 5px 0 0;
  color: #86909c;
  font-size: 12px;
  line-height: 1.5;
}

.dp-v3-shipment-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 112px 128px 70px 48px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f1f3;
}

.dp-v3-shipment-line:last-child {
  border-bottom: 0;
}

.dp-v3-shipment-line--head {
  padding-top: 8px;
  padding-bottom: 8px;
  color: #646a73;
  background: #f7f8fa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.dp-v3-shipment-unit {
  color: #4e5969;
  font-size: 12px;
  text-align: center;
}

.dp-v3-shipment-dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.dp-v3-shipment-dialog-footer > span {
  color: #86909c;
  font-size: 12px;
}

.dp-v3-shipment-arrival-form {
  margin-top: 18px;
}

.dp-v3-shipment-arrival-form .el-date-editor {
  width: 100%;
}

.dp-v3-shipment-page .is-empty {
  color: #86909c;
}

@media (max-width: 1280px) {
  .dp-v3-shipment-toolbar {
    grid-template-columns: minmax(220px, 1fr) 126px minmax(170px, .8fr) auto auto;
  }

  .dp-v3-shipment-toolbar .el-date-editor {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 900px) {
  .dp-v3-shipment-toolbar,
  .dp-v3-shipment-form__grid,
  .dp-v3-shipment-facts {
    grid-template-columns: 1fr;
  }

  .dp-v3-shipment-toolbar .el-date-editor {
    grid-column: auto;
  }

  .dp-v3-shipment-line,
  .dp-v3-shipment-line--head {
    grid-template-columns: minmax(190px, 1fr) 90px 106px 54px 42px;
  }
}
