/* 供应商资源库模块样式（H2 蓝色系 #2563eb） */

.rl-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.rl-head-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.rl-title-block h2 { margin: 0; font-size: 20px; font-weight: 700; color: #0f172a; letter-spacing: .01em; }
.rl-subtitle { margin: 4px 0 0; font-size: 13px; color: #64748b; }

/* 顶部统计概览 */
.rl-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.rl-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.rl-stat-card.primary { border-color: #bfdbfe; background: linear-gradient(135deg,#eff6ff,#fff); }
.rl-stat-v { font-size: 26px; font-weight: 700; color: #0f172a; line-height: 1.1; }
.rl-stat-card.primary .rl-stat-v { color: #2563eb; }
.rl-stat-t { margin-top: 4px; font-size: 13px; color: #64748b; }
@media (max-width: 900px) { .rl-stat-row { grid-template-columns: repeat(2,1fr); } }

/* 筛选区 */
.rl-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 4px 0 14px; padding: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
}
.rl-in { min-width: 130px; max-width: 180px; }
.rl-search { white-space: nowrap; }

/* 表格 */
.rl-table-wrap {
  border: 1px solid #e2e8f0; border-radius: 12px; overflow: auto; background: #fff;
}
.rl-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 880px; }
.rl-table thead th {
  background: #f1f5f9; color: #475569; font-weight: 600; text-align: left;
  padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid #e2e8f0;
}
.rl-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: #1e293b; vertical-align: middle; }
.rl-table tbody tr { cursor: pointer; transition: background .15s; }
.rl-table tbody tr:hover { background: #eff6ff; }
.rl-table .num { text-align: center; }

.rl-row-ops { white-space: nowrap; }
.rl-row-ops a {
  color: #2563eb; margin-right: 10px; font-size: 12.5px; cursor: pointer;
}
.rl-row-ops a:hover { text-decoration: underline; }
.rl-row-ops a.rl-danger { color: #dc2626; }

/* 状态徽标 */
.rl-badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
}
.rl-ok { background: #dcfce7; color: #16a34a; }
.rl-warn { background: #fef9c3; color: #ca8a04; }
.rl-bad { background: #fee2e2; color: #dc2626; }

/* 分页 */
.rl-pager { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.rl-total-info { color: #64748b; font-size: 12.5px; margin-right: 8px; }
.rl-page {
  min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #e2e8f0; background: #fff;
  border-radius: 8px; color: #475569; cursor: pointer; font-size: 13px;
}
.rl-page:hover:not([disabled]) { border-color: #2563eb; color: #2563eb; }
.rl-page.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.rl-page[disabled] { opacity: .5; cursor: not-allowed; }

/* 弹窗 */
.rl-modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.rl-modal {
  background: #fff; border-radius: 14px; width: 520px; max-width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.rl-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; font-weight: 700; font-size: 15px; border-bottom: 1px solid #e2e8f0;
}
.rl-modal-x { cursor: pointer; font-size: 22px; color: #94a3b8; line-height: 1; }
.rl-modal-x:hover { color: #475569; }
.rl-modal-body { padding: 18px; overflow: auto; }

.rl-mode-row { margin-bottom: 14px; color: #475569; font-size: 13.5px; }
.rl-mode-row label { margin-left: 14px; cursor: pointer; }

.rl-drop {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 34px 16px; text-align: center;
  color: #64748b; cursor: pointer; transition: all .15s; font-size: 13.5px;
}
.rl-drop:hover, .rl-drop.drag { border-color: #2563eb; background: #eff6ff; color: #2563eb; }

.rl-im-result { margin-top: 14px; }
.rl-im-ok {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
  padding: 10px 12px; border-radius: 10px; font-size: 13px;
}
.rl-im-errs {
  margin-top: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: 10px 12px; border-radius: 10px; font-size: 12.5px; max-height: 200px; overflow: auto;
}
.rl-im-fail { color: #dc2626; font-size: 13px; }

/* 详情页 */
.rl-detail-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rl-info-group {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.rl-info-t { font-weight: 700; font-size: 13.5px; color: #0f172a; margin-bottom: 10px; }
.rl-info-i { display: flex; padding: 4px 0; font-size: 13px; }
.rl-info-i .k { width: 110px; color: #94a3b8; flex-shrink: 0; }
.rl-info-i .v { color: #1e293b; word-break: break-all; }

.rl-section { margin-bottom: 14px; }
.rl-section-t { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: #0f172a; }
.rl-mini-empty { color: #94a3b8; font-size: 13px; padding: 8px 0; }

/* 附件网格 */
.rl-file-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.rl-file-card {
  position: relative; width: 120px; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 8px; text-align: center; background: #fff; transition: all .15s;
}
.rl-file-card:hover { border-color: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,.1); }
.rl-file-ic { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 6px; background: #eff6ff; color: #2563eb; font-size: 12px; font-weight: 600; cursor: pointer; }
.rl-file-nm {
  font-size: 11.5px; color: #475569; margin-top: 6px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rl-file-del { font-size: 11px; color: #dc2626; margin-top: 6px; cursor: pointer; }

.rl-up-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 编辑表单 */
.rl-form-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; margin-bottom: 20px;
}
.rl-field { display: flex; flex-direction: column; }
.rl-field.wide { grid-column: 1 / -1; }
.rl-field label { font-size: 12.5px; color: #64748b; margin-bottom: 5px; font-weight: 600; }

.rl-products-editor {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px;
}
.rl-pe-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rl-prod-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: nowrap;
}
.rl-prod-row .form-input { min-width: 0; }
.rl-prod-del { cursor: pointer; font-size: 16px; flex-shrink: 0; }

.rl-form-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e8f0;
}

@media (max-width: 1100px) {
  .rl-form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .rl-form-grid { grid-template-columns: 1fr; }
  .rl-prod-row { flex-wrap: wrap; }
}
