/* datediff 專用樣式，避免與主站衝突 */

.dja-description {
  font-size: 0.9rem;
  color: #455a64;
  margin-bottom: 0.6rem;
}

.dja-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dja-block h3 {
  margin-bottom: 0.4rem;
}

/* 日付輸入列：第一版設計，橫向排列 */
.dja-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.dja-row label {
  font-size: 0.85rem;
  color: #455a64;
  white-space: nowrap;
}

.dja-row input[type="date"] {
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid #b0bec5;
  background-color: #ffffff;
}

.dja-row input[type="date"]:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.18);
  outline: none;
}

.dja-btn-ghost {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b0bec5;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
}

.dja-btn-ghost:hover {
  background-color: #eceff1;
}

/* 和暦／民國顯示在輸入框右邊 */
.dja-year-inline {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: #607d8b;
}

/* 下方操作按鈕列 */
.dja-row-actions {
  justify-content: flex-start;
}

/* 計算結果 */
.dja-result {
  background-color: #f5f7ff;
  border: 1px solid #c5d3f5;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.dja-result p {
  margin-bottom: 0.3rem;
}

.dja-result ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.9rem;
}

/* 手機時避免過度擁擠 */
@media (max-width: 700px) {
  .dja-year-inline {
    margin-left: 0;
  }
}
