/* =========================================================
   大宮自動車教習所様 合宿教習 予約管理システム（サンプル）
   ohmiya.css ― 案件固有の追加スタイル
   ※ common.css は流用元のまま無改変。ここは「追加」だけ。
   ========================================================= */

/* --- スクロールバー有無による横幅のズレ防止 --- */
html { scrollbar-gutter: stable; }
.sidebar { scrollbar-gutter: stable; }

/* --- サイドバーのカテゴリ開閉 --- */
.sidebar-menu > li.closed .submenu { display: none; }
.sidebar-menu > li.closed > a .caret { transform: rotate(-90deg); }
.sidebar-menu > li > a .caret { transition: transform .15s; }

/* --- サイドバーの「新規」タグ --- */
.nav-tag { font-size: 9px; font-weight: 800; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.nav-tag.new { background: #ffe14d; color: #6b5b00; }
.nav-tag.out { background: #e5e7eb; color: #6b7280; }
.nav-tag.opt { background: #e7edf7; color: #2f5597; }

/* --- 見出し脇の英字サブラベル --- */
.page-head h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.h1-en { font-family: "Libre Baskerville", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- 注記（弊社想定であることの明示） --- */
.assume {
  font-size: 12px; color: #92590a; background: #fffaf0; border: 1px dashed #f0cf9a;
  border-radius: 8px; padding: 9px 13px; margin: 0 0 16px; line-height: 1.7;
}
.assume b { font-weight: 800; }
.assume i { margin-right: 5px; }
.src { font-size: 11.5px; color: var(--text-muted); margin: 8px 0 0; }

/* --- 未確定のプレースホルダ（構造が不明なもの） --- */
.tbd { background: #f3f4f6; border: 1px dashed #c8cdd6; border-radius: 8px; padding: 14px; text-align: center; color: #9ca3af; font-size: 13px; }
.tbd b { color: #dc2626; font-weight: 800; }

/* --- 業務ステータスの帯（予約詳細ヘッダ） --- */
.flowbar { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; margin-bottom: 16px; }
.flowbar .fb { flex: 1 1 0; min-width: 118px; padding: 11px 8px 10px; text-align: center; font-size: 12px; font-weight: 700; color: #9ca3af; border-right: 1px solid var(--border); position: relative; background: #fafbfd; }
.flowbar .fb:last-child { border-right: none; }
.flowbar .fb .fb-n { display: block; font-family: "Libre Baskerville", sans-serif; font-size: 10px; letter-spacing: .1em; opacity: .75; }
.flowbar .fb.done { color: #16a34a; background: #f2fbf5; }
.flowbar .fb.cur { color: #fff; background: var(--primary); }
.flowbar .fb.done i { color: #16a34a; }

/* --- 対応履歴タイムライン --- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid #eef1f6; }
.timeline li { position: relative; padding: 0 0 20px 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; box-shadow: 0 0 0 2px #eef1f6; }
.timeline li.hi::before { background: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.timeline .tl-time { font-size: 11.5px; color: var(--text-muted); font-family: "Libre Baskerville", sans-serif; }
.timeline .tl-title { font-weight: 700; font-size: 13.5px; margin: 1px 0 2px; }
.timeline .tl-body { font-size: 12.5px; color: #4b5563; }

/* --- 発行済URL（トークン付き）の表示 --- */
.urlbox { display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px; font-size: 12.5px; }
.urlbox code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #334155; word-break: break-all; font-size: 12px; }

/* --- 部屋割りボード：性別で背景を分ける --- */
.board-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: #64748b; cursor: pointer; font-family: inherit; }
.seg button.active { background: var(--primary); color: #fff; }
.gantt .room-col .sex-f { color: #a71628; font-weight: 800; }
.gantt .room-col .sex-m { color: #00053a; font-weight: 800; }
.gantt tr.blk-f .room-col { background: #fdf4f7; }
.gantt tr.blk-m .room-col { background: #f1f6fc; }
.gantt .room-col { min-width: 172px; }
.resv-bar.unassigned-pool { height: auto; padding: 10px 14px; }
.resv-bar.unassigned-pool .rb-name,
.resv-bar.unassigned-pool .rb-meta { white-space: normal; }
.resv-bar.pink { background: linear-gradient(135deg,#a71628,#c30d23); }
.resv-bar.sky  { background: linear-gradient(135deg,#00053a,#2f6cb0); }
.resv-bar.gray { background: linear-gradient(135deg,#94a3b8,#b3bdcc); }

/* --- 入金消込：名義不一致の候補 --- */
.match-row { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; margin-bottom: 10px; background: #fff; }
.match-row.warn { border-color: #f5dcb0; background: #fffdf7; }
.match-row .mr-arrow { text-align: center; color: var(--text-muted); font-size: 18px; }
.match-row .mr-k { font-size: 11px; color: var(--text-muted); }
.match-row .mr-v { font-weight: 700; font-size: 14px; }
.match-row .mr-sub { font-size: 12px; color: #6b7280; }
.match-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }

/* --- 出欠・当日受付のセグメント --- */
.att-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.att-seg button { border: none; background: #fff; padding: 5px 11px; font-size: 12px; font-weight: 700; color: #94a3b8; cursor: pointer; font-family: inherit; border-right: 1px solid var(--border); }
.att-seg button:last-child { border-right: none; }
.att-seg button.on-ok { background: #16a34a; color: #fff; }
.att-seg button.on-late { background: #d97706; color: #fff; }
.att-seg button.on-ng { background: #dc2626; color: #fff; }

/* --- 空き状況：確定待ち（お客様がフォーム送信済み）の件数 --- */
.hold { color: #d97706; font-weight: 800; font-size: .88em; }
.matrix .hold { margin: 0 1px; }
.board-legend .lg .hold { font-size: 12px; }

/* --- メール文面のプレビュー（受信箱の見た目） --- */
.mailview { background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; box-shadow: var(--shadow-sm); }
.mailview .mv-head { background:#fafbfd; border-bottom:1px solid var(--border); padding:12px 16px; }
.mailview .mv-row { display:flex; gap:10px; font-size:12.5px; padding:2px 0; }
.mailview .mv-k { width:52px; color:var(--text-muted); flex-shrink:0; }
.mailview .mv-v { color:var(--text); word-break:break-all; }
.mailview .mv-body { padding:18px 20px; font-size:13px; line-height:1.95; white-space:pre-wrap;
  font-family:'Noto Sans JP','Hiragino Sans',sans-serif; color:#333; }

/* --- 空き状況：クリックできるマス --- */
.matrix a.slot { display:block; font-weight:800; color:var(--primary-dark); text-decoration:none;
  border-radius:6px; padding:3px 0; }
.matrix a.slot:hover { background:var(--primary); color:#fff; }
.matrix td:has(a.slot) { cursor:pointer; }

/* --- 特典カード --- */
.benefit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.benefit-head h3 { font-size: 14.5px; margin: 0; }
.benefit-src { font-size: 11.5px; color: var(--text-muted); }

/* --- チェック（マスタ・設定） --- */
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-right: 16px; }

/* --- 権限マトリクス --- */
.perm td, .perm th { text-align: center; }
.perm tbody td:first-child, .perm thead th:first-child { text-align: left; }
.perm .yes { color: #16a34a; font-size: 15px; }
.perm .no { color: #d1d5db; font-size: 15px; }

/* =========================================================
   お客様画面（予約フォームURLを受け取った方のみ）
   ※ 管理画面とは別の見た目。公式サイトの雰囲気に寄せる。
   ========================================================= */
.g-head { background: #fff; border-bottom: 1px solid #e4e0d6; }
.g-head-in { max-width: 940px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.g-brand { display: flex; align-items: center; gap: 11px; font-family: "Libre Baskerville", "Times New Roman", serif; font-weight: 700; font-size: 18px; color: #333333; }
.g-brand em { display: block; font-style: normal; font-size: 10.5px; color: #7c7768; font-weight: 500; letter-spacing: .04em; }
.g-logo { width: 42px; height: 42px; border-radius: 50%; background: #00053a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.g-tel { font-family: "Libre Baskerville", "Times New Roman", serif; font-weight: 700; font-size: 17px; color: #c30d23; text-align: right; line-height: 1.3; }
.g-tel span { display: block; font-size: 10.5px; color: #7c7768; font-weight: 500; }

.g-hero { background: #faf6e8; padding: 32px 20px 30px; text-align: center; }
.g-hero h1 { font-family: "Libre Baskerville", "Times New Roman", serif; font-size: 25px; margin: 0 0 8px; color: #333333; }
.g-hero p { margin: 0; font-size: 13px; color: #4a463d; }

.g-main { max-width: 800px; margin: 0 auto; padding: 30px 20px 50px; }

.g-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 26px; padding: 0; flex-wrap: wrap; }
.g-steps li { flex: 1 1 0; min-width: 116px; text-align: center; font-size: 12px; font-weight: 700; color: #a8a294; background: #fff; border: 1px solid #e4e0d6; border-radius: 999px; padding: 9px 6px; }
.g-steps .num { display: inline-flex; width: 19px; height: 19px; border-radius: 50%; background: #e4e0d6; color: #fff; align-items: center; justify-content: center; font-size: 11px; margin-right: 5px; vertical-align: -4px; }
.g-steps li.cur { background: #c30d23; border-color: #c30d23; color: #fff; }
.g-steps li.cur .num { background: rgba(255,255,255,.35); }
.g-steps li.done { color: #c30d23; border-color: #d5c987; }
.g-steps li.done .num { background: #c30d23; }

.g-card { background: #fff; border: 1px solid #e4e0d6; border-radius: 4px; padding: 26px 28px; margin-bottom: 20px; }
.g-card > h2 { font-family: "Libre Baskerville", "Times New Roman", serif; font-size: 17px; margin: 0 0 4px; color: #333333; display: flex; align-items: center; gap: 8px; }
.g-card > h2 .n { width: 26px; height: 26px; border-radius: 50%; background: #c30d23; color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.g-card > .lead { font-size: 12.5px; color: #7c7768; margin: 0 0 18px; padding-left: 34px; }
.g-card .field label { font-size: 13px; }
.g-card .field input, .g-card .field select, .g-card .field textarea { border-radius: 4px; border-color: #e4e0d6; }
.g-req { background: #c30d23; color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.g-any { background: #eeebe2; color: #4a463d; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

.g-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.g-pick label { border: 1px solid #e4e0d6; border-radius: 4px; padding: 12px 14px; font-size: 13px; cursor: pointer; display: flex; gap: 9px; align-items: flex-start; background: #fff; }
.g-pick label.on { border-color: #c30d23; background: #fdecee; }
.g-pick label.g-p { align-items: center; }
.g-pick label .t { font-weight: 600; }
.g-pick label .t { font-weight: 700; display: block; }
.g-pick label .s { font-size: 11.5px; color: #7c7768; }

.g-note { background: #eef1f8; border: 1px solid #c9d0e6; border-radius: 4px; padding: 15px 18px; font-size: 12.5px; color: #1a2a5c; line-height: 1.8; }
.g-note b { color: #b59322; }
.g-warn { background: #fdecee; border: 1px solid #d5c987; border-radius: 4px; padding: 15px 18px; font-size: 12.5px; color: #a71628; line-height: 1.8; }

.g-submit { text-align: center; padding: 6px 0 0; }
.g-btn { background: #c30d23; color: #fff; border: none; border-radius: 4px; padding: 15px 52px; font-size: 16px; font-weight: 700; font-family: "Libre Baskerville", "Times New Roman", serif; cursor: pointer; box-shadow: 0 6px 18px rgba(195,13,35,.24); }
.g-btn:hover { background: #a71628; }
.g-btn.sub { background: #fff; color: #4a463d; border: 1px solid #e4e0d6; box-shadow: none; font-size: 14px; padding: 13px 30px; }

.g-dl { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 13.5px; }
.g-dl dt { padding: 12px 0; border-bottom: 1px solid #eee9dc; color: #7c7768; font-weight: 700; font-size: 12.5px; }
.g-dl dd { padding: 12px 0; border-bottom: 1px solid #eee9dc; margin: 0; font-weight: 500; }
.g-dl .big { font-size: 19px; font-weight: 800; color: #c30d23; font-family: "Libre Baskerville", "Times New Roman", serif; }

.g-bank { background: #faf6e8; border-radius: 4px; padding: 20px 24px; font-size: 14px; line-height: 2; }
.g-bank .bk { font-family: "Libre Baskerville", "Times New Roman", serif; font-size: 17px; font-weight: 700; color: #333333; }

.g-foot { background: #333333; color: #cfc9ba; text-align: center; padding: 22px 20px; font-size: 12px; line-height: 1.9; }
.g-foot-note { color: #7c7768; font-size: 11px; margin-top: 4px; }

@media (max-width: 768px) {
  .g-dl { grid-template-columns: 1fr; }
  .g-dl dt { border-bottom: none; padding-bottom: 0; }
  .match-row { grid-template-columns: 1fr; }
  .match-row .mr-arrow { transform: rotate(90deg); }
}

/* =========================================================
   INDEX
   ========================================================= */
.idx-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 22px 60px; }
.idx-head { text-align: center; margin-bottom: 34px; }
.idx-head .logo { width: 62px; height: 62px; border-radius: 50%; background: #00053a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; margin: 0 auto 14px; }
.idx-head h1 { font-family: "Libre Baskerville", "Times New Roman", serif; font-size: 26px; margin: 0 0 6px; }
.idx-head .sub { color: var(--text-muted); font-size: 13.5px; }
.idx-sec { font-family: "Libre Baskerville", "Times New Roman", serif; font-size: 17px; margin: 34px 0 14px; display: flex; align-items: center; gap: 9px; }
.idx-sec::before { content: ""; width: 5px; height: 19px; background: #c30d23; border-radius: 3px; }
.idx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 14px; }
.idx-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px 18px; transition: .15s; }
.idx-card:hover { border-color: #d5c987; box-shadow: 0 6px 18px rgba(244,102,135,.14); transform: translateY(-2px); }
.idx-card.new { border-color: #ffe14d; background: #fffdf0; }
.idx-card .no { font-family: "Libre Baskerville", sans-serif; font-size: 11px; font-weight: 700; color: #c30d23; letter-spacing: .1em; }
.idx-card .nm { font-weight: 700; font-size: 14.5px; margin: 3px 0 5px; }
.idx-card .ds { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.idx-card .tg { display: inline-block; font-size: 9.5px; font-weight: 800; background: #ffe14d; color: #6b5b00; border-radius: 4px; padding: 1px 6px; margin-left: 5px; vertical-align: 1px; }
.idx-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.idx-table th, .idx-table td { padding: 10px 14px; border-bottom: 1px solid #f0f2f6; text-align: left; }
.idx-table thead th { background: #faf6e8; font-size: 12px; color: #a71628; font-weight: 800; }
.idx-table tfoot td { font-weight: 800; background: #fafbfd; }
.idx-table td.n { text-align: right; font-family: "Libre Baskerville", sans-serif; font-weight: 700; }
.idx-flow { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.idx-flow li { counter-increment: s; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 17px 13px 52px; position: relative; font-size: 13.5px; }
.idx-flow li::before { content: counter(s); position: absolute; left: 15px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #c30d23; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: "Libre Baskerville", sans-serif; }
.idx-flow li b { display: block; font-size: 13.5px; }
.idx-flow li span { font-size: 12.5px; color: var(--text-muted); }
.idx-ask { list-style: none; padding: 0; margin: 0; }
.idx-ask li { background: #fff; border: 1px solid var(--border); border-left: 3px solid #4fa9a6; border-radius: 8px; padding: 11px 15px; margin-bottom: 8px; font-size: 13px; }
.idx-ask li b { color: #2c5a8a; }
.idx-foot { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border); line-height: 1.9; }

/* カバレッジ表示（社内説明用・SHOW_COVERAGE で出し分け） */
.cov-box { margin-top: 22px; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.cov-t { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 8px; }
.cov-chip { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 3px 11px; font-size: 11.5px; margin: 0 6px 6px 0; }
.cov-note { font-size: 11.5px; color: var(--text-muted); margin: 6px 0 0; }


/* =========================================================
   ここから SUMOLAND 案件で追加した部品
   ========================================================= */

/* ---- スマートフォン枠（お客様画面を実寸で見せる） ---- */
.sp-wrap { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.sp-col { width: 392px; max-width: 100%; }
.sp-cap { font-size: 12.5px; font-weight: 700; color: #7c7768; text-align: center; margin: 0 0 9px; }
.sp-cap b { color: #a71628; }
.sp-frame { border: 9px solid #1b1b1b; border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 34px rgba(0,5,58,.16); }
.sp-frame .sp-bar { background: #1b1b1b; color: #fff; font-size: 10.5px; padding: 3px 14px 6px;
  display: flex; justify-content: space-between; font-family: "Libre Baskerville", serif; }
.sp-body { padding: 0 0 18px; max-height: 720px; overflow-y: auto; }

/* ---- お客様画面ヘッダー（言語切替つき） ---- */
.b-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  border-bottom: 2px solid #c30d23; }
.b-logo { display: flex; align-items: center; gap: 8px; font-family: "Libre Baskerville", serif;
  font-size: 13px; font-weight: 700; color: #1b1b1b; letter-spacing: .02em; }
.b-logo .mk { width: 34px; height: 34px; border-radius: 50%; background: #c30d23; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 8.5px; line-height: 1.05;
  text-align: center; font-weight: 700; }
.lang-pill { border: 1px solid #d5c987; border-radius: 999px; padding: 4px 11px; font-size: 11px;
  font-weight: 700; color: #b59322; background: #fff; display: inline-flex; align-items: center; gap: 5px; }
.lang-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-list span { border: 1px solid #e4e0d6; border-radius: 999px; padding: 3px 10px; font-size: 11px; color: #7c7768; }
.lang-list span.on { background: #c30d23; border-color: #c30d23; color: #fff; font-weight: 700; }

/* ---- 予約ステップ（3ステップ） ---- */
.b-steps { display: flex; gap: 4px; padding: 12px 14px 0; }
.b-steps li { flex: 1; list-style: none; font-size: 10.5px; font-weight: 700; text-align: center;
  color: #a8a294; border-bottom: 3px solid #e4e0d6; padding-bottom: 7px; }
.b-steps li.cur { color: #c30d23; border-bottom-color: #c30d23; }
.b-steps li.done { color: #b59322; border-bottom-color: #d5c987; }

.b-sec { padding: 16px 14px 0; }
.b-sec h3 { font-size: 13.5px; margin: 0 0 3px; color: #1b1b1b; font-weight: 700; }
.b-sec .sub { font-size: 11.5px; color: #7c7768; margin: 0 0 11px; }

/* ---- プラン選択 ---- */
.plan-card { border: 1px solid #e4e0d6; border-radius: 4px; padding: 11px 13px; margin-bottom: 9px;
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer; background: #fff; }
.plan-card.on { border-color: #c30d23; background: #fdf7f7; box-shadow: inset 3px 0 0 #c30d23; }
.plan-card .pt { font-size: 12.5px; font-weight: 700; color: #1b1b1b; line-height: 1.45; }
.plan-card .ps { font-size: 11px; color: #7c7768; margin-top: 3px; }
.plan-card .pp { margin-left: auto; text-align: right; font-family: "Libre Baskerville", serif;
  font-size: 15px; font-weight: 700; color: #a71628; white-space: nowrap; }
.plan-card .pp small { display: block; font-size: 9.5px; color: #7c7768; font-family: "Noto Sans JP", sans-serif; font-weight: 400; }

/* ---- 直近の空き（カレンダーを開かせない導線） ---- */
.quick { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.quick a { flex: 0 0 auto; border: 1px solid #e4e0d6; border-radius: 4px; padding: 8px 11px; text-align: center;
  min-width: 84px; background: #fff; color: #333; }
.quick a.on { border-color: #c30d23; background: #fdf7f7; }
.quick .qd { font-size: 10.5px; color: #7c7768; }
.quick .qn { font-family: "Libre Baskerville", serif; font-size: 17px; font-weight: 700; color: #1b1b1b; }
.quick .ql { font-size: 10px; color: #2f7d32; font-weight: 700; margin-top: 2px; }
.quick .ql.few { color: #c30d23; }
.quick a.full { background: #f4f2ee; color: #a8a294; }
.quick a.full .qn, .quick a.full .ql { color: #a8a294; }

/* ---- カレンダー ---- */
.cal { width: 100%; border-collapse: collapse; }
.cal th { font-size: 10px; color: #7c7768; padding: 5px 0; font-weight: 700; }
.cal td { text-align: center; padding: 2px; }
.cal .d { display: block; border: 1px solid transparent; border-radius: 4px; padding: 5px 0 4px; font-size: 12.5px; color: #333; }
.cal .d .rm { display: block; font-size: 9px; color: #2f7d32; font-weight: 700; }
.cal .d.few .rm { color: #c30d23; }
.cal .d.ok { border-color: #e4e0d6; }
.cal .d.on { background: #c30d23; color: #fff; border-color: #c30d23; }
.cal .d.on .rm { color: #fff; }
.cal .d.x { color: #cfc9ba; }
.cal .d.x .rm { color: #cfc9ba; font-weight: 400; }

/* ---- 時間枠 ---- */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot2 { border: 1px solid #e4e0d6; border-radius: 4px; padding: 9px 10px; text-align: center; background: #fff; color: #333; }
.slot2.on { border-color: #c30d23; background: #fdf7f7; box-shadow: inset 0 0 0 1px #c30d23; }
.slot2 .st { font-family: "Libre Baskerville", serif; font-size: 14px; font-weight: 700; }
.slot2 .sr { font-size: 10px; color: #2f7d32; font-weight: 700; margin-top: 2px; }
.slot2 .sr.few { color: #c30d23; }
.slot2.x { background: #f4f2ee; color: #a8a294; }
.slot2.x .sr { color: #a8a294; font-weight: 400; }

/* ---- 人数カウンタ ---- */
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e4e0d6;
  border-radius: 4px; padding: 8px 11px; margin-bottom: 8px; }
.qty .ql2 { font-size: 12.5px; font-weight: 700; }
.qty .ql2 small { display: block; font-size: 10.5px; color: #7c7768; font-weight: 400; }
.qty .ct { display: flex; align-items: center; gap: 12px; }
.qty .ct button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d5c987;
  background: #fff; color: #b59322; font-size: 15px; line-height: 1; cursor: pointer; }
.qty .ct .n { font-family: "Libre Baskerville", serif; font-size: 15px; font-weight: 700; min-width: 16px; text-align: center; }

/* ---- 金額サマリ ---- */
.sum { border-top: 1px solid #e4e0d6; margin-top: 12px; padding-top: 10px; }
.sum .r { display: flex; justify-content: space-between; font-size: 12px; color: #4a463d; padding: 3px 0; }
.sum .r.tot { border-top: 1px solid #e4e0d6; margin-top: 7px; padding-top: 9px; font-size: 13px; font-weight: 700; color: #1b1b1b; }
.sum .r.tot .v { font-family: "Libre Baskerville", serif; font-size: 19px; color: #a71628; }
.sum .r.dc .v { color: #2f7d32; }

/* ---- 決済 ---- */
.wallet { display: grid; gap: 8px; margin-bottom: 12px; }
.wallet button { border: none; border-radius: 4px; padding: 12px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
.wallet .ap { background: #000; color: #fff; }
.wallet .gp { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.or { text-align: center; font-size: 10.5px; color: #a8a294; margin: 4px 0 10px; position: relative; }
.or::before, .or::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: #e4e0d6; }
.or::before { left: 0; } .or::after { right: 0; }
.cardbox { border: 1px solid #e4e0d6; border-radius: 4px; padding: 10px 12px; font-size: 12px; color: #7c7768; background: #fbfaf7; }
.cardbox .line { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #eee9dc; }
.cardbox .line:last-child { border-bottom: none; }

.b-cta { padding: 14px; }
.b-cta button { width: 100%; background: #c30d23; color: #fff; border: none; border-radius: 4px;
  padding: 14px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.b-cta .note { font-size: 10.5px; color: #7c7768; text-align: center; margin-top: 8px; line-height: 1.7; }

.b-done { text-align: center; padding: 26px 16px 8px; }
.b-done .ico { width: 54px; height: 54px; border-radius: 50%; background: #2f7d32; color: #fff;
  font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.b-done h2 { font-family: "Libre Baskerville", serif; font-size: 18px; margin: 0 0 6px; color: #1b1b1b; }
.b-done p { font-size: 11.5px; color: #7c7768; margin: 0; line-height: 1.8; }

/* ---- 管理画面：エビカ連携のバッジ・行 ---- */
.ebica { display: inline-flex; align-items: center; gap: 4px; background: #eef1f8; border: 1px solid #c9d0e6;
  color: #1a2a5c; border-radius: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; }
.src-tag { display: inline-block; border-radius: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; }
.src-tag.own { background: #c30d23; color: #fff; }
.src-tag.ota { background: #fff; border: 1px solid #c9d0e6; color: #1a2a5c; }

/* ---- 変動価格の表 ---- */
.pricegrid td .pv { font-family: "Libre Baskerville", serif; font-weight: 700; font-size: 13px; }
.pricegrid td.up { background: #fdf7f7; }
.pricegrid td.up .pv { color: #a71628; }
.pricegrid td.down { background: #f2f7f2; }
.pricegrid td.down .pv { color: #2f7d32; }
.pricegrid .base { color: #7c7768; font-size: 10.5px; }

/* ---- サンプル画面間のナビ（お客様画面の上部） ---- */
.gnav-sample { background: #fff; border-bottom: 1px solid #e4e0d6; }
.gnav-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; flex-wrap: wrap; }
.gnav-in a { font-size: 12px; font-weight: 700; color: #7c7768; padding: 11px 13px; border-bottom: 3px solid transparent; }
.gnav-in a:hover { color: #c30d23; }
.gnav-in a.on { color: #c30d23; border-bottom-color: #c30d23; }

/* ---- 1画面1枚にしたことに伴う調整 ---- */
.sp-wrap { justify-content: center; }
.sp-col { width: 400px; }
.sp-body { max-height: none; }
.step-nav { max-width: 820px; margin: 26px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.resp-note { max-width: 820px; margin: 24px auto 0; background: #faf6e8; border: 1px solid #d5c987;
  border-radius: 4px; padding: 12px 16px; font-size: 12.5px; color: #6b5a17; line-height: 1.8; }
.resp-note i { color: #b59322; margin-right: 5px; }
.planbar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px 14px 0; padding: 9px 12px; background: #faf6e8; border: 1px solid #d5c987; border-radius: 4px; }
.planbar b { display: block; font-size: 12px; color: #1b1b1b; }
.planbar span { font-size: 11px; color: #7c7768; }
.planbar a { font-size: 11px; font-weight: 700; color: #a71628; white-space: nowrap; }

/* =========================================================
   お客様画面：実レスポンシブ（PC → 幅を狭めるとスマートフォン表示）
   ========================================================= */
.samplebar { background: #1b1b1b; color: #cfc9ba; font-size: 11.5px; }
.sb-in { max-width: 1120px; margin: 0 auto; padding: 7px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sb-t { font-weight: 700; color: #fff; }
.sb-n { display: flex; gap: 3px; flex-wrap: wrap; flex: 1; }
.sb-n a { color: #cfc9ba; padding: 3px 8px; border-radius: 3px; font-size: 11px; }
.sb-n a:hover { background: #333; color: #fff; }
.sb-n a.on { background: #c30d23; color: #fff; font-weight: 700; }
.sb-idx { color: #fff; font-weight: 700; white-space: nowrap; }

.bk-head { background: #fff; border-bottom: 2px solid #c30d23; }
.bk-head-in { max-width: 1120px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-logo { display: flex; align-items: center; gap: 10px; font-family: "Libre Baskerville", serif; font-size: 15px; font-weight: 700; color: #1b1b1b; letter-spacing: .02em; }
.bk-logo .mk { width: 40px; height: 40px; border-radius: 50%; background: #c30d23; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9.5px; line-height: 1.05; text-align: center; font-weight: 700; flex-shrink: 0; }
.bk-logo em { display: block; font-style: normal; font-size: 10.5px; color: #7c7768; font-family: "Noto Sans JP", sans-serif; font-weight: 400; }

.bk-steps { background: #fff; border-bottom: 1px solid #e4e0d6; }
.bk-steps ul { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; gap: 6px; list-style: none; }
.bk-steps li { flex: 1; font-size: 12px; font-weight: 700; text-align: center; color: #a8a294;
  border-bottom: 3px solid transparent; padding: 12px 4px 10px; }
.bk-steps li.cur { color: #c30d23; border-bottom-color: #c30d23; }
.bk-steps li.done { color: #b59322; border-bottom-color: #d5c987; }

.bk-wrap { max-width: 1120px; margin: 0 auto; padding: 26px 20px 50px; }
.bk-grid { display: grid; grid-template-columns: 1fr 336px; gap: 30px; align-items: start; }
.bk-side { position: sticky; top: 18px; }

.bk-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #faf6e8; border: 1px solid #d5c987; border-radius: 4px; padding: 13px 16px; margin-bottom: 22px; }
.bk-plan b { display: block; font-size: 14px; color: #1b1b1b; }
.bk-plan span { font-size: 12px; color: #7c7768; }
.bk-plan a { font-size: 12px; font-weight: 700; color: #a71628; white-space: nowrap; }

.bk-block { margin-bottom: 26px; }
.bk-block h2 { font-size: 16px; margin: 0 0 3px; color: #1b1b1b; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.bk-block h2 .n { width: 24px; height: 24px; border-radius: 50%; background: #c30d23; color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: "Libre Baskerville", serif; }
.bk-block .lead { font-size: 12.5px; color: #7c7768; margin: 0 0 12px; padding-left: 33px; }
.bk-body { padding-left: 33px; }

.bk-card { background: #fff; border: 1px solid #e4e0d6; border-radius: 4px; padding: 18px 20px; }
.bk-card h3 { font-size: 13.5px; margin: 0 0 12px; color: #1b1b1b; }
.bk-cta { width: 100%; background: #c30d23; color: #fff; border: none; border-radius: 4px;
  padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 14px; }
.bk-cta:hover { background: #a71628; }
.bk-cta:disabled { opacity: .6; cursor: wait; }
.bk-cta.sub { background: #fff; color: #333; border: 1px solid #e4e0d6; font-size: 13.5px; padding: 11px; }
.bk-note { font-size: 11px; color: #7c7768; text-align: center; margin-top: 9px; line-height: 1.75; }

/* 日付・時間・人数（PC寸法／狭めるとスマホ寸法） */
.bk-wrap .quick a { min-width: 92px; padding: 10px 13px; }
.bk-wrap .quick .qn { font-size: 19px; }
.bk-wrap .cal th { font-size: 11px; padding: 7px 0; }
.bk-wrap .cal .d { padding: 9px 0 7px; font-size: 14px; cursor: pointer; }
.bk-wrap .cal .d .rm { font-size: 10px; }
.bk-wrap .cal .d.ok:hover { border-color: #c30d23; }
.bk-wrap .slots { grid-template-columns: repeat(4, 1fr); }
.bk-wrap .slot2 { padding: 12px 10px; cursor: pointer; }
.bk-wrap .slot2 .st { font-size: 16px; }
.bk-wrap .slot2.x { cursor: default; }
.bk-wrap .qty { padding: 11px 14px; }

.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-fields .field label { font-size: 13px; font-weight: 700; }
.bk-fields .wide { grid-column: 1 / -1; }

.bk-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-wallet button { border: none; border-radius: 4px; padding: 13px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
.bk-wallet .ap { background: #000; color: #fff; }
.bk-wallet .gp { background: #fff; color: #3c4043; border: 1px solid #dadce0; }

.bk-done { text-align: center; padding: 34px 20px 6px; }
.bk-done .ico { width: 62px; height: 62px; border-radius: 50%; background: #2f7d32; color: #fff;
  font-size: 31px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
/* 予約が成り立たなかった結果は赤、確認中は灰色（完了の緑と見分ける） */
.bk-done .ico.ng { background: #b3261e; }
.bk-done .ico.wait { background: #8a8579; }
.bk-done h1 { font-family: "Libre Baskerville", serif; font-size: 25px; margin: 0 0 8px; color: #1b1b1b; }
.bk-done p { font-size: 13px; color: #7c7768; margin: 0; line-height: 1.9; }

.gnote-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px 44px; }
.gnote-lead { font-size: 13px; color: #4a463d; margin: 18px 0 0; line-height: 1.9; }

/* ---- スマートフォン（検証ツールで幅を狭めるとここから） ---- */
@media (max-width: 900px) {
  .bk-grid { grid-template-columns: 1fr; gap: 22px; }
  .bk-side { position: static; }
  .bk-wrap { padding: 18px 14px 40px; }
  .bk-block { margin-bottom: 20px; }
  .bk-block h2 { font-size: 14.5px; }
  .bk-block .lead, .bk-body { padding-left: 0; }
  .bk-block h2 .n { width: 22px; height: 22px; font-size: 11px; }
  .bk-wrap .slots { grid-template-columns: 1fr 1fr; }
  .bk-wrap .cal .d { padding: 6px 0 5px; font-size: 12.5px; }
  .bk-wrap .quick a { min-width: 84px; padding: 8px 11px; }
  .bk-fields { grid-template-columns: 1fr; gap: 11px; }
  .bk-steps li { font-size: 10.5px; padding: 10px 2px 8px; }
  .bk-head-in { padding: 10px 14px; }
  .bk-logo { font-size: 13px; }
  .bk-logo .mk { width: 34px; height: 34px; font-size: 8.5px; }
  .bk-plan { margin-bottom: 16px; padding: 10px 12px; }
  .sb-n { display: none; }
  .bk-done h1 { font-size: 21px; }
}

/* グリッドの子は min-content 幅で押し広げられるため 0 に固定（横スクロール防止） */
.bk-grid > * { min-width: 0; }
.bk-wrap .quick { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bk-wrap .cal { table-layout: fixed; }
.bk-wrap .slot2 { min-width: 0; }
body { overflow-x: hidden; }

/* ---- プラン一覧・詳細 ---- */
.ph-img, .ph-hero, .ph-th { background: linear-gradient(135deg,#f2efe6,#e7e2d3); color: #b3ab93;
  display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.ph-img { width: 150px; height: 104px; flex-shrink: 0; font-size: 25px; }
.ph-hero { height: 300px; font-size: 34px; gap: 12px; flex-direction: column; margin-bottom: 9px; }
.ph-hero span { font-size: 12px; color: #a89f85; }
.ph-thumbs, .ph-row { display: flex; gap: 8px; margin-bottom: 22px; }
.ph-th { width: 74px; height: 54px; font-size: 17px; }
.ph-th.more, .ph-th.add { background: #fff; border: 1px dashed #d5c987; color: #b59322; font-size: 13px; font-weight: 700; cursor: pointer; }

.plan-list { display: grid; gap: 14px; }
.plan-item { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid #e4e0d6;
  border-radius: 4px; padding: 16px 18px; color: #333; }
.plan-item:hover { border-color: #c30d23; box-shadow: 0 4px 16px rgba(195,13,35,.08); }
.pi-b { flex: 1; min-width: 0; }
.pi-t { font-size: 15px; font-weight: 700; color: #1b1b1b; margin-bottom: 5px; }
.pi-d { font-size: 12.5px; color: #7c7768; line-height: 1.75; }
.pi-m { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: #7c7768; }
.pi-p { text-align: right; font-family: "Libre Baskerville", serif; font-size: 20px; font-weight: 700;
  color: #a71628; white-space: nowrap; }
.pi-p small { display: block; font-size: 10.5px; color: #7c7768; font-family: "Noto Sans JP", sans-serif; font-weight: 400; }
.pi-btn { display: inline-block; margin-top: 9px; background: #c30d23; color: #fff; font-family: "Noto Sans JP", sans-serif;
  font-size: 12px; font-weight: 700; padding: 7px 16px; border-radius: 4px; }

.plan-h1 { font-family: "Libre Baskerville", serif; font-size: 25px; margin: 0 0 10px; color: #1b1b1b; }
.plan-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #7c7768;
  border-bottom: 1px solid #e4e0d6; padding-bottom: 16px; margin-bottom: 24px; }
.plan-ul { margin: 0; padding-left: 19px; font-size: 13.5px; line-height: 2; }
.plan-ul.small { font-size: 12.5px; line-height: 1.95; color: #7c7768; margin-top: 14px; }
.plan-ul b { color: #1b1b1b; }
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inc { border: 1px solid #e4e0d6; border-radius: 4px; padding: 14px 16px; }
.inc b { display: block; font-size: 13px; margin-bottom: 8px; }
.inc.yes b { color: #2f7d32; } .inc.no b { color: #a71628; }
.inc ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.95; color: #4a463d; }
.plan-dl { display: grid; grid-template-columns: 190px 1fr; gap: 0; font-size: 13.5px; margin: 0; }
.plan-dl dt { padding: 11px 0; border-bottom: 1px solid #eee9dc; color: #7c7768; font-weight: 700; font-size: 12.5px; }
.plan-dl dd { padding: 11px 0; border-bottom: 1px solid #eee9dc; margin: 0; line-height: 1.8; }
.plan-price { font-family: "Libre Baskerville", serif; font-size: 27px; font-weight: 700; color: #a71628; }
.plan-price small { font-size: 11.5px; color: #7c7768; font-family: "Noto Sans JP", sans-serif; font-weight: 400; margin-left: 6px; }

.chip-edit { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-edit span { background: #faf6e8; border: 1px solid #d5c987; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: #6b5a17; }
.chip-edit span i { color: #b59322; margin-left: 4px; cursor: pointer; }
.chip-edit .add { background: #fff; border-style: dashed; cursor: pointer; }

@media (max-width: 900px) {
  .plan-item { flex-wrap: wrap; gap: 12px; }
  .ph-img { width: 100%; height: 150px; }
  .pi-p { text-align: left; width: 100%; }
  .ph-hero { height: 200px; }
  .inc-grid { grid-template-columns: 1fr; }
  .plan-dl { grid-template-columns: 1fr; }
  .plan-dl dt { border-bottom: none; padding-bottom: 0; }
  .plan-h1 { font-size: 20px; }
}

/* ---- プラン詳細＝STEP1（内容を読みながらその場で予約） ---- */
.plan-top { margin-bottom: 24px; }
.book-card { padding: 18px 18px 20px; }
.bc-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee9dc; }
.bc-sec:first-of-type { border-top: none; padding-top: 10px; margin-top: 10px; }
.bc-sec h4 { font-size: 12.5px; font-weight: 700; color: #7c7768; margin: 0 0 9px; letter-spacing: .02em; }
.book-card .quick { margin-bottom: 8px; }
.book-card .quick a { min-width: 68px; padding: 6px 8px; }
.book-card .quick .qn { font-size: 16px; }
.book-card .cal .d { padding: 6px 0 5px; font-size: 12.5px; }
.book-card .slots { grid-template-columns: 1fr 1fr; }
.book-card .slot2 { padding: 9px 6px; }
.book-card .slot2 .st { font-size: 14px; }
.book-card .slot2 .sr { font-size: 9.5px; }
.book-card .qty { padding: 8px 11px; margin-bottom: 7px; }
.book-card .qty .ql2 { font-size: 12px; }
.book-card .qty .ql2 small { font-size: 10px; }
.plan-item.mini { padding: 13px 15px; }
.plan-item.mini .pi-t { font-size: 13.5px; }
.plan-item.mini .pi-p { font-size: 16px; }

@media (max-width: 900px) {
  /* スマートフォンでは、プランの説明より先に予約カードを出す */
  .bk-side { order: -1; }
  .bk-grid { display: flex; flex-direction: column; }
}

/* ---- Express checkout（Stripe の Express Checkout Element 相当） ---- */
.bk-wallet.stacked { grid-template-columns: 1fr; gap: 9px; max-width: 420px; }
.bk-wallet.stacked button { padding: 15px; font-size: 15px; }
.or-line { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; color: #a8a294; font-size: 12px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: #e4e0d6; }

/* ---- 決済の安心表示 ---- */
.secure-note { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 11.5px;
  color: #7c7768; background: #f7f6f2; border: 1px solid #e4e0d6; border-radius: 4px; padding: 9px 12px; }
.secure-note i { color: #2f7d32; }

/* ---- 言語切替ボタン ---- */
.lang-sw { display: inline-flex; border: 1px solid #d5c987; border-radius: 999px; overflow: hidden; background: #fff; }
.lang-opt { padding: 5px 14px; font-size: 11.5px; font-weight: 700; color: #b59322; cursor: pointer; }
.lang-opt.on { background: #c30d23; color: #fff; }

/* 変動価格ルールの設定フォーム */
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.rule-f.wide { grid-column: 1 / -1; }
.rule-f > label { display: block; font-size: 12px; font-weight: 700; color: #6b7280; margin-bottom: 6px; }
.rule-f input[type="text"], .rule-f select {
  width: 100%; height: 40px; padding: 8px 10px; font-size: 13.5px;
  border: 1px solid #d7dbe0; border-radius: 6px; background: #fff; color: #1f2937;
  font-family: inherit; box-sizing: border-box; }
.rule-f input:disabled { background: #f2f3f5; color: #9aa3ad; cursor: not-allowed; }

/* flatpickr：カレンダーアイコンを添えて、入力欄と一体に見せる */
.rule-f input.js-date { background: #fff no-repeat right 10px center / 15px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23808a95'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
  padding-right: 32px; cursor: pointer; }
.rule-f input.js-date:disabled { background-color: #f2f3f5; opacity: .6; }
.flatpickr-calendar { font-family: inherit; font-size: 13px; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
  background: #c30d23; border-color: #c30d23; }
.flatpickr-day.selected:hover { background: #a71628; border-color: #a71628; }
.flatpickr-months .flatpickr-month { color: #1f2937; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; }
.chkline { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 4px; }
.chkline .chk { font-size: 13px; white-space: nowrap; }
.daterow { display: flex; align-items: center; gap: 10px; }
.daterow input { flex: 1; min-width: 0; }
.daterow input.js-adjval { flex: 0 0 130px; }
.daterow span { font-size: 13.5px; color: #6b7280; white-space: nowrap; }
.chkline { min-height: 40px; align-items: center; }
.calcbox { padding: 8px 12px; background: #f6f7f9; border: 1px solid #e3e6ea; border-radius: 6px;
  font-size: 14px; color: #6b7280; }
.calcbox b { font-size: 17px; color: #a71628; }
.calcbox span { margin: 0 6px; color: #9aa3ad; }
@media (max-width: 900px) { .rule-grid { grid-template-columns: 1fr; } }
