/* data-table-3: テーブル 3 — インライン編集 */

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

.dt3-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: #fff;
  table-layout: fixed;
}

.dt3-table th {
  background: #2B7FE8;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

/* ヘッダーの編集可能マーク */
.dt3-edit-hint {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.7;
}

/* 読み取り専用セル（ID列） */
.dt3-cell-readonly {
  color: #9AA5B4;
  cursor: default;
}

/* 編集可能セル */
.dt3-cell-editable {
  cursor: pointer;
}

.dt3-cell-editable:hover {
  background: #EBF2FF !important;
}

/* 編集中セル */
.dt3-cell-editable.is-editing {
  padding: 0;
  cursor: default;
  background: #fff !important;
  box-shadow: inset 0 0 0 2px #2B7FE8;
}

/* 共通テキストセル */
.dt3-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #E5E9F2;
  color: #1A2332;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

/* インライン編集用 input */
.dt3-input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #1A2332;
  box-sizing: border-box;
}

/* インライン編集用 select（状態列） */
.dt3-select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #1A2332;
  cursor: pointer;
  box-sizing: border-box;
}

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

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

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

.dt3-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) {
  .dt3-table th,
  .dt3-table td {
    padding: 6px 10px;
  }
}
