/* Laporan page-specific styles */

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: -0.25rem;
}

.table-scroll {
  overflow-x: auto;
}

/* Export Cards */
.export-card {
  transition: box-shadow 0.2s, transform 0.2s;
}

.export-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.export-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.export-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.export-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.export-meta {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}

.export-btn {
  width: 100%;
  justify-content: center;
}

.export-btn.processing {
  background: var(--orange);
  pointer-events: none;
}

.export-btn.done {
  background: var(--green);
}

/* Report filters */
.report-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.report-filters {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.filter-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  width: 60px;
  flex-shrink: 0;
}

/* Conflict stats */
.conflict-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.5rem;
}

.c-stat {
  text-align: center;
}

.c-stat-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.c-stat-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Mini heatmap preview */
.mini-heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin-bottom: 0.375rem;
}

.mini-heatmap-cell {
  height: 14px;
  border-radius: 2px;
}

.mini-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.mh-leg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* History table */
.fmt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
}

.fmt-gtfs  { background: rgba(37,99,235,0.1); color: #1D4ED8; }
.fmt-pdf   { background: rgba(220,38,38,0.1); color: #991B1B; }
.fmt-railml{ background: rgba(139,92,246,0.1); color: #5B21B6; }
.fmt-excel { background: rgba(16,185,129,0.1); color: #047857; }
.fmt-csv   { background: rgba(249,115,22,0.1); color: #9A3412; }

.dl-btn {
  padding: 0.2rem 0.625rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: none;
  color: var(--accent);
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dl-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.dl-btn:disabled {
  color: var(--muted);
  pointer-events: none;
}

/* Heatmap */
.heatmap-wrap {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 600px;
}

.hm-row {
  display: grid;
  grid-template-columns: 100px repeat(24, 1fr);
  gap: 1px;
}

.hm-cell {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  cursor: default;
  transition: opacity 0.15s;
}

.hm-cell:hover {
  opacity: 0.8;
}

.hm-header {
  background: var(--bg);
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.hm-label {
  background: var(--bg);
  font-size: 9px;
  font-weight: 700;
  color: var(--text);
  padding: 0 6px;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  font-size: 0.7rem;
  color: var(--text);
}

.hm-leg-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.hm-leg-txt {
  margin-right: 0.5rem;
}
