#participant-rows th,
#participant-rows td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
  font-size: 14px;
  height: 24px;
}

.detail-row {
  display: none;
  background-color: #f9f9f9;
}

.detail-content {
  padding: 10px;
  text-align: left;
  border-left: 3px solid #ccc;
  background-color: #fefefe;
}
/* 役職の入力欄を狭くする */
.position-input {
  width: 100px;
  max-width: 100px;
  padding: 2px 4px;
  font-size: 12px;
  height: 24px;
}
.name-input {
  width: 200px;
  max-width: 200px;
  padding: 2px 4px;
  font-size: 12px;
  height: 24px;
}


.detail-content .form-inline {
  display: flex;
  align-items: center;
  gap: 6px; /* 各項目の間の余白調整 */
  margin-bottom: 0px;
}

.detail-content .form-inline select,
.detail-content .form-inline input[type="text"] {
  padding: 2px 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.detail-content .form-inline select {
  width: 80px;
}

.detail-content .form-inline input[name^="section"] {
  width: 240px;
}

.detail-content .form-inline input[name^="fare"] {
  width: 80px;
}

.detail-content .form-inline::after {
  content: '';
  flex: 1;
}

.proxy-select {
  margin-left: 6px;
  height: 24px;
  width: 150px;
  font-size: 14px;
}

.proxy-detail .proxy-row {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.proxy-detail .proxy-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.proxy-detail input[type="text"],
.proxy-detail input[type="date"],
.proxy-detail select {
  height: 24px;
  font-size: 14px;
  padding: 2px 6px;
  width: 180px;
  box-sizing: border-box;
}
.proxy-select {
  /* 上下パディングを 2px、左右を 4px に */
  padding: 2px 4px !important;
  /* box-sizing はそのまま border-box のままでも OK */
  box-sizing: border-box !important;
}


/* display: flex の指定を削除または無効化 */
#participant-rows td {
  /* display: flex; ←これを削除 */
  vertical-align: middle; /* これを追加 */
  text-align: center;
  padding: 6px;
  height: 40px;
}

/* inputタグの上下中央ずれ対策 */
#participant-rows input[type="text"] {
  margin: 0;
  padding: 2px 4px;
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  box-sizing: border-box;
}

/* display: flex の指定を削除または無効化 */
#participant-rows_nomi td {
  /* display: flex; ←これを削除 */
  vertical-align: middle; /* これを追加 */
  text-align: center;
  padding: 6px;
  height: 40px;
}

/* inputタグの上下中央ずれ対策 */
#participant-rows_nomi input[type="text"] {
  margin: 0;
  padding: 2px 4px;
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  box-sizing: border-box;
}

/* display: flex の指定を削除または無効化 */
#participant-rows_shinshun td {
  /* display: flex; ←これを削除 */
  vertical-align: middle; /* これを追加 */
  text-align: center;
  padding: 6px;
  height: 40px;
}

/* inputタグの上下中央ずれ対策 */
#participant-rows_shinshun input[type="text"] {
  margin: 0;
  padding: 2px 4px;
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  box-sizing: border-box;
}

/* のみカテゴリ用：氏名300px */
#participant-rows_nomi input.name-input {
  width: 300px;
  max-width: 300px;
}

/* 新春カテゴリ用：氏名350px */
#participant-rows_shinshun input.name-input {
  width: 450px;
  max-width: 450px;
}

.is-error {
  outline: 2px solid #ef4444 !important; /* 赤枠 */
  background: #fff7f7 !important;
}