/* data-table-4: テーブル 4 — リッチセル */

.demo-container {
  display: block;
}

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

.dt4-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: #fff;
  white-space: nowrap;
}

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

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

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

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

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

/* メールリンク */
.dt4-link {
  color: #2B7FE8;
  text-decoration: none;
}

.dt4-link:hover {
  text-decoration: underline;
}

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

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

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

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

/* アクションセル */
.dt4-cell-action {
  text-align: center;
}

/* 詳細ボタン */
.dt4-detail-btn {
  padding: 4px 14px;
  border-radius: 6px;
  border: 1.5px solid #2B7FE8;
  background: #fff;
  color: #2B7FE8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.dt4-detail-btn:hover {
  background: #2B7FE8;
  color: #fff;
}

/* ====== ダイアログ ====== */

.dt4-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 12px;
  padding: 28px 28px 24px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.dt4-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

/* 閉じるボタン */
.dt4-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 18px;
  color: #5A6A7A;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
}

.dt4-dialog-close:hover {
  background: #F3F4F6;
}

.dt4-dialog-name {
  margin: 0 0 16px;
  font-size: 18px;
  color: #1A2332;
}

/* 詳細リスト */
.dt4-detail-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 12px;
  margin: 0 0 20px;
  font-size: 14px;
}

.dt4-detail-list dt {
  color: #5A6A7A;
  font-weight: 600;
  padding-top: 2px;
}

.dt4-detail-list dd {
  margin: 0;
  color: #1A2332;
  word-break: break-all;
}

/* セル内ネストテーブルのラッパーセル */
.dt4-cell-projects {
  white-space: normal;
  vertical-align: top;
  padding: 8px 10px;
}

/* ネストテーブル見出し */
.dt4-nest-heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1A2332;
}

/* ネストテーブル */
.dt4-nest-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.dt4-nest-table th {
  background: #F4F7FF;
  color: #1A2332;
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #C3D4EC;
}

.dt4-nest-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #E5E9F2;
  color: #1A2332;
}

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


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

  .dt4-dialog {
    padding: 20px 16px;
  }
}
