/* ===== 全局 ===== */
body {
  background-color: #f0f2f5;
  font-size: 14px;
}

/* ===== 品类筛选标签 ===== */
.category-pill {
  border-radius: 20px;
  font-size: 12px;
  padding: 4px 12px;
  transition: all 0.2s;
}
.category-pill.active {
  font-weight: 600;
}
.category-pill .badge {
  font-weight: 400;
  font-size: 10px;
}

/* ===== 报价信息卡片 ===== */
.quote-info-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.quote-info-card .card-header {
  border-bottom: none;
}

.quote-info-card .form-label {
  font-size: 13px;
  margin-bottom: 4px;
}

.quote-info-card .form-control {
  border-radius: 8px;
  border-color: #e0e0e0;
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-info-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.1);
}

/* ===== 明细表格 ===== */
#itemsTable {
  font-family: "宋体", SimSun, "Microsoft YaHei", serif;
}

#itemsTable thead th {
  background-color: #f8f9fa;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #ccc !important;
  white-space: nowrap;
}

#itemsTable td {
  border: 1px solid #ccc;
  padding: 2px 4px;
  vertical-align: middle;
}

#itemsTable input,
#itemsTable textarea {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 2px 4px;
  font-family: "宋体", SimSun, "Microsoft YaHei", serif;
  font-size: 13px;
  width: 100%;
}

#itemsTable input:focus,
#itemsTable textarea:focus {
  outline: 1px solid #0d6efd;
  background: #e7f1ff;
}

#itemsTable input[type="number"] {
  text-align: right;
}

#itemsTable .col-amount {
  text-align: right;
  font-weight: 600;
  color: #333;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
}

#itemsTable .col-index {
  text-align: center;
  color: #666;
  font-size: 13px;
}

#itemsTable textarea {
  resize: vertical;
  min-height: 28px;
  line-height: 1.4;
}

#itemsTable tfoot td {
  border: 1px solid #ccc;
  font-weight: 700;
  font-family: "宋体", SimSun, "Microsoft YaHei", serif;
  font-size: 13px;
}

#itemsTable tfoot .total-label-cell {
  text-align: center;
  background-color: #f8f9fa;
}

#itemsTable tfoot .total-amount-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
}

/* 技术参数列 */
#itemsTable .col-specs textarea {
  line-height: 1.5;
}

/* 操作按钮 */
.btn-delete-row {
  border: none;
  background: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-delete-row:hover {
  background: #fde8e8;
}

.btn-save-product {
  border: none;
  background: none;
  color: #198754;
  cursor: pointer;
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-save-product:hover {
  background: #d1e7dd;
}

/* ===== 汇总区 ===== */
.summary-table td {
  padding: 6px 12px;
  font-size: 15px;
}

.total-box {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 10px;
  padding: 14px 24px;
  color: #fff;
}

.total-label {
  font-size: 14px;
  opacity: 0.9;
}

.total-amount {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.total-chinese {
  font-size: 13px;
  opacity: 0.8;
  letter-spacing: 1px;
}

/* ===== 导航栏按钮 ===== */
.navbar .btn-sm {
  padding: 0.25rem 0.7rem;
  font-size: 13px;
}

/* ===== 空状态 ===== */
.empty-row td {
  text-align: center;
  padding: 30px;
  color: #adb5bd;
}

/* ===== 产品库 Modal ===== */
#productListBody td {
  font-size: 13px;
}

#productListBody .product-specs {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 输入框只读 ===== */
input[readonly] {
  background-color: #f8f9fa !important;
  font-weight: 600;
}

/* ===== 费用设置卡片 ===== */
#feeSettings .card {
  border-radius: 6px;
}

#feeSettings .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

#feeSettings select:disabled,
#feeSettings input:disabled {
  opacity: 0.5;
}
