/* Collectibles editor. Sits on the course-editor chrome. */

.col-main {
  position: absolute;
  top: var(--bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 18px 22px 60px;
}

.col-intro { max-width: 760px; margin: 0 0 18px; color: var(--dim); line-height: 1.45; }

.col-status { font-size: 13px; color: var(--dim); white-space: nowrap; }
.col-status.is-bad { color: #ffb1a8; }
#col-save:disabled { opacity: 0.5; cursor: default; }

.col-material { margin: 0 0 26px; }
.col-material > h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.col-material.is-regular > h2 { color: #8fd39a; }
.col-material.is-silver > h2 { color: #c9d1db; }
.col-material.is-gold > h2 { color: #f1cf6a; }
.col-material.is-diamond > h2 { color: #b9c6ff; }

.col-series {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.col-series-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.col-series-head .spacer { flex: 1 1 auto; }
.col-series-name { flex: 0 1 260px; font-size: 16px; font-weight: 700; }
.col-count { font-size: 12px; color: var(--dim); }

.col-main input[type="text"],
.col-main select {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bar-2);
  color: var(--ink);
  font: inherit;
}
.col-main select { max-width: 220px; }

.col-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.col-card-fields .col-field { display: flex; }
.col-card-fields .col-field span { width: 52px; flex: none; }
.col-card-fields .col-field input,
.col-card-fields .col-field select { flex: 1 1 auto; max-width: none; }

.col-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.col-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--panel-2);
}
.col-preview { flex: none; width: 74px; }
.col-card-fields { display: grid; gap: 6px; flex: 1 1 auto; min-width: 0; }
.col-card-fields .danger { justify-self: start; }

.col-add { margin-top: 4px; }
button.ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* Plain tables, database style. */
.col-h { margin: 22px 0 8px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #9fb3c8; }
.col-table { width: 100%; max-width: 1100px; border-collapse: collapse; font-size: 14px; }
.col-table th { padding: 6px 8px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8193a7; border-bottom: 1px solid #2c3a4b; }
.col-table td { padding: 4px 8px; border-bottom: 1px solid #1f2b39; vertical-align: middle; }
.col-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.col-table input, .col-table select { width: 100%; min-width: 0; height: 32px; padding: 0 8px; font-size: 14px; }
.col-table td.num { text-align: right; width: 60px; color: #9fb3c8; }
.col-table td.act { width: 1%; white-space: nowrap; text-align: right; }
.col-table td.muted { color: #8193a7; white-space: nowrap; }
.col-table td.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.col-order { display: inline-flex; gap: 4px; }
.col-add { margin-top: 8px; }
