/* 文件职责：订单大厅卡片样式（对齐新版原型）。 */
.ob-order {
  position: relative;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgb(15 23 42 / 6%);
}

.ob-order.is-urged {
  border-left: 4px solid #f04438;
}

.ob-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ob-order-top-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ob-type-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;

  &.is-delivery {
    color: #3f7fe8;
    background: #e5edff;
  }

  &.is-pickup {
    color: #1c9f62;
    background: #dff5ea;
  }

  &.is-dine-in {
    color: #8246af;
    background: #f0e2fd;
  }

  &.is-default {
    color: #667085;
    background: #f2f4f7;
  }
}

.ob-short-no {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  color: #1d2939;
}

.ob-table-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  font-size: 13px;
  color: #667085;
  background: #f2f4f7;
  border-radius: 8px;
}

.ob-time-chip {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  color: #98a2b3;

  .vben-iconify {
    width: 14px;
    height: 14px;
  }
}

.ob-main-line {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #1d2939;

  .vben-iconify {
    width: 15px;
    height: 15px;
    color: #98a2b3;
  }
}

.ob-order-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ob-full-no {
  font-size: 11px;
  color: #8a94a6;
}

.ob-amount {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: #e55a0a;
}

.ob-actions {
  .ant-btn {
    height: 38px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
  }
}

.ob-actions-pending {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ob-actions-making {
  display: flex;
  flex-direction: column;
  gap: 12px;

  .ant-progress {
    margin-bottom: 0;
  }

  .ant-progress-inner {
    height: 9px !important;
    border-radius: 999px;
  }
}

.ob-actions-delivering {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ob-deliver-info {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #667085;

  .vben-iconify {
    width: 14px;
    height: 14px;
    color: #98a2b3;
  }
}

.ob-btn {
  &.ob-btn-ghost {
    color: #b03d4b;
    background: #fff;
    border: 1px solid #e9d4d8;
  }

  &.ob-btn-orange {
    color: #fff;
    background: #ff7a14;
    border-color: #ff7a14;
  }

  &.ob-btn-blue {
    color: #fff;
    background: #3f7fe8;
    border-color: #3f7fe8;
  }

  &.ob-btn-green {
    min-width: 102px;
    color: #fff;
    background: #2fbf5f;
    border-color: #2fbf5f;
  }
}

.ob-column.done .ob-order {
  opacity: 0.52;
}

@media (max-width: 768px) {
  .ob-order {
    padding: 12px;
  }

  .ob-order-top-left {
    gap: 8px;
  }

  .ob-type-tag {
    height: 22px;
    padding: 0 8px;
    font-size: 12px;
  }

  .ob-short-no {
    font-size: 27px;
  }

  .ob-main-line {
    font-size: 14px;
  }

  .ob-amount {
    font-size: 28px;
  }

  .ob-actions {
    .ant-btn {
      height: 34px;
      font-size: 14px;
    }
  }
}
