/* data-table-2: テーブル 2 — 表示制御 */

.dt2-scroll {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
}

.dt2-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: #fff;
  /* table-layout: fixed でブラウザが列幅を width 指定どおりに確定する */
  table-layout: fixed;
}

/* ヘッダー */
.dt2-table th {
  background: #2B7FE8;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.dt2-table th:hover {
  background: #2268c5;
}

/* ソートアイコン */
.dt2-sort-icon {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.6;
  vertical-align: middle;
}

.dt2-sort-icon.is-active {
  opacity: 1;
}

/* データ行 */
.dt2-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E5E9F2;
  color: #1A2332;
  /* overflow を hidden にすることで列幅を超えたテキストを隠す */
  overflow: hidden;
}

.dt2-table tbody tr:last-child td {
  border-bottom: none;
}

.dt2-table tbody tr:nth-child(even) td {
  background: #F4F7FF;
}

.dt2-table tbody tr:hover td {
  background: #EBF2FF;
  transition: background 0.1s;
}

/* メモ列: 長いテキストを省略表示 */
.dt2-cell-note {
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
  color: #5A6A7A;
}

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

.dt2-status[data-status="在籍"] {
  background: #D1FAE5;
  color: #065F46;
}

.dt2-status[data-status="休職"] {
  background: #FEF3C7;
  color: #92400E;
}

.dt2-status[data-status="退職"] {
  background: #F3F4F6;
  color: #6B7280;
}

/* デモコンテナをテーブル+ボタンの縦並びにする */
.demo-container {
  flex-direction: column;
  align-items: stretch;
}

/* リセットボタン */
.demo-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.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;
}

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