/* ===== 价格维护（班型）页面样式 ===== */

.price-templates-wrap { padding-bottom: 24px; padding-left: 24px; }

.price-templates-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 4px 0 16px;
}

.price-templates-hint { font-size: 13px; color: #64748b; line-height: 1.5; }

/* 新建班型按钮推到右上 */
#ptpl-add-btn { margin-left: auto; }

.price-templates-ro-tag {
  margin-left: auto;
  font-size: 12px; color: #0369a1; background: #f0f9ff;
  border: 1px solid #d6e4f0; border-radius: 16px; padding: 4px 12px;
}

.price-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ptpl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .15s ease, transform .15s ease;
  height: 100%;
}
.ptpl-card:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12); transform: translateY(-2px); }
.ptpl-card-disabled { opacity: .6; background: #f8fafc; }

.ptpl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ptpl-card-name { font-size: 19px; font-weight: 800; color: #0f172a; }

.ptpl-card-price {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 0; border-top: 1px dashed #e8eef5; border-bottom: 1px dashed #e8eef5;
}
.ptpl-card-price-label { font-size: 13px; color: #64748b; }
.ptpl-card-price-value { font-size: 30px; font-weight: 800; color: #0369a1; line-height: 1; font-variant-numeric: tabular-nums; }
.ptpl-card-price-unit { font-size: 13px; color: #94a3b8; }

.ptpl-card-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.ptpl-card-meta-item { display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: #475569; }
.ptpl-card-meta-item b { font-size: 16px; color: #0f172a; font-weight: 700; }

.ptpl-card-note {
  font-size: 13px; color: #64748b; background: #f8fafc; border-radius: 8px;
  padding: 8px 10px; line-height: 1.5; word-break: break-word;
}

.ptpl-card-actions { display: flex; gap: 8px; margin-top: 2px; }

.ptpl-default-badge {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600;
  color: #0369a1; background: #e0f2fe; border-radius: 10px; padding: 1px 8px;
}

.ptpl-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 12px; }
.ptpl-status-active { color: #15803d; background: #dcfce7; }
.ptpl-status-disabled { color: #94a3b8; background: #f1f5f9; }

.ptpl-sub { color: #94a3b8; font-weight: 400; }

.ptpl-edit,
.ptpl-delete {
  border: 1px solid #cbd5e1; background: #fff; color: #475569;
  font-size: 13px; padding: 6px 14px; border-radius: 8px; cursor: pointer;
}
.ptpl-edit:hover { border-color: #0369a1; color: #0369a1; background: #f0f9ff; }
.ptpl-delete:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* 班型弹窗 */
.price-tpl-modal { max-width: 460px; }

.price-tpl-modal-head { display: flex; align-items: center; justify-content: space-between; }
.price-tpl-modal-head h3 { font-size: 17px; color: #0f172a; }

.price-tpl-modal-body { padding: 6px 2px 2px; }

.price-tpl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.price-tpl-field > span { font-size: 13px; font-weight: 600; color: #475569; }

.price-tpl-field input,
.price-tpl-field select {
  height: 38px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 15px; background: #fff; color: #0f172a;
}
.price-tpl-field input:focus,
.price-tpl-field select:focus { outline: none; border-color: #0369a1; box-shadow: 0 0 0 2px rgba(3,105,161,.15); }

.price-tpl-field-hint { font-size: 12px; color: #94a3b8; }
.price-tpl-modal-error { min-height: 18px; color: #dc2626; font-size: 13px; }
