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

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: sans-serif;
  padding: 24px;
  background: #F0F2F5;
  color: var(--dt10-text);
}

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

/* ===== 検索ボックス ===== */
.dt10-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dt10-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dt10-text);
  background: #fff;
  border: 1.5px solid var(--dt10-border);
  border-radius: 6px;
}
.dt10-input:focus {
  outline: none;
  border-color: var(--dt10-primary);
}

.dt10-count {
  font-size: 13px;
  color: var(--dt10-text-sub);
  white-space: nowrap;
}

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

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

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

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

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

.dt10-table mark {
  background: #FFEC6E;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ===== 空状態表示 ===== */
.dt10-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 16px;
  color: #9AA5B4;
  background: #fff;
  border: 1px solid var(--dt10-border);
  border-radius: 6px;
  text-align: center;
}
/* display: flex を持つ要素を hidden 属性で制御するため、明示的に上書きする */
.dt10-empty[hidden] {
  display: none;
}

.dt10-empty-icon { color: #C7D0DB; }

.dt10-empty-text {
  margin: 0;
  font-size: 14px;
}

/* ===== リセットボタン ===== */
.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; }

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