/**
 * Admin 表單與設定頁共用樣式
 * 系統性統一：卡片、區塊、按鈕列、表格標題
 */

/* ── 表單卡片（置中）── */
.fn-form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .fn-form-card { max-width: 560px; }
}
.fn-form-note {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
}

/* ── 表單區塊 ── */
.fn-form-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.fn-form-section:last-of-type { border-bottom: none; }

.fn-form-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* ── 欄位與標籤 ── */
.fn-field-row { margin-bottom: 1rem; }
.fn-field-row:last-child { margin-bottom: 0; }
.fn-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
  display: block;
}

/* ── 按鈕列 ── */
.fn-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}
.fn-form-actions .btn-primary { flex-grow: 1; }

/* ── 頁面標題（表單用，置中）── */
.fn-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

/* ── 設定頁表格標題（取代 inline style）── */
.fn-table-header {
  background: #065f46;
  color: #fff;
}
