/* カレンダー（Rails版）：モックの button をリンクにした分の補正など */
a.cal-date { display: inline-grid; place-items: center; text-decoration: none; }
a.cal-bar { text-decoration: none; }
a.cal-bar:hover { color: #fff; }
a.cal-more { text-decoration: none; }
.segs.cal-view > a { display: inline-grid; place-items: center; flex: 1 1 0; min-width: 0; height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13px; color: var(--sub); text-decoration: none; white-space: nowrap; }
.segs.cal-view > a[aria-pressed=true] { background: #fff; color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.cal-cancel-form { display: inline-flex; }
a.btn.nav-arrow { text-decoration: none; }

/* 準備工程の折りたたみ（<details>） */
details.cal-group > summary { list-style: none; }
details.cal-group > summary::-webkit-details-marker { display: none; }
.cal-group-arrow::before { content: "▸ "; }
details.cal-group[open] .cal-group-arrow::before { content: "▾ "; }

/* タスクのチェック（form で包んだ分） */
.cal-task-form { margin: 0; min-width: 0; }

@media (max-width: 768px) {
  .segs.cal-view > a { height: 30px; padding: 0 12px; }
}

/* 予定の詳細：スマホは見出しと項目をそれぞれカードにする（モックと同じ） */
@media (max-width: 768px) {
  .form-card.event-detail { background: transparent; border: 0; padding: 0; gap: 0; }
}

/* 予定の入力：カードの内側でも日付と時刻を1行に収める */
@media (max-width: 768px) {
  .event-form .fx-rrow { flex-wrap: nowrap; }
  .event-form .fx-rcell.fx-rdate { flex: 1 1 0; min-width: 0; }
  .event-form .fx-rcell input { min-width: 0; width: 100%; }
  .event-form .fx-rrow { padding: 8px 10px; gap: 6px; }
  .event-form .fx-rlbl { width: 3em; }
  .event-form .fx-rcell.fx-rtime { flex: 0 0 104px; }
}
