/* 운영 관리 (admin ops) */
#opsAdminPage.listing-page.open {
  z-index: 10200;
}

.ops-admin-panel .listing-panel,
#opsAdminPage .listing-panel {
  max-width: none;
}

.ops-admin-layout {
  display: flex;
  height: calc(100% - 56px);
  min-height: 0;
  background: #f5f6f8;
}

.ops-admin-nav {
  width: 180px;
  flex-shrink: 0;
  padding: 12px 10px;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ops-admin-nav__btn {
  appearance: none;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.ops-admin-nav__btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ops-admin-nav__btn.is-active {
  background: #eff6ff;
  color: #2563eb;
}

.ops-admin-nav__btn--link {
  margin-top: auto;
  color: #64748b;
  font-weight: 600;
}

.ops-admin-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 16px 18px 24px;
}

.ops-admin-tab[hidden] {
  display: none !important;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ops-kpi {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 84px;
}

.ops-kpi__label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0;
}

.ops-kpi__desc {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.3;
}

.ops-kpi__value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ops-kpi__hint {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.ops-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ops-card--center {
  text-align: center;
  padding: 40px 20px;
}

.ops-card__head {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.ops-lead {
  color: #475569;
  font-size: 14px;
  margin: 0 0 16px;
}

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.ops-input,
.ops-select {
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
}

.ops-input {
  flex: 1;
  min-width: 200px;
}

.ops-select {
  min-width: 120px;
}

.ops-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ops-btn:hover {
  background: #f8fafc;
}

.ops-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.ops-btn--primary:hover {
  background: #1d4ed8;
}

.ops-btn--danger {
  background: #fff;
  border-color: #fecaca;
  color: #dc2626;
}

.ops-btn--sm {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.ops-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 12px;
  min-height: 420px;
}

.ops-split__list,
.ops-split__detail {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  min-height: 0;
  overflow: auto;
}

.ops-split__detail {
  padding: 14px 16px;
}

.ops-table-wrap {
  overflow: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ops-table th,
.ops-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  white-space: nowrap;
}

.ops-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  z-index: 1;
}

.ops-table tr.is-selected td {
  background: #eff6ff;
}

.ops-table tr[data-id] {
  cursor: pointer;
}

.ops-table tr[data-id]:hover td {
  background: #f8fafc;
}

.ops-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.ops-badge--ok {
  background: #ecfdf5;
  color: #047857;
}

.ops-badge--admin {
  background: #eff6ff;
  color: #1d4ed8;
}

.ops-badge--warn {
  background: #fff7ed;
  color: #c2410c;
}

.ops-badge--bad {
  background: #fef2f2;
  color: #dc2626;
}

.ops-badge--muted {
  background: #f1f5f9;
  color: #64748b;
}

.ops-empty {
  color: #94a3b8;
  font-size: 13px;
  margin: 24px 0;
  text-align: center;
}

.ops-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
}

.ops-detail__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}

.ops-detail__sub {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
}

.ops-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.ops-detail__item label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 0;
}

.ops-detail__desc {
  margin: 1px 0 4px;
  font-size: 10px;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.3;
}

.ops-detail__item span {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}

.ops-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ops-detail__section {
  margin-top: 14px;
}

.ops-detail__section h3 {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
}

.ops-detail__section .ops-table th,
.ops-detail__section .ops-table td {
  padding: 6px 8px;
  font-size: 11px;
}

.ops-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ops-stats-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-stats-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-card__subhead {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin: 4px 0 8px;
}

.ops-card__hint {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
}

.ops-note {
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 12px;
}

.ops-funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.ops-funnel__row {
  display: grid;
  grid-template-columns: 88px 1fr 64px;
  gap: 10px;
  align-items: center;
}

.ops-funnel__label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.ops-funnel__track {
  height: 18px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.ops-funnel__fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  min-width: 2px;
}

.ops-funnel__val {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
}

.ops-funnel__meta {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

.ops-hbars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-hbar {
  display: grid;
  grid-template-columns: 88px 1fr 56px;
  gap: 10px;
  align-items: center;
}

.ops-hbar__label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.ops-hbar__track {
  height: 14px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.ops-hbar__fill {
  height: 100%;
  background: #2b6cff;
  border-radius: 999px;
  min-width: 2px;
}

.ops-hbar__val {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  color: #0f172a;
}

.ops-insight-box {
  background: #f8fafc;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 16px;
  min-height: 80px;
}

.ops-insight-box__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.ops-insight-box__sub {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 1100px) {
  .ops-stats-grid,
  .ops-stats-grid--2,
  .ops-stats-grid--3 {
    grid-template-columns: 1fr;
  }
}

.ops-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 140px;
  padding-top: 8px;
}

.ops-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ops-bar__fill {
  width: 100%;
  max-width: 18px;
  background: #2563eb;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}

.ops-bar__label {
  font-size: 9px;
  color: #94a3b8;
  transform: rotate(-45deg);
  white-space: nowrap;
  height: 28px;
}

.ops-bar__val {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}

@media (max-width: 1100px) {
  .ops-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-stats-grid {
    grid-template-columns: 1fr;
  }
  .ops-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ops-admin-layout {
    flex-direction: column;
  }
  .ops-admin-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .ops-admin-nav__btn--link {
    margin-top: 0;
  }
}
