/* v6.210.0: イベント予約（隊員側）。UIサンプル v3 サンプル1〜4 準拠（エリア切替は Phase 1.5 のため無し）。
   色・角丸・ピルは gs デザインシステム（DESIGN.md）の変数を参照。本ページ専用クラスは es- 接頭辞（#92）。 */

.es-page { max-width: 470px; margin: 0 auto; padding-bottom: 96px; }

/* コントロール行: ビュー切替 + 月ナビ */
.es-controls { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.es-view-tab {
  height: 40px; padding: 0 18px; border-radius: 9999px; display: inline-flex; align-items: center;
  font-size: var(--text-sm, .875rem); font-weight: 500; background: var(--color-surface);
  border: 1px solid var(--color-border); color: var(--color-text); box-shadow: var(--shadow-1);
  cursor: pointer; font-family: inherit;
}
.es-view-tab.active { background: #e8f0fe; color: var(--color-primary); border-color: #c5d8f6; font-weight: 600; }
.es-month-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.es-month-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-text-muted); font-size: 15px; cursor: pointer;
}
.es-month-nav span { font-size: 14px; font-weight: 600; min-width: 84px; text-align: center; }

/* 残り日数ライン（白カード + 青ドット） */
.es-quota-line {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow-1);
}
.es-quota-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; }
.es-quota-line .txt { font-size: 13px; color: var(--color-text-muted); }
.es-quota-line .txt b { color: var(--color-primary); font-weight: 600; font-size: 15px; }

/* 上限到達バナー（白ベース + 赤ドット） */
.es-limit-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 20px; padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-1);
}
.es-limit-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-red, #c5221f); margin-top: 6px; flex-shrink: 0; }
.es-limit-banner .t { font-size: var(--text-sm, .875rem); font-weight: 600; color: var(--color-red, #c5221f); }
.es-limit-banner .s { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

/* 日付見出し + 募集カード（リスト） */
.es-date-head { font-size: 12px; font-weight: 600; color: var(--color-text-muted); margin: 18px 4px 8px; letter-spacing: .02em; }
.es-date-head:first-child { margin-top: 0; }
.es-empty { font-size: 13px; color: var(--color-text-muted); padding: 28px 8px; text-align: center; }
.es-ev-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 20px; padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow-1); cursor: pointer;
}
.es-ev-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.es-ev-title { font-size: var(--text-base, 1rem); font-weight: 600; }
.es-ev-chev { color: var(--color-text-faint); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.es-ev-meta { font-size: 12.5px; color: var(--color-text-muted); margin-top: 4px; }
.es-ev-sub {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-divider);
  font-size: 12px; color: var(--color-text-muted);
}
.es-ev-sub .pay { color: var(--color-text); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.es-ev-sub .deadline { color: var(--color-text-faint); }
.es-ev-sub .remain { color: var(--color-primary); font-weight: 600; }

/* 状態バッジ */
.es-st { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.es-st-applied { background: rgba(242,153,0,.20); color: #8a5500; }
.es-st-approved { background: rgba(52,168,83,.20); color: #1e7e34; }
.es-st-full { background: rgba(128,134,139,.20); color: #3c4043; }

/* カレンダー */
.es-cal-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 20px; padding: 16px; box-shadow: var(--shadow-1); margin-bottom: 16px;
}
.es-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.es-cal-dow { font-size: 11px; color: var(--color-text-faint); padding: 4px 0; font-weight: 500; }
.es-cal-dow.sun { color: #c5221f; opacity: .7; }
.es-cal-dow.sat { color: #1a73e8; opacity: .7; }
.es-cal-day {
  position: relative; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; border-radius: 12px; cursor: pointer; border: none; background: none; font-family: inherit; color: var(--color-text);
}
.es-cal-day .n { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.es-cal-day.sel .n { background: #e8f0fe; color: var(--color-primary); font-weight: 600; }
.es-cal-day .d { width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); margin-top: 2px; }
.es-cal-day .d.none { background: transparent; }
.es-cal-sel-head { font-size: 12px; font-weight: 600; color: var(--color-text-muted); margin: 0 4px 8px; }

/* 詳細 */
.es-back-row { margin-bottom: 12px; }
.es-info-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-1);
}
.es-info-card h3 { font-size: var(--text-base, 1rem); font-weight: 600; margin: 0 0 10px; }
.es-info-row { display: flex; font-size: var(--text-sm, .875rem); margin-top: 6px; }
.es-info-row .k { color: var(--color-text-muted); min-width: 76px; font-size: 13px; flex-shrink: 0; }
.es-info-row .v b { font-weight: 600; }
.es-info-row .hint { font-size: 12px; color: var(--color-text-faint); }

.es-slot-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden;
}
.es-slot-card h3 {
  font-size: 13px; font-weight: 600; color: var(--color-text-muted); margin: 0;
  padding: 13px 18px; border-bottom: 1px solid var(--color-divider); background: var(--color-surface-2);
}
.es-slot-row { padding: 14px 18px; border-bottom: 1px solid var(--color-divider); }
.es-slot-row:last-child { border-bottom: none; }
.es-slot-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.es-slot-name { font-size: var(--text-sm, .875rem); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.es-slot-name .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); }
.es-slot-name .dot.a { background: var(--color-amber, #f29900); }
.es-slot-meta { font-size: 12.5px; color: var(--color-text-muted); margin-top: 4px; }
.es-slot-pay { font-size: 13px; margin-top: 2px; }
.es-slot-pay b { font-weight: 600; font-variant-numeric: tabular-nums; }
.es-slot-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.es-slot-remain { font-size: 12px; color: var(--color-primary); font-weight: 600; }
.es-slot-note { font-size: 12px; color: var(--color-text-faint); }
.es-slot-blocked { font-size: 12px; color: var(--color-text-faint); }
.es-screen-note { font-size: 12px; color: var(--color-text-faint); margin-top: 12px; padding: 0 4px; line-height: 1.7; }

/* ボタン（gs ピル・.gs-btn-* の !important 系を避けた本ページ専用軽量版） */
.es-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: 9999px;
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); box-shadow: var(--shadow-1); white-space: nowrap;
}
.es-btn-primary { background: var(--color-primary); border: none; color: #fff; box-shadow: var(--shadow-2); font-weight: 600; }
.es-btn:disabled { opacity: .6; cursor: not-allowed; }

/* 確認モーダル（軽量・本ページ専用） */
.es-confirm-overlay {
  position: fixed; inset: 0; background: rgba(32,33,36,.45); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.es-confirm-overlay.active { display: flex; }
.es-confirm-box {
  background: var(--color-surface); border-radius: 20px; box-shadow: var(--shadow-2);
  width: 100%; max-width: 400px; padding: 20px;
}
.es-confirm-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.es-confirm-body { font-size: 13.5px; color: var(--color-text); line-height: 1.7; }
.es-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
