/* offline_event_qc.css - VER09 Offline Event QC & AI Re-picking Dashboard */

.oeqc-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.oeqc-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .oeqc-grid-top {
    grid-template-columns: 1fr;
  }
}

.oeqc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.oeqc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.oeqc-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.oeqc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.oeqc-badge-matched { background: #dcfce7; color: #166534; }
.oeqc-badge-missing { background: #fee2e2; color: #991b1b; }
.oeqc-badge-kigam { background: #ffedd5; color: #9a3412; }
.oeqc-badge-ai { background: #e0f2fe; color: #0369a1; }

.oeqc-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.oeqc-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  min-width: 130px;
}

.oeqc-input {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: #f8fafc;
}

.oeqc-btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oeqc-btn-primary { background: #2563eb; color: #ffffff; }
.oeqc-btn-primary:hover { background: #1d4ed8; }
.oeqc-btn-success { background: #16a34a; color: #ffffff; }
.oeqc-btn-success:hover { background: #15803d; }
.oeqc-btn-secondary { background: #e2e8f0; color: #334155; }
.oeqc-btn-secondary:hover { background: #cbd5e1; }

/* Status Banner */
.oeqc-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

.oeqc-progress-wrap {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.oeqc-progress-bar {
  height: 100%;
  background: #2563eb;
  width: 0%;
  transition: width 0.3s;
}

/* Event Table */
.oeqc-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.oeqc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.oeqc-table th {
  background: #f8fafc;
  color: #475569;
  padding: 8px 10px;
  font-weight: 700;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #cbd5e1;
  z-index: 2;
}

.oeqc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.oeqc-table tr:hover {
  background: #f0fdf4;
  cursor: pointer;
}

.oeqc-table tr.selected {
  background: #eff6ff !important;
  font-weight: 600;
}

/* 3-Way Comparison Card */
.oeqc-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.oeqc-comp-box {
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.oeqc-comp-box.kma { border-top: 3px solid #3b82f6; }
.oeqc-comp-box.realtime { border-top: 3px solid #f59e0b; }
.oeqc-comp-box.ai { border-top: 3px solid #10b981; background: #f0fdf4; }

.oeqc-comp-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.oeqc-comp-item {
  font-size: 12px;
  margin-bottom: 4px;
  color: #334155;
}

.oeqc-comp-val {
  font-weight: 700;
  color: #0f172a;
}

/* Waveform & Station QC Split */
.oeqc-detail-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

@media (max-width: 1200px) {
  .oeqc-detail-split {
    grid-template-columns: 1fr;
  }
}

.oeqc-waveform-canvas-wrap {
  width: 100%;
  height: 240px;
  background: #0f172a;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.oeqc-waveform-canvas {
  width: 100%;
  height: 100%;
}

.oeqc-waveform-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  align-items: center;
}

.oeqc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
