.page-card {
  min-height: calc(100vh - 65px);
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.filter-panel,
.list-panel {
  border: 1px solid var(--line);
  background: var(--panel-bg);
}

.status-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 38px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar {
  display: none;
}

.status-tab {
  position: relative;
  border: 0;
  padding: 0;
  height: 38px;
  background: transparent;
  color: #43566f;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.status-tab .count {
  margin-left: 2px;
  font-weight: 700;
}

.status-tab.active {
  color: var(--brand);
  font-weight: 700;
}

.status-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.filter-panel {
  padding: 14px;
}

.filter-panel-combined .status-tabs {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.query-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  width: 320px;
  height: 34px;
}

.search-input {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line-deep);
  border-radius: 2px;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: #aeb9c7;
}

.search-input:focus,
.query-select:focus,
.page-size:focus,
.jump-input:focus {
  outline: none;
  border-color: #97b5ff;
  box-shadow: 0 0 0 3px rgba(77, 119, 234, 0.12);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9aa8b8;
  pointer-events: none;
}

.query-select {
  min-width: 140px;
  height: 34px;
  padding: 0 26px 0 12px;
  border: 1px solid var(--line-deep);
  border-radius: 2px;
  color: var(--text-main);
  background: #fff;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f7290 50%),
    linear-gradient(135deg, #5f7290 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 14px,
    calc(100% - 8px) 14px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.list-panel {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 270px);
}

/* 列表表头 */
.list-header {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr 1fr;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  font-size: 13px;
  font-weight: 600;
  color: #7788a3;
}

.order-card-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.order-card {
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  transition: background 0.2s ease;
}

.order-card:hover {
  background: #f9fbff;
}

.order-card:last-child {
  border-bottom: 0;
}

.order-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-time {
  color: #667892;
  font-size: 13px;
}

.order-no {
  font-size: 15px;
  font-weight: 700;
  color: #1f3452;
}

.status-badge {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: none;
}

.status-badge.pending {
  background: #e8f5ee;
  color: #1a8f52;
}

.status-badge.partial {
  background: #fff6e8;
  color: #b56a00;
}

.status-badge.ready {
  background: #e8f1ff;
  color: #2f5fdf;
}

.status-badge.processing {
  background: #f0e8ff;
  color: #7d67ff;
}

.status-badge.done {
  background: #e8f5ee;
  color: #1a8f52;
}

.status-badge.closed {
  background: #f3f5f7;
  color: #667892;
}

/* 卡片主体 - 与表头对齐 */
.card-body {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr 1fr;
  gap: 16px;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 卡片底部 */
.card-footer {
  padding: 10px 16px 12px;
  border-top: 1px dashed #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-footer .progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-footer .progress-warehouse {
  font-size: 13px;
  font-weight: 500;
  color: #23334d;
  flex: none;
}

.card-footer .progress-track {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.card-footer .action-row {
  flex: none;
  padding-top: 0;
}

.info-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: #23334d;
  line-height: 1.5;
}

.info-label {
  color: #5d6d81;
  flex: none;
}

.info-value {
  color: #23334d;
}

.info-value.primary {
  color: #1f3452;
  font-weight: 700;
}

.info-value.brand {
  color: var(--brand);
  font-weight: 700;
}

.progress-step {
  height: 18px;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #f7f9fc;
  color: #9aa8b8;
  border: 1px solid #e8ecf1;
}

.progress-step.active {
  background: #e8f5ee;
  color: #1a8f52;
  border-color: #c8ebd8;
  font-weight: 600;
}

.progress-step.completed {
  background: #f7f9fc;
  color: #5d6d81;
  border-color: #e8ecf1;
}

.progress-arrow {
  color: #c7d3e1;
  font-size: 11px;
}

/* 货主信息 */
.company-tag {
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfebff;
  background: #f7fbff;
  color: var(--brand);
  flex: none;
}

.company-tag.partner {
  border-color: #e8f1ff;
  background: #f5f9ff;
  color: #5e6f87;
}

.company-name {
  color: #23334d;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cargo-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #23334d;
}

.cargo-stats .sep {
  color: #c7d3e1;
}

.cargo-stats .zero {
  color: #9aa8b8;
}

/* 人员信息 */
.person-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  align-content: start;
}

.person-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.person-label {
  color: #5d6d81;
  min-width: 58px;
  flex: none;
}

.person-value {
  color: #23334d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e7f0ff;
  color: #2f79ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 2px;
}

.action-link {
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.action-link:hover {
  color: var(--brand-deep);
}

.action-link i {
  font-size: 12px;
}

.empty-state {
  padding: 56px 0;
  text-align: center;
  color: #9aa8b8;
}

/* 分页 */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px 18px;
  color: #425670;
  font-size: 12px;
  border-top: 1px solid #eef2f7;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pager-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn,
.page-size {
  height: 30px;
  border: 1px solid #c8d3e2;
  background: #fff;
  color: #30445d;
  border-radius: 4px;
  cursor: pointer;
}

.page-btn {
  min-width: 30px;
  padding: 0 10px;
}

.page-btn:hover,
.page-size:hover {
  border-color: #90adff;
  color: var(--brand);
}

.page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  width: 24px;
  text-align: center;
  color: #6f8096;
}

.page-size {
  min-width: 90px;
  padding: 0 10px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f7290 50%),
    linear-gradient(135deg, #5f7290 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 12px,
    calc(100% - 9px) 12px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.jump-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jump-input {
  width: 44px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #c8d3e2;
  border-radius: 4px;
  color: #30445d;
  text-align: center;
}

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(32, 51, 77, 0.95);
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 38, 63, 0.2);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
}

.toast-desc {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

/* 拼单相关样式 */
.merge-tag {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: none;
}

.merge-parent-tag {
  background: #fff6e8;
  color: #b56a00;
  border: 1px solid #f0d09c;
}

.merge-child-tag {
  background: #eaf1ff;
  color: #2f5fdf;
  border: 1px solid #cfe0ff;
}

.merge-summary-badge {
  margin-left: 8px;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  background: #fff6e8;
  color: #b56a00;
  border: 1px solid #f0d09c;
  flex: none;
}

.merge-child-badge {
  margin-left: 8px;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  background: #eaf1ff;
  color: #2f5fdf;
  border: 1px solid #cfe0ff;
  flex: none;
}

