/* ── ツールバー ── */
.csv-export-wrap {
  width: 100%;
}

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

.csv-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #5A6A7A;
}

.csv-filter-select {
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

.csv-filter-select:focus {
  outline: none;
  border-color: #2B7FE8;
}

.csv-export-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: #2B7FE8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.csv-export-btn:hover {
  background: #1a6fd4;
}

/* ── テーブル ── */
.csv-table-wrap {
  overflow-x: auto;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
}

.csv-table th {
  background: #2B7FE8;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

.csv-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E8EDF2;
  white-space: nowrap;
  font-size: 14px;
}

.csv-table tbody tr:hover {
  background: #F4F6F9;
}

/* ── ステータスバッジ ── */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge--processing {
  background: #FEF9C3;
  color: #854D0E;
}

.status-badge--done {
  background: #DCFCE7;
  color: #166534;
}

.status-badge--cancelled {
  background: #F1F5F9;
  color: #5A6A7A;
}

/* ── 件数・空メッセージ ── */
.csv-count {
  text-align: right;
  font-size: 13px;
  color: #5A6A7A;
  margin-top: 8px;
  margin-bottom: 0;
}

.csv-empty {
  text-align: center;
  color: #5A6A7A;
  padding: 32px 0;
  margin: 0;
}

/* hidden 属性が display:block に負けないよう明示的に打ち消す */
.csv-empty[hidden] {
  display: none;
}

/* ── リセットボタン ── */
.demo-controls {
  margin-top: 12px;
}

.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}
