/* 撸货报单系统 自定义响应式样式 */

/* ===== 通用 ===== */
body { background: #f5f6fa; font-size: 14px; }
.card { border-radius: 8px; }
.badge { font-weight: 500; }
.btn-sm { font-size: 13px; }

/* ===== 订单状态色 ===== */
.badge-pending, .st-pending { background: #FFC107 !important; color: #333 !important; }
.badge-processing, .st-processing { background: #6C757D !important; color: #fff !important; }
.badge-unsettled, .st-unsettled { background: #6F42C1 !important; color: #fff !important; }
.badge-settled, .st-settled { background: #198754 !important; color: #fff !important; }

/* ===== 表格 ===== */
.table > :not(caption) > * > * { padding: 0.5rem 0.6rem; }
.table-hover tbody tr:hover { background-color: #f8f9fa; }

/* ===== 方案卡片（报单页） ===== */
.plan-card {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; }

/* ===== 收单量进度条 ===== */
.progress { height: 6px; background: #e9ecef; }

/* ===== 手机端后台精简 ===== */
@media (max-width: 768px) {
  /* 隐藏桌面端专属功能 */
  .desktop-only { display: none !important; }

  /* 表格横向滚动 */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 表格字号缩小 */
  .table { font-size: 12px; }
  .table th, .table td { white-space: nowrap; }

  /* 批量操作按钮栏滚动 */
  .batch-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important; }
  .batch-bar .btn { white-space: nowrap; flex-shrink: 0; }

  /* 隐藏次要列 */
  .col-hide-mobile { display: none; }

  /* 卡片间距缩小 */
  .card { margin-bottom: 0.75rem; }
  .card-body { padding: 0.75rem; }

  /* 标题缩小 */
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }

  /* 表单间距 */
  .form-label { margin-bottom: 0.2rem; font-size: 12px; }
}

/* ===== 手机端报单页 ===== */
@media (max-width: 768px) {
  .plan-card .card-body { padding: 0.6rem; }
  .plan-card h6 { font-size: 14px; }
  .plan-card .price { font-size: 18px; }
  /* 搜索固定在顶部 */
  .search-bar { position: sticky; top: 0; z-index: 1020; background: #fff; padding: 8px 0; }
}

/* ===== 手机端查单页 ===== */
@media (max-width: 768px) {
  /* 状态色块更显眼 */
  .status-block { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; }
  /* 下拉展开的订单详情 */
  .order-detail { font-size: 13px; }
}

/* ===== 打印 ===== */
@media print {
  .no-print { display: none !important; }
  .card { border: 1px solid #ddd !important; box-shadow: none !important; }
}

/* ===== 手机端提示横幅 ===== */
.mobile-tip {
  display: none;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #664d03;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .mobile-tip { display: block; }
}
