/* メール送信全体パネル：外枠と間隔調整 */
.pta-mail-admin-panel {
  background: #f5f7fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30,40,90,0.08);
  padding: 38px 38px 28px 38px;
  margin-bottom: 38px;
}

/* セクションタイトル */
.pta-mail-admin-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #31426c;
  margin-bottom: 22px;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e1e8ef;
  padding-bottom: 8px;
}

/* 全フォーム行 */
.pta-mail-admin-group-row {
  display: flex;
  align-items: center;
  margin-top: 13px;
  margin-bottom: 4px;
}

/* ラベル */
.pta-mail-admin-label {
  min-width: 150px;
  max-width: 150px;
  text-align: right;
  margin-right: 18px;
  font-weight: 600;
  color: #234f88;
  font-size: 1em;
  flex-shrink: 0;
}

/* テキストエリア */
.pta-mail-admin-textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  font-size: 1em;
  border: 1px solid #cbd6e2;
  background: #fff;
  border-radius: 7px;
  resize: vertical;
  transition: border 0.25s;
  margin-right: 0;
}
.pta-mail-admin-textarea:focus {
  border-color: #4584f5;
  outline: none;
}

/* select */
.pta-mail-admin-select {
  flex: 0 0 20%;
  width: 20%;
  min-width: 100px;
  max-width: 220px;
  font-size: 1em;
  border: 1px solid #cbd6e2;
  background: #eef3fa;
  border-radius: 7px;
  padding: 7px 18px;
  margin-left: 0;
  margin-right: 0;
}

/* 検索BOX */
.pta-mail-admin-search {
  flex: 0 0 20%;
  width: 20%;
  min-width: 120px;
  max-width: 220px;
  padding: 7px 18px;
  border: 1px solid #bdd4f5;
  border-radius: 6px;
  background: #f9fbfe;
  font-size: 1em;
  margin: 18px 0 13px 0;
}

/* 送信ボタン */
.pta-mail-admin-btn-send {
  margin-left: 15px;
  padding: 9px 38px;
  font-size: 1.09em;
  background: linear-gradient(90deg, #43a0dd 0%, #3259a2 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  box-shadow: 0 0 0.15em #217acf1a;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.18s;
}
.pta-mail-admin-btn-send:hover {
  background: linear-gradient(90deg, #3259a2 0%, #41b1a6 100%);
}

/* 管理画面テーブル：メール一覧/役職等 */
.pta-mail-admin-table {
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 8px #e1e8ef66;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}
.pta-mail-admin-table th {
  background: #e9f2fa;
  color: #234f88;
  font-weight: 600;
  padding: 9px 12px;
  border-bottom: 2px solid #d6e3f7;
  text-align: left;
}
.pta-mail-admin-table td {
  border-bottom: 1px solid #ebebeb;
  padding: 9px 12px;
  font-size: 0.97em;
  text-align: left;
}
.pta-mail-admin-table tr:last-child td {
  border-bottom: none;
}
.pta-mail-admin-table tr:hover td {
  background: #f2f6fd;
}

/* 汎用インフォメッセージ */
.pta-mail-admin-info {
  margin: 10px 0 17px 0;
  padding: 10px 20px;
  background: #e3f5d3;
  color: #328140;
  border-radius: 6px;
  font-size: 0.99em;
  letter-spacing: 0.01em;
  border-left: 4px solid #54c05f;
}

/* ---------- 600px以下：フォーム系 ---------- */
@media (max-width: 600px) {

  .pta-mail-admin-panel {
    padding: 20px 15px 18px 15px;
    margin-bottom: 24px;
    border-radius: 8px;
  }

  .pta-mail-admin-title {
    font-size: 1.05em;
    margin-bottom: 16px;
  }

  .pta-mail-admin-group-row {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
  }

  .pta-mail-admin-label {
    min-width: 100%;
    max-width: 100%;
    text-align: left;
    margin-right: 0;
    margin-bottom: 6px;
    font-size: 0.95em;
  }

  .pta-mail-admin-textarea {
    width: 100%;
    flex: 1 1 auto;
    min-height: 96px;
    font-size: 0.95em;
    padding: 10px 12px;
  }

  .pta-mail-admin-select,
  .pta-mail-admin-search {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.95em;
    margin: 6px 0 10px 0;
    padding: 8px 10px;
  }

  .pta-mail-admin-btn-send {
    width: 100%;
    margin-left: 0;
    margin-top: 16px;
    padding: 10px 0;
    text-align: center;
    font-size: 1em;
  }

  .pta-mail-admin-info {
    padding: 8px 12px;
    font-size: 0.9em;
    margin: 8px 0 14px 0;
  }
}

/* ---------- 参加人数確認テーブル用 ---------- */

/* ボランティア一覧・詳細テーブル全体に縦罫線 */
.pta-table-scroll .pta-volunteer-table th,
.pta-table-scroll .pta-volunteer-table td {
  border-right: 1px solid #e0e4ea;
}

/* 最右列だけ二重線にしたくない場合 */
.pta-table-scroll .pta-volunteer-table th:last-child,
.pta-table-scroll .pta-volunteer-table td:last-child {
  border-right: none;
}

/* ラッパー：常に100%幅＋横スクロール */
.pta-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* テーブル自体は「PC想定幅」を固定 */
.pta-volunteer-table {
  width: 950px; /* 必要なら 700〜900px で調整 */
}

/* 操作列セル：ボタン横並び（PC/スマホ共通） */
.pta-table-scroll td:last-child {
  text-align: center;
  white-space: nowrap;
}

.pta-table-scroll td:last-child > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* 共通ボタンスタイル（詳細／削除） */
.pta-table-scroll .button.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: 500;
  min-width: 80px;        /* 最低幅を少し広げる */
  height: 26px;
  padding: 0 10px;
  border: none;
  border-radius: 20px;
  color: #fff !important;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}


/* 「詳細を見る」ボタン色 */
.pta-table-scroll a.button.button-small {
  background-color: #0073aa;
}

/* 「イベント削除」ボタン色 */
.pta-table-scroll form button.button-small {
  background-color: #d63638;
  margin: 0;
}

/* 600px以下：テーブルの詰め調整 */
@media (max-width: 600px) {

  .pta-table-scroll .pta-volunteer-table th,
  .pta-table-scroll .pta-volunteer-table td {
    padding: 4px 6px;
    font-size: 0.85em;
    white-space: nowrap;
  }

  .pta-table-scroll td:last-child {
    gap: 6px;
    padding: 6px;
  }

  .pta-table-scroll .button.button-small {
    font-size: 0.75em;
    height: 30px;
    padding: 0 10px;
  }
}

/* 「イベント削除」ボタン色（通常・ホバー共通） */
.pta-table-scroll form button.button-small,
.pta-table-scroll form button.button-small:hover,
.pta-table-scroll form button.button-small:focus {
  background-color: #d63638 !important; /* 赤で固定 */
  color: #fff !important;               /* 文字白で固定 */
  margin: 0;
  border: none;                         /* ボーダーも消す */
  box-shadow: none;                     /* WP標準の影も消す */
}

/* 「詳細を見る」ボタン色（通常・ホバー共通） */
.pta-table-scroll a.button.button-small,
.pta-table-scroll a.button.button-small:hover,
.pta-table-scroll a.button.button-small:focus {
  background-color: #0073aa !important; /* 青で固定 */
  color: #fff !important;
}

/* テーブルヘッダーをセンタリング */
.pta-volunteer-table th {
  text-align: center !important;
  vertical-align: middle !important;
}
