/* ===== data-table-6: テーブル 全選択チェックボックス ===== */

:root {
  --dt6-primary: #2B7FE8;
  --dt6-border: #E2E8F0;
  --dt6-text: #1A2332;
  --dt6-text-sub: #5A6A7A;
  --dt6-head-bg: #F4F7FF;
  --dt6-selected-bg: #EBF2FF;
}

.dt6-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== ツールバー ===== */
.dt6-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dt6-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--dt6-text-sub);
}

.dt6-clear-btn {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--dt6-primary);
  background: #fff;
  border: 1.5px solid #C7D9F5;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.dt6-clear-btn:hover:not(:disabled) {
  background: #F0F6FF;
  border-color: var(--dt6-primary);
}

.dt6-clear-btn:disabled {
  color: #A9B4C2;
  border-color: #E2E8F0;
  background: #F7F9FC;
  cursor: not-allowed;
}

/* ===== テーブル ===== */
.dt6-table-scroll {
  overflow-x: auto;
}

.dt6-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--dt6-text);
  background: #fff;
}

.dt6-table th,
.dt6-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--dt6-border);
  white-space: nowrap;
}

.dt6-table thead th {
  background: var(--dt6-head-bg);
  font-weight: 600;
  color: var(--dt6-text-sub);
}

.dt6-check-col {
  width: 44px;
  text-align: center;
}

.dt6-id-col {
  width: 56px;
}

.dt6-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--dt6-primary);
}

/* ホバー → 選択の順で定義し、選択ハイライトを優先させる */
.dt6-table tbody tr:hover td {
  background: #F4F7FF;
  transition: background 0.1s;
}

.dt6-table tbody tr.is-selected td {
  background: var(--dt6-selected-bg);
}

/* ===== 状態バッジ ===== */
.dt6-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.dt6-status[data-status="未着手"] { background: #F3F4F6; color: #6B7280; }
.dt6-status[data-status="対応中"] { background: #DBEAFE; color: #1E40AF; }
.dt6-status[data-status="完了"]   { background: #D1FAE5; color: #065F46; }

@media (max-width: 600px) {
  .dt6-table th,
  .dt6-table td { padding: 8px 12px; }
}

/* ===== リセットボタン（グローバルに定義がないため必須） ===== */
.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;
}
