/* ============================================================
   data-tree-2.css — ツリービュー チェックボックス連動
   ============================================================ */

/* ---- ラッパー ---- */
.tv2-wrap {
  background: #fff;
  border: 1px solid #D0D7E0;
  border-radius: 10px;
  padding: 16px;
  max-width: 480px;
  width: 100%;
}

/* ---- 選択カウント ---- */
.tv2-count {
  font-size: 13px;
  color: #5A6A7A;
  margin: 0 0 12px;
}

/* ---- ツリー本体 ---- */
.tv2-tree,
.tv2-children {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tv2-item { list-style: none; }

/* ---- ノード行 ---- */
.tv2-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: default;
  user-select: none;
}

.tv2-row:hover { background: #F4F6F9; }

/* ---- チェックボックス ---- */
.tv2-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #2B7FE8;
}

/* ---- トグルボタン ---- */
.tv2-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #2B7FE8;
  flex-shrink: 0;
  padding: 0;
  font-weight: bold;
}

/* ---- ラベル ---- */
.tv2-label {
  font-size: 14px;
  color: #1A2533;
  cursor: pointer;
  line-height: 1.4;
}

/* ---- デモコントロール（リセットボタン上の余白） ---- */
.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;
}
