/* ============================================================
   英語・西暦表示の日付ピッカー（date_of_death用）
   ネイティブ input[type=date] のカレンダーがブラウザ/OSの言語設定
   （日本語・和暦）に左右される問題への対応。
   ============================================================ */

#date_of_death {
  cursor: pointer;
}

.en-datepicker {
  position: absolute;
  z-index: 1000;
  display: none;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-accent, #C99D00);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  width: 280px;
  box-sizing: border-box;
}

.en-datepicker.open {
  display: block;
}

.en-datepicker .dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--color-text, #5C5652);
}

.en-datepicker .dp-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 8px;
  color: var(--color-accent, #C99D00);
}

.en-datepicker table {
  width: 100%;
  border-collapse: collapse;
}

.en-datepicker th {
  font-weight: normal;
  color: var(--color-secondary, #94a3b8);
  font-size: 12px;
  padding: 4px 0;
}

.en-datepicker td {
  text-align: center;
  padding: 0;
}

.en-datepicker td button {
  width: 100%;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  color: var(--color-text, #5C5652);
}

.en-datepicker td button:hover:not(:disabled) {
  background: var(--color-bg-alt, #f1f5f9);
}

.en-datepicker td button.dp-other-month {
  color: #ccc;
}

.en-datepicker td button.dp-selected {
  background: var(--color-primary, #7A1E2D);
  color: var(--color-text-light, #fff);
}

.en-datepicker td button.dp-today {
  font-weight: bold;
}

.en-datepicker .dp-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  border-top: 1px solid var(--color-bg-alt, #eee);
  padding-top: 8px;
}

.en-datepicker .dp-footer button {
  background: none;
  border: none;
  color: var(--color-primary, #7A1E2D);
  cursor: pointer;
  font-size: 13px;
}
