/* ============================================================
   Table 5 — ページング＋フィルター / data-table-5.css
   ============================================================ */

/* ---- フィルター行 ---- */
.dt5-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dt5-filter-label {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

.dt5-filter {
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 14px;
  color: #1A2332;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.dt5-filter:focus {
  outline: 2px solid #2B7FE8;
  outline-offset: 1px;
}

.dt5-count {
  font-size: 13px;
  color: #64748B;
  margin-left: 4px;
}

/* ---- テーブル ---- */
.dt5-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: #fff;
  white-space: nowrap;
}

.dt5-table th {
  background: #2B7FE8;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.dt5-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #E5E9F2;
  color: #1A2332;
}

.dt5-table tbody tr:last-child td { border-bottom: none; }
.dt5-table tbody tr:nth-child(even) td { background: #F4F7FF; }
.dt5-table tbody tr:hover td { background: #EBF2FF; transition: background 0.1s; }

/* 0件メッセージ */
.dt5-empty {
  text-align: center;
  color: #64748B;
  padding: 24px !important;
  background: none !important;
}

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

.dt5-badge--active  { background: #D1FAE5; color: #065F46; }
.dt5-badge--leave   { background: #FEF3C7; color: #92400E; }
.dt5-badge--retired { background: #F3F4F6; color: #6B7280; }

/* ---- ページング ---- */
.dt5-pager {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.dt5-pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s, color 0.1s;
}

.dt5-pager-btn:hover:not(:disabled):not(.is-active) {
  background: #F1F5F9;
}

.dt5-pager-btn.is-active {
  background: #2B7FE8;
  color: #fff;
  border-color: #2B7FE8;
  font-weight: 700;
}

.dt5-pager-btn:disabled {
  color: #CBD5E1;
  cursor: not-allowed;
}

.dt5-pager-prev,
.dt5-pager-next {
  padding: 0 14px;
}

/* ---- デモコントロール（リセットボタン配置エリア） ---- */
.demo-controls {
  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;
}
