/* ── Resource Center ───────────────────────────────────────── */

.rc-card {
  background: #fff;
  border: 1px solid #d8e0d3;
  border-top: 3px solid #00843d;
  border-radius: 0 0 10px 10px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 2rem;
}

/* Header */
.rc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.rc-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a3d26;
  margin: 0;
}

.zymo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #4a6657;
  background: #f5f7f4;
  border: 1px solid #d0dcc8;
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
}

.zymo-badge img {
  height: 18px;
}

/* Filters */
.rc-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
  .rc-filters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .rc-filters { grid-template-columns: 1fr 1fr; }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7f72;
}

.filter-group select,
.filter-group input[type="text"] {
  height: 36px;
  border: 1px solid #c8d8c0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  background: #f8fbf6;
  color: #1a3d26;
  width: 100%;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
  outline: none;
  border-color: #00843d;
  box-shadow: 0 0 0 3px rgba(0, 132, 61, .1);
}

/* Action bar */
.rc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.rc-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4a6657;
  white-space: nowrap;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

.rc-check input[type="checkbox"] {
  accent-color: #00843d;
  width: 14px;
  height: 14px;
}

.btn-rc {
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary-rc {
  background: #00843d;
  color: #fff;
}

.btn-primary-rc:hover {
  background: #006b31;
}

.btn-download {
  background: #00843d;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.btn-download:hover {
  background: #006b31;
  color: #fff;
}

.btn-download svg {
  width: 14px;
  height: 14px;
}

/* Table */
.rc-table-wrap {
  overflow-x: auto;
}

.rc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}

.rc-table thead tr {
  background: #f5f7f4;
  border-bottom: 1px solid #d8e0d3;
}

.rc-table th {
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7f72;
  text-align: left;
  white-space: nowrap;
}

.rc-table th.col-toggle { width: 36px; padding: 9px 6px; }
.rc-table th.col-save,
.rc-table td.col-save { width: 60px; text-align: center; }

.rc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eeeeee;
  color: #1a3d26;
  vertical-align: middle;
}

.rc-table .data-row:hover td {
  background: #fafafa;
  cursor: pointer;
}

.rc-table .data-row.is-open td {
  background: #f5f5f5;
}

/* Toggle button */
.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7f72;
  padding: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background .15s, color .15s, transform .2s;
}

.toggle-btn:hover { background: #eeeeee; color: #00843d; }
.toggle-btn.is-open { transform: rotate(90deg); color: #00843d; }
.toggle-btn svg { width: 13px; height: 13px; }

/* Seq type badge */
.seq-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #f0f2ee;
  color: #4a6657;
  border: 1px solid #d0dcc8;
}

/* Detail row */
.detail-row td {
  padding: 0;
  border-bottom: 1px solid #e8e8e8;
}

.detail-body {
  display: none;
  padding: 1rem 1.25rem;
  background: #fff;
}

.detail-body.is-open {
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.detail-panel {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.detail-panel-head {
  background: #f5f7f4;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7f72;
  border-bottom: 1px solid #e8e8e8;
}

.detail-kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.detail-kv td {
  padding: 6px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  vertical-align: top;
}

.detail-kv tr:last-child td { border-bottom: none; }

.detail-kv td:first-child {
  font-weight: 500;
  color: #6b7f72;
  width: 45%;
  background: #fafafa;
}

/* Pagination */
.rc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eeeeee;
  flex-wrap: wrap;
  gap: 8px;
}

.rc-pagination-info {
  font-size: 12px;
  color: #6b7f72;
}

.rc-page-btns {
  display: flex;
  gap: 5px;
  align-items: center;
}

.btn-page {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #d0dcc8;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #4a6657;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-page:hover {
  background: #f5f5f5;
  border-color: #00843d;
  color: #00843d;
  text-decoration: none;
}

.btn-page.active {
  background: #00843d;
  color: #fff;
  border-color: #00843d;
}

.btn-page.disabled {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}
