/* 管理画面（店頭・厨房・設定）。現場=スマホ・タブレット前提の大きめUI */
/* 管理画面の地色。styles.css の素（お客様フォーム用・無地）とは別に、紙のような温かい地と
   店の基調色（admin.js が tenants.theme から入れる。無ければ淡い臙脂）を持つ。
   2026-09-03 まりほ「白黒すぎる」→ 素の無地を管理画面にまで当てないための指定 */
:root {
  --accent: #c98a94;
  --bg: #faf7f3;
  --ink: #3b3335;
  --boxbg: #ffffff;
  --box: #e8dfda;
  --line: #e8dfda;
  --mute: #8d8083;
  --r: 10px;
  --r-lg: 14px;
}
/* #app 側の max-width:560px（styles.css）はIDセレクタで強く、この指定は効いていなかった。
   同じ強さで上書きする（2026-08-31 発見。大きいモニタでも560px幅のまま出ていた） */
#app.admin { max-width: 640px; padding-bottom: 40px; }
.login-box { max-width: 360px; margin: 80px auto; text-align: center; }
.login-box h1 { font-size: 1.3rem; }
.login-box .field { text-align: left; }

.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 6px; }
.admin-header h1 { font-size: 1.15rem; margin: 0; }
.link-btn { background: none; border: none; color: #a08a8f; cursor: pointer; font-size: .8rem; font-family: inherit; }

.tabs { display: flex; gap: 8px; margin: 8px 0 14px; }
.tab {
  flex: 1; padding: 10px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-size: .95rem; font-weight: bold; cursor: pointer;
  font-family: inherit; color: var(--ink);
}
.tab.selected { background: var(--primary); border-color: var(--primary-deep); color: #fff; }
.tab-link { text-align: center; text-decoration: none; line-height: 1.4; }
/* メニュー内の「操作」項目（画面切替ではない）。少し離して、破線で区別 */
.tab-action { margin-top: 10px; border-style: dashed; }
.tab-action + .tab-action { margin-top: 0; }
.tab-muted { color: #a08a8f; font-weight: normal; }

.date-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.date-nav input[type="date"] {
  padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
}

/* 受取リスト */
.order-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px;
}
.order-card.canceled { opacity: .5; }
.order-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.order-time { font-weight: bold; font-size: 1.1rem; min-width: 56px; }
.order-name { flex: 1; font-size: .95rem; }
.order-kana { color: var(--mute, #746b6d); font-size: .78rem; font-weight: normal; white-space: nowrap; }
.order-name .order-product { display: block; font-size: .78rem; color: #a08a8f; }
.order-total { font-size: .9rem; white-space: nowrap; }
.status-badge {
  font-size: .72rem; border-radius: 8px; padding: 2px 8px; white-space: nowrap; font-weight: bold;
}
.st-new { background: #ffe9ec; color: #d0455f; }
.st-confirmed { background: #fff3d9; color: #b07d10; }
.st-in_production { background: #e3f0ff; color: #2f6fbd; }
.st-completed { background: #e6f6e8; color: #2e8b3d; }
.st-canceled { background: #eee; color: #888; }
.st-mailfail { background: #fff3d6; color: #a76a00; }
.mail-delivery-item { margin-bottom: 16px; overflow-wrap: anywhere; }
.mail-delivery-item p { margin: 6px 0; }
.cf-row {
  display: flex; align-items: center; gap: 18px; padding: 9px 2px;
  border-bottom: 1px solid var(--line); font-size: .92rem;
}
.cf-row:last-child { border-bottom: none; }
.cf-row strong { flex: 1; font-weight: 600; }
.cf-row > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cf-check { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cf-check input:disabled { opacity: .45; }
.cf-check:has(input:disabled) { color: #a9a9a9; }
/* 店頭受取のお支払い（3択・2026-11-09）。スマホで長い選択肢が折り返せるように1行ずつ */
.dl-paymode label { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0; font-weight: normal; }
.dl-paymode input { margin-top: 3px; flex: none; }
.dl-paymode label:has(input:disabled) { color: #a9a9a9; }
@media (max-width: 560px) {
  .cf-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .cf-row strong { flex: none; width: 100%; }
  .cf-row > span { width: 100%; flex-wrap: wrap; white-space: normal; }
}
.order-body { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; font-size: .88rem; }
.order-body .confirm-row { padding: 2px 0; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }  /* ボタンが増えてもスマホ幅からはみ出さないように折り返す */
.order-actions .pill { font-size: .85rem; padding: 7px 14px; }
.pill.danger { border-color: #e8b7c0; color: #d0455f; }
.empty-note { text-align: center; color: #a08a8f; padding: 40px 0; }

/* 予約・製造：製造数と受取順を同じ画面で見る */
.print-only { display: none; }
.daily-section-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 8px;
}
.daily-section-heading h2, .daily-section-heading p { margin: 0; }
.daily-section-heading .small { margin-top: 4px; }
.daily-pickup-heading { margin: 28px 0 12px; font-size: 1.12rem; }
.order-received { display: block; margin-top: 2px; font-size: .74rem; font-weight: normal; color: var(--mute); white-space: nowrap; }
.print-title { font-size: 1.05rem; text-align: center; }
.kitchen-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; background: #fff; }
.kitchen-table th, .kitchen-table td { border: 1px solid var(--line); padding: 8px 10px; font-size: .92rem; text-align: left; }
.kitchen-table th { background: #fdf1f3; }
.kitchen-table .qty-cell { text-align: center; font-weight: bold; font-size: 1.05rem; }
.kitchen-sub { font-size: 1rem; margin: 6px 0 0; }
.option-count-table .digit-row td { font-size: .86rem; padding-top: 4px; padding-bottom: 4px; }
.option-count-table .digit-row .qty-cell { font-size: .95rem; }
.option-count-table .digit-warn { color: #b3261e; }
.kcard { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: .9rem; }
.kcard .khead { display: flex; gap: 10px; font-weight: bold; }
.kcard ul { margin: 6px 0 0; padding-left: 18px; }
.kcard .plate { background: #fff8e6; border-radius: 8px; padding: 4px 8px; margin-top: 6px; display: inline-block; }

/* 設定 */
.settings-jumps {
  position: sticky; top: 8px; z-index: 12;
  margin: 0 0 14px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: rgba(250, 247, 243, .96); box-shadow: 0 3px 12px rgba(59, 51, 53, .06);
}
.settings-jumps-label { display: block; margin-bottom: 7px; font-size: .78rem; color: var(--mute); }
.settings-jumps-links { display: flex; flex-wrap: wrap; gap: 7px; }
.settings-jumps a {
  flex: 0 0 auto; padding: 6px 11px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 600;
}
.settings-jumps a:hover, .settings-jumps a:focus-visible {
  border-color: var(--primary-deep); color: var(--primary-deep); outline: none;
}
.settings-anchor { scroll-margin-top: 92px; }
.settings-anchor:target { box-shadow: 0 0 0 2px var(--primary); }

.rule-row, .ov-row, .prod-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.rule-row input[type="number"] {
  width: 70px; text-align: center; padding: 6px; border: 2px solid var(--line); border-radius: 8px; font-size: 1rem;
}
.rule-row .rule-name, .prod-row .prod-name { flex: 1; }
.override-add { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.weekday-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.weekday-row label {
  display: flex; align-items: center; gap: 4px; font-weight: normal; font-size: .9rem;
  border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; background: #fff;
}
.weekday-row label.on { background: var(--primary); color: #fff; border-color: var(--primary-deep); }
.weekday-row input { display: none; }
.radio-line { display: flex; align-items: center; gap: 8px; font-weight: normal; font-size: .9rem; margin-top: 6px; cursor: pointer; }
.radio-line input { width: 18px; height: 18px; accent-color: var(--primary-deep); }
.tokushoho-fields {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 12px; margin-top: 10px;
}
.tokushoho-fields label { min-width: 0; font-size: .8rem; color: var(--mute); }
.tokushoho-fields input, .tokushoho-fields textarea { margin-top: 5px; color: var(--ink); }

/* 状態バッジ（今どうなっているか。押せるボタンとは見た目で区別する） */
.state-badge {
  display: inline-block; font-size: .78rem; font-weight: bold;
  padding: 3px 10px; border-radius: 8px; white-space: nowrap;
  background: #eee; color: #888;
}
.state-badge.on { background: #e6f6e8; color: #2e8b3d; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.status-line .text-field-label { margin: 0; }
.override-add input, .override-add select {
  padding: 8px; border: 2px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .95rem;
}

/* 印刷（厨房帳票: A4・白黒） */
@media print {
  body { background: #fff; }
  .no-print, .price-bar, .tabs, .admin-header, .date-nav { display: none !important; }
  #tab-settings, #tab-design, #tab-reports, #tab-account, #tab-billing, #pickup-list { display: none !important; }
  #tab-pickup { display: block !important; }
  #tab-kitchen { display: block !important; }
  .print-only { display: block !important; }
  .admin { max-width: 100%; }
  .kcard, .kitchen-table th, .kitchen-table td { border-color: #999; }
}

/* 集計：条件・製造数・受取明細を別のまとまりにする。 */
#tab-reports { min-width: 0; }
.report-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.report-filters .field { flex: 1 1 180px; min-width: 0; margin-bottom: 12px; }
.report-filters input, .report-filters select { width: 100%; min-width: 0; box-sizing: border-box; }
.report-filters > button { margin-bottom: 12px; }
.report-section { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 22px 0; background: #fff; }
.report-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-heading h3 { margin: 0; }
.report-heading button { white-space: nowrap; }
.report-table-wrap { overflow-x: auto; }
.report-table-wrap td { white-space: pre-wrap; min-width: 65px; overflow-wrap: anywhere; }
#report-summary table { min-width: 440px; }
.report-table-wrap th { white-space: nowrap; }
.report-table-wrap td:first-child, #report-detail td:nth-child(2) { white-space: nowrap; }
#report-detail table { min-width: 1150px; }
#report-scope { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .order-name { min-width: 140px; }
  .daily-section-heading { align-items: flex-start; }
  .daily-section-heading .pill { flex: 0 0 auto; }
  .report-section { padding: 12px; }
  .report-filters .field { flex-basis: 100%; }
}

/* 課金状態バナー（SaaS：トライアル・未払いなどがあるときだけ表示） */
.billing-banner {
  background: #fff6e9; border: 2px solid var(--accent);
  border-radius: 12px; padding: 10px 14px; margin: 10px 0;
  font-size: .9rem; line-height: 1.8;
}
.billing-banner .pill { margin-left: 6px; }

/* 画面下に固定される保存バー */
#app.admin { padding-bottom: 90px; }
.save-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: #fffdf9; border-top: 2px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 20px; box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.save-bar #save-status { font-size: .86rem; color: #a08a8f; }
.save-bar.dirty { background: #fff6e9; border-top-color: var(--accent); }
.save-bar.dirty #save-status { color: #b07d10; font-weight: bold; }
.save-bar .btn-primary { width: auto; margin: 0; padding: 10px 28px; font-size: .95rem; }
.save-bar .btn-primary:disabled { background: #ddcfd3; }
.save-bar > div { min-width: 0; }
.save-bar .btn-primary { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
  .save-bar { padding: 10px 12px; gap: 10px; }
  .save-bar .btn-primary { padding: 10px 16px; }
}

/* 電話予約（代行登録）の目印（受取リストのバッジ） */
.st-staff { background: #eef4ff; color: #3b6bb5; }
.st-legacy { background: #f3efe6; color: #7a5b2b; }

/* 「？」ヘルプ：タップで説明が開く（スマホにはホバーが無いため） */
.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  border: 1.5px solid #d8b7be; background: #fff; color: #b76e7d;
  font-size: 12px; font-weight: bold; line-height: 1;
  margin-left: 6px; cursor: pointer; vertical-align: middle; padding: 0;
}
.tip:focus-visible { outline: 2px solid #b76e7d; outline-offset: 2px; }
.tip-pop {
  background: #fdf6f0; border: 1px solid #e8cfc0; border-radius: 8px;
  padding: 8px 12px; margin: 6px 0 2px; font-size: .82rem; font-weight: normal;
  color: #6b564a; line-height: 1.7; max-width: 560px; white-space: pre-line;
}

/* スマホ幅の調整：タブ・ボタンの文字が1文字ずつ折れてはみ出さないように（まりほ指摘 2026-08-26） */
@media (max-width: 480px) {
  .tab { white-space: nowrap; font-size: .9rem; }
  .date-nav { flex-wrap: wrap; }
  .admin .pill { padding: 8px 12px; }
  .rule-row, .ov-row, .prod-row { flex-wrap: wrap; }
  .rule-row input[type="number"] { width: 60px; }
}

/* 未記入などの注意書き（設定タブ） */
.small.warn { color: #c07422; background: #fff4e5; border-radius: 8px; padding: 6px 10px; margin-top: 6px; }


/* ---- お客様へのメール文面（設定タブ） ----
 * 見本は「店主が書いた文＝色を敷く／自動で作られる部分＝そのまま」で見分ける。
 * 説明文を足すのではなく見れば分かる形にする（商品ページのプレビューと同じ考え方）。
 * .lit は products.css と同じ見え方に揃える（触っている欄が見本のどこに出るか）。 */
.mail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mail-chips .mail-chip.on { background: var(--primary); border-color: var(--primary); font-weight: 600; }
.mail-ch { margin-bottom: 2px; }
.mail-preview {
  margin: 6px 0 0; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .84rem; line-height: 1.8; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.mail-preview .mail-mine { background: #fdeef1; border-radius: 5px; padding: 1px 4px; }
.mail-preview .lit { background: #fff3d6; box-shadow: 0 0 0 2px #e8b45c; border-radius: 6px; }

/* ---- 広い画面：メニューを左の縦並びにして、本文に横幅を渡す ----
 * 4項目しかないので畳まない（隠すと押す手間が増えるだけ）。
 * 狭い画面は従来どおり上の横並びのまま＝店頭で片手で押せる形を変えない。
 * PC版とスマホ版を別々に作らず、1つのHTMLが幅で並び替わる形にしている。 */
@media (min-width: 920px) {
  #app.admin { max-width: 1100px; }
  .admin-body {
    display: grid; grid-template-columns: 200px minmax(0, 1fr);
    gap: 26px; align-items: start;
  }
  .tabs { flex-direction: column; gap: 6px; margin: 0; position: sticky; top: 14px; }
  .tab { flex: none; text-align: left; padding: 11px 14px; }
  .admin-main { min-width: 0; }
}
@media print {
  .admin-body { display: block; }
}

/* ---- 狭い画面：メニューは畳んでおく（まりほ判断 2026-09-03） ----
 * 店名の行の ☰ に「いま見ている画面の名前」を出し、押すとメニューが縦に開く。
 * 選ぶと閉じる。文字を短くする案は効果が薄いと却下されたので、畳む形にした。 */
.menu-btn {
  display: none; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 6px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: inherit; font-size: 1.25rem; line-height: 1;
  cursor: pointer;
}
.menu-close { display: none; }
@media (max-width: 919px) {
  .menu-btn { display: inline-flex; }
  /* 右から出るドロワー。本文は動かさない（まりほ要望 2026-09-03）。
     メニューの外は薄暗くし、そこを触ると閉じる */
  .tabs {
    display: flex; flex-direction: column; gap: 6px; margin: 0;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 30;
    width: min(260px, 80vw); padding: 18px 12px; box-sizing: border-box;
    background: #fff; border-left: 2px solid var(--line);
    box-shadow: -8px 0 24px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .2s ease;
    visibility: hidden;
  }
  .admin-body.menu-open .tabs { transform: translateX(0); visibility: visible; }
  .admin-body::before {
    content: ""; position: fixed; inset: 0; z-index: 25;
    background: rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .admin-body.menu-open::before { opacity: 1; pointer-events: auto; }
  .tab { flex: none; text-align: left; padding: 12px 14px; }
  .tab-link { text-align: left; }
  .menu-close {
    display: block; align-self: flex-end; margin-bottom: 8px;
    background: none; border: none; color: var(--ink); font-family: inherit;
    font-size: 1rem; font-weight: bold; padding: 8px 6px; cursor: pointer;
  }
}

/* ---- 設定 › 見た目 ---- */
/* 2026-10-03：直前に余分な「}」があり、下の .th-cols が丸ごと無視されていた（9/3〜）。
   消したので、広い画面では左に設定・右に見本の2列になる（1200px〜。admin-layout.css でも幅を調整） */
.th-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
.th-sw { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.th-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.th-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.th-sw input[type="color"], .th-row input[type="color"] { width: 38px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; }
.th-hex { font-variant-numeric: tabular-nums; font-size: .85rem; color: #a08a8f; }
.th-adv { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.th-adv summary { cursor: pointer; padding: 8px 12px; font-size: .9rem; font-weight: bold; }
.th-advbody { padding: 4px 12px 10px; border-top: 1px solid var(--line); }
.th-row { display: grid; grid-template-columns: 150px 38px auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.th-row input[type="color"]:disabled { opacity: .45; cursor: default; }
.th-auto { font-size: .82rem; color: #7a6a6e; display: flex; align-items: center; gap: 4px; }
.th-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.th-type { border: 2px solid var(--line); border-radius: 10px; padding: 10px 6px; cursor: pointer; background: #fff; text-align: center; display: block; position: relative; }
.th-type input { position: absolute; opacity: 0; width: 0; height: 0; }
.th-type:has(input:checked) { border-color: var(--primary-deep); background: #fff5f7; }
.th-sample { font-size: 1.3rem; line-height: 1.2; display: block; }
.t-maru .th-sample { font-family: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", sans-serif; }
.t-kaku .th-sample { font-family: "Hiragino Sans", "Zen Kaku Gothic New", sans-serif; font-weight: bold; }
.t-min .th-sample { font-family: "Hiragino Mincho ProN", "Shippori Mincho", serif; }
.th-nm { font-size: .85rem; font-weight: bold; display: block; }
.th-ds { font-size: .72rem; color: #a08a8f; display: block; }
.th-logo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.th-logo-img { max-height: 48px; max-width: 200px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.th-actions { margin-top: 6px; }
.th-prev-cap { font-size: .8rem; color: #a08a8f; margin-bottom: 6px; }
#th-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
@media (min-width: 1200px) {
  .th-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .th-prev { position: sticky; top: 14px; }
}

/* ---- お客様の添付画像（2026-09-04） ---- */
.st-image { background: #eef7ee; color: #3f7a45; }
.st-preview { background: #f3edf8; color: #6f4b87; }
/* ---- Squareでの事前払い・返金（2026-10-02） ---- */
.st-prepaid { background: #eef4ff; color: #2f5d9e; }
.st-refund { background: #fff1e6; color: #b45309; }
.refund-box { margin-top: 10px; }
.refund-box .refund-list { margin: 4px 0 10px; padding-left: 1.2em; font-size: .88rem; }
.refund-box .field { max-width: 220px; }
.order-preview {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px;
  border: 1px solid #ece8e3; border-radius: 10px; background: #fff;
  color: #77706a; font-size: .78rem;
}
.order-preview img { width: 160px; height: 160px; object-fit: contain; border-radius: 8px; display: block; }
.order-images { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.order-images img {
  width: 110px; height: 110px; object-fit: cover;
  border: 1px solid #e6dcdf; border-radius: 8px; display: block;
}
@media print {
  .order-images img { width: 90px; height: 90px; }
}
.order-image { display: flex; flex-direction: column; gap: 3px; width: 110px; }
.order-image .cap { font-size: .72rem; color: #8a7a6a; line-height: 1.4; }
.kpreview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 8px 0; font-size: .72rem; font-weight: bold; }
.kpreview figure { margin: 0; display: flex; flex-direction: column; gap: 2px; width: 120px; }
.kpreview img { width: 120px; height: 120px; object-fit: contain; border: 1px solid #ddd; border-radius: 6px; }
/* デザインイメージは予約画面のプレビューと同じ見た目（薄いグレーの台＋ケーキの下に影・form-layout.css と同じ値） */
.design-img { background: #faf9f7; }
.design-img img, img.design-img { filter: drop-shadow(0 3px 6px rgba(48, 42, 38, .24)); }
.kpreview .kimage { width: 90px; font-weight: normal; }
.kpreview .kimage img { width: 90px; height: 90px; object-fit: cover; }
/* 予約カード左の小さなデザインイメージ（押すと大きく） */
.order-thumb {
  flex: none; width: 52px; height: 52px; padding: 0; border: 1px solid #ece8e3; border-radius: 8px;
  background: #faf9f7; overflow: hidden; cursor: zoom-in;
}
.order-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1px 3px rgba(48, 42, 38, .24)); }
.photo-badge { border: 0; font-family: inherit; line-height: inherit; cursor: zoom-in; }
.zoom-img { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.zoom-img.design-img { background: #faf9f7; border-radius: 8px; }
/* 画像をその場で大きく見る（order-gallery.js） */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20, 14, 16, .94);
  display: flex; align-items: center; justify-content: center; padding: 48px 56px 64px;
}
html.lightbox-open { overflow: hidden; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.lb-stage { border-radius: 8px; background: #fff; max-width: 100%; display: flex; }
.lb-stage.design-img { background: #faf9f7; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 8px; display: block; }
.lb-figure figcaption { color: #fff; font-size: .95rem; text-align: center; line-height: 1.5; overflow-wrap: anywhere; }
.lightbox button { color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 999px; cursor: pointer; font: inherit; }
.lb-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-foot { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 18px; color: #ddd; font-size: .85rem; }
.lb-foot { pointer-events: none; }
.lb-foot a { color: #ddd; pointer-events: auto; }
@media (max-width: 600px) {
  .lightbox { padding: 56px 8px 64px; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; height: 44px; }
}
@media print { .lightbox, .order-thumb { display: none !important; } }
@media (max-width: 600px) {
  .order-preview { align-items: flex-start; flex-direction: column; }
  .order-preview img { width: min(220px, 100%); height: auto; aspect-ratio: 1; }
}

.save-help { display: block; font-size: .72rem; color: #786c70; margin-top: 4px; line-height: 1.5; }

.date-shortcuts { display:flex;gap:8px;flex:0 0 auto; }

/* iPhoneのdate入力の最小幅が集計カードを押し広げないようにする。 */
.admin .report-filters .field { max-width:100%; }
.admin .report-filters input[type="date"] {
  display:block; width:100%; max-width:100%; min-width:0; min-inline-size:0;
  box-sizing:border-box; -webkit-appearance:none; appearance:none;
}
.admin .report-filters input[type="date"]::-webkit-date-and-time-value { min-width:0; text-align:left; }

.kitchen-period { margin:12px 0 20px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:6px; }
#kitchen-scope { font-weight:700;font-size:.88rem; }
#kitchen-scope:empty { display:none; }

@media (max-width:600px) {
  .settings-jumps { position:static; }
  .settings-jumps-links { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-jumps a { display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;white-space:normal;text-align:center; }
  .settings-anchor { scroll-margin-top:18px; }
}
/* 未確認をまとめて確認（絞り込み「全日の未確認」のときだけ出る） */
.bulk-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .92rem; }
.bulk-confirm.hidden { display: none; }
/* 店側からの受取日時の変更（予約カードの中） */
.slot-change .slot-change-row { display: flex; flex-wrap: wrap; gap: 12px; }
.slot-change .slot-change-row .field { flex: 1 1 160px; }
.slot-change .slot-notify-label { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.slot-change .slot-notify-label input { width: 18px; height: 18px; }
.slot-change .error:empty { display: none; }
/* お店のメモ（予約ごと・お客様には見えない） */
.st-note { background: #fff6d6; color: #7a5a00; }
.staff-note textarea { width: 100%; box-sizing: border-box; }
.staff-note .order-actions { align-items: center; gap: 10px; }
.staff-note-state { color: #666; }
.confirm-row .v.pre { white-space: pre-wrap; }
.kcard .kpay { margin: 4px 0 0; }
.kcard .knote { white-space: pre-wrap; margin: 6px 0 0; padding: 6px 8px; background: #fff6d6; border-radius: 6px; }

/* はじめにやること（新しく登録した店向け・onboarding.js）。次にやる1つだけ目立たせる */
/* 準備中（商品も予約もまだ無い）は空の予約カレンダー・予約・製造を出さない。日付欄は予約・製造でしか出ないので常に隠してよい */
body.onboarding-setup #date-nav, body.onboarding-setup #tab-calendar, body.onboarding-setup #tab-pickup { display: none !important; }
.onboarding { background: var(--boxbg); border: 2px solid var(--accent); border-radius: var(--r-lg); padding: 14px 16px; margin: 0 0 16px; }
.onboarding-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.onboarding-head h2 { font-size: 1.05rem; margin: 0; }
.onboarding-head .pill { flex-shrink: 0; }
.onboarding-count { font-size: .82rem; font-weight: normal; color: var(--mute); white-space: nowrap; }
.onboarding-help a { color: var(--accent); }
.onboarding > .small { margin: 6px 0 0; }
.onboarding-steps { list-style: none; margin: 10px 0 0; padding: 0; }
.onboarding-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.onboarding-steps li:first-child { border-top: 0; }
.onboarding-steps li > div { min-width: 0; flex: 1; }
.onboarding-mark { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: bold; border: 2px solid var(--line); color: var(--mute); }
.onboarding-steps li.is-next .onboarding-mark { border-color: var(--accent); background: var(--accent); color: #fff; }
.onboarding-steps li.is-done .onboarding-mark { border: 0; }
.onboarding-steps li.is-done strong { color: var(--mute); font-weight: normal; text-decoration: line-through; }
.onboarding-time { font-size: .78rem; color: var(--mute); white-space: nowrap; }
.onboarding-steps .small { margin: 4px 0 8px; }
.onboarding-go { width: auto; max-width: 100%; padding: 10px 16px; white-space: normal; }
.onboarding-link { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--accent); text-decoration: underline; cursor: pointer; }
.onboarding-help { margin-top: 8px !important; }
.onboarding-flash { animation: onboarding-flash 2.6s ease-out; }
@keyframes onboarding-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .onboarding-flash { animation: none; box-shadow: 0 0 0 3px var(--accent); } }

/* ---------- 予約カレンダー（order-calendar.js・2026-10-05） ---------- */
.oc-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.oc-head h2 { margin: 0; font-size: 1.15rem; min-width: 8.5em; text-align: center; }
.oc-head .pill { margin-left: auto; }
.cal-summary { margin: 0 0 10px; font-size: .95rem; }
.oc-unconfirmed-total { color: #d0455f; font-weight: bold; }
.order-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.oc-wd { text-align: center; font-size: .8rem; color: var(--mute); padding: 2px 0; }
.oc-wd.sun { color: #d0455f; }
.oc-wd.sat { color: #4a76b8; }
.oc-day {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  min-height: 84px; padding: 6px 7px; text-align: left; font-family: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
}
.oc-day:hover { border-color: var(--accent); }
.oc-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.oc-num { font-size: .85rem; font-weight: bold; }
.oc-day.sun .oc-num { color: #d0455f; }
.oc-day.sat .oc-num { color: #4a76b8; }
.oc-day.today { border: 2.5px solid var(--accent); }
.oc-day.past { background: #fbf9f7; }
.oc-day.past .oc-count { color: var(--mute); }
.oc-day.closed { background: #f1edea; }
.oc-day.full { background: #fff3f4; border-color: #e8b7c0; }
.oc-count { font-size: 1.25rem; font-weight: bold; line-height: 1.1; }
.oc-count small { font-size: .7rem; font-weight: normal; }
.oc-count.zero { color: #c9bfbb; font-size: .95rem; font-weight: normal; }
.oc-tag { position: absolute; top: 6px; right: 6px; font-size: .7rem; color: var(--mute); }
.oc-tag.oc-full { color: #d0455f; font-weight: bold; }
.oc-new {
  align-self: flex-start; margin-top: auto; padding: 1px 6px; border-radius: 999px;
  background: #ffe9ec; color: #d0455f; font-size: .72rem; font-weight: bold; white-space: nowrap;
}
.oc-new .narrow { display: none; }
.oc-legend { margin-top: 10px; }
@media (max-width: 520px) {
  .order-calendar { gap: 3px; }
  .oc-day { min-height: 64px; padding: 4px 3px; }
  .oc-num { font-size: .75rem; }
  .oc-count { font-size: 1rem; }
  .oc-count small { display: block; font-size: .6rem; }
  .oc-tag { top: 4px; right: 3px; font-size: .62rem; }
  .oc-new { padding: 0 4px; font-size: .62rem; }
  .oc-new .wide { display: none; }
  .oc-new .narrow { display: inline; }
}

/* 配送（2026-10-05） */
.st-delivery { background: #eef8f1; color: #24723f; }
.st-unpaid { background: #fff1e6; color: #b45309; }
.dl-stripe-status { font-weight: normal; margin: 6px 0; }
.dl-stripe-status.ok { color: #24723f; }
.dl-fees { width: 100%; border-collapse: collapse; margin-top: 6px; font-weight: normal; }
.dl-fees th, .dl-fees td { padding: 6px 4px; border-bottom: 1px solid var(--line, #e6e0da); text-align: left; vertical-align: middle; }
.dl-fees thead th { font-size: .8rem; color: var(--mute); white-space: nowrap; }
.dl-fees tbody th { font-weight: bold; }
.dl-fees .dl-region { display: block; }
.dl-fees .dl-prefs { display: block; font-size: .72rem; font-weight: normal; color: var(--mute); }
.dl-fees input[data-fee] { width: 90px; }
.dl-fees td { white-space: nowrap; }
.field .dl-fees td input:not([type="checkbox"]) { display: inline-block; width: 90px; margin-right: 4px; }
.field .dl-fees td input[data-days] { width: 60px; }
.dl-fees tr.dl-off th, .dl-fees tr.dl-off td:not(:first-child) { color: var(--mute); opacity: .55; }
.dl-fee-tools { margin: 6px 0 2px; }
.dl-need-stripe { margin: 4px 0 10px; }
.dl-windows { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-weight: normal; }
#settings-delivery .warn { display: block; color: #b45309; }
/* 製造カード「A4に6件」（2026-10-10）：2列×3段のマス・切り取り線つき・マスをまたがない（admin.js の layoutKitchenCards） */
.print-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.card-size-field { display: flex; align-items: center; gap: 6px; font-size: .82rem; white-space: nowrap; }
.card-size-field select { padding: 4px 6px; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; }
.kcard { break-inside: avoid; page-break-inside: avoid; }
.kcards-six .kpage {
  display: grid; grid-template-columns: repeat(2, 95mm); grid-template-rows: repeat(3, 92mm);
  width: 190mm; height: 276mm; break-before: page; page-break-before: always; break-inside: avoid;
}
.kcards-six .kcard {
  --ks: 1; box-sizing: border-box; margin: 0; border: 0; border-radius: 0; outline: 1px dashed #999; outline-offset: -.5px;
  padding: 3mm 3.5mm; overflow: hidden; font-size: calc(10pt * var(--ks)); line-height: 1.35; background: #fff;
}
.kcards-six .kcard .khead { flex-wrap: wrap; gap: 0 8px; font-size: 1.05em; border-bottom: 1px solid #ccc; padding-bottom: 1mm; }
.kcards-six .kcard ul { margin: 1.5mm 0 0; padding-left: 1.3em; }
.kcards-six .kcard .plate, .kcards-six .kcard .knote { margin-top: 1.5mm; padding: .6mm 1.5mm; }
.kcards-six .kcard p { margin: 1.5mm 0 0; }
.kcards-six .kcard .kpay { margin-top: 1mm; }
.kcards-six .kpreview { margin: 1.5mm 0; gap: 1.5mm; font-size: .75em; }
.kcards-six .kpreview figure { width: 8.5em; }
.kcards-six .kpreview img { width: 8.5em; height: 8.5em; }
.kcards-six .kpreview .kimage, .kcards-six .kpreview .kimage img { width: 6em; }
.kcards-six .kpreview .kimage img { height: 6em; }
.kcard-probe { position: absolute; left: -10000px; top: 0; visibility: hidden; }
.kcard-probe .kcard { display: block; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  .kcards-six .kpage:last-child { break-after: auto; }
  /* マスは用紙の内側190mmちょうど。画面用の左右の余白があると右の列が紙からはみ出す */
  #app.admin { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; }
  .kcard, .kpreview img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 製造数の内訳（2026-10-10）：商品×サイズの行の下に「└ シャインマスカット 1」 */
.kitchen-table .breakdown-row td { font-size: .86rem; padding-top: 4px; padding-bottom: 4px; color: #4a4040; }
.kitchen-table .breakdown-row .qty-cell { font-size: .95rem; }
.kitchen-breakdown-setting { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; }
.kitchen-breakdown-setting .pill { font-size: .82rem; padding: 5px 12px; }
.kb-panel { flex-basis: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.kb-panel p { margin: 0 0 8px; }
.kb-groups { margin-bottom: 10px; }
.kb-groups .kb-head { font-size: .82rem; font-weight: bold; margin: 6px 0 4px; }
.kb-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.kb-list label, .kb-combine { display: flex; align-items: center; gap: 4px; font-size: .9rem; }
.kb-combine { margin-bottom: 10px; }
.kb-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 狭い画面：見出しの横に印刷ボタンと「製造カード」を並べると見出しが1〜2文字幅に潰れる（2026-10-10 まりほ実機）。
 * 見出しを1行使い、ボタンと選択はその下に横並びで回り込ませる。 */
@media (max-width: 640px) {
  .daily-section-heading { flex-wrap: wrap; }
  .daily-section-heading > div:first-child { flex: 1 1 100%; }
  .print-actions { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px; }
  .card-size-field select { max-width: 100%; }
}
/* 特定の日だけの上限（2026-10-10） */
.date-limit-box { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #ddd; }
.date-limit-box h4 { margin: 0 0 8px; font-size: .95rem; }

/* 上限の食い違いの注意（limit-check.js・2026-10-10） */
.limit-warn { margin: 10px 0; padding: 10px 14px; border: 1px solid #e3b75a; border-radius: 8px; background: #fff8e6; color: #5c4210; font-size: .9rem; }
.limit-warn > p:first-child { margin: 0 0 4px; font-weight: 700; }
.limit-warn ul { margin: 0 0 6px; padding-left: 1.2em; }
.limit-warn li { margin: 4px 0; }

/* 製造数をたたむ（画面だけ。印刷では常に出す） */
@media screen {
  .kitchen-folded #kitchen-summary,
  .kitchen-folded .kitchen-breakdown-setting { display: none; }
}

/* 見積もりの内訳・質問（2026-10-20） */
.quote-form .field-label { font-weight: 700; margin: 14px 0 6px; }
.quote-form .field-label small { display: block; font-weight: 400; color: var(--muted, #8a7a80); font-size: .82rem; margin-top: 2px; }
.qi-row, .qc-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 36px; gap: 6px; margin-bottom: 6px; }
.qi-row input, .qc-row input, .qq-text { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--line, #e5dce0); border-radius: 8px; }
.qi-amount, .qc-amount { text-align: right; }
.qi-del { border: 1px solid var(--line, #e5dce0); background: #fff; border-radius: 8px; cursor: pointer; font-size: 1rem; color: #a0525f; }
.quote-form .btn-secondary { width: auto; display: inline-block; padding: 6px 14px; font-size: .88rem; margin: 2px 0 6px; }
.qi-total { font-weight: 700; font-size: 1.05rem; margin: 6px 0 4px; }
.qq { border: 1px solid var(--line, #e5dce0); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: #fffdfd; }
.qq-head { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; }
.qq-type { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 6px; font-size: .9rem; }
.qq-type label { display: inline-flex; align-items: center; gap: 4px; }
.qc-list { margin-left: 8px; }

.status-badge.st-change { background: #fdf0dc; color: #8a5a00; }
.quote-change-note { background: #fdf0dc; color: #4a3000; border: 2px solid #f0c27a; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: .95rem; line-height: 1.7; }
/* 見積もりの表示：見出しごとに分ける（2026-11-06） */
.qv-title { font-weight: 700; font-size: 1.02rem; margin: 0 0 8px; }
.qv-kv { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 10px; padding: 4px 0; }
.qv-k { color: #7a6a70; font-size: .88rem; }
.qv-v { white-space: pre-wrap; overflow-wrap: anywhere; }
.qv-foot { margin: 8px 0 0; font-weight: 700; }
.quote-view { border: 1px solid var(--line, #e5dce0); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: #fff; line-height: 1.7; }
.qv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.qv-head .qv-title { margin: 0; }
.qv-state { font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.qv-wait { background: #fde8e8; color: #9b1c1c; }
.qv-ok { background: #e3f4e8; color: #1f6b3a; }
.qv-lines { border-top: 1px solid var(--line, #e5dce0); margin-bottom: 8px; }
.qv-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line, #e5dce0); }
.qv-line span:last-child { white-space: nowrap; }
.qv-total { font-weight: 700; }
.qv-desc { white-space: pre-wrap; }
.qv-sub { font-weight: 700; margin: 12px 0 4px; }
.qv-qs { margin: 0 0 6px; padding-left: 1.4em; }
.qv-qs li { margin-bottom: 10px; }
.qv-qs span { display: block; }
.qv-q { font-weight: 600; }
.qv-opts { color: #7a6a70; font-size: .86rem; }
.qv-a { font-weight: 700; color: #1f6b3a; }
.qv-a.qv-none { color: #9b1c1c; font-weight: 600; }
@media (max-width: 560px) { .qv-kv { grid-template-columns: 1fr; } }

/* 別添えあり（完成イメージに描かれないもの・2026-10-20） */
.detached-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff1e0; border: 2px solid #f0a64a; color: #7a4300; font-weight: 700; line-height: 1.6; }
.detached-note small { display: block; font-weight: 400; font-size: .82rem; }
.kcard .detached-note { padding: 6px 8px; margin: 6px 0; font-size: .95rem; }
@media print { .detached-note { border: 2px solid #000; background: none; color: #000; } }

/* 見積もりの質問：種類・見本画像・金額の出し入れ（2026-10-22） */
.qq-type select { font: inherit; padding: 6px 8px; border: 1px solid var(--line, #e5dce0); border-radius: 8px; }
.qq-type .btn-secondary { margin: 0; }
.qq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 6px; }
.qq-tools .btn-secondary { margin: 0; }
.qq-price { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; }
.qq.no-price .qc-amount { display: none; }
.qq.no-price .qc-row { grid-template-columns: minmax(0, 1fr) 36px; }
.qq-img { position: relative; display: inline-block; margin: 2px 0 6px; }
.qq-img img { max-width: 220px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line, #e5dce0); display: block; }
.qq-img .qi-del { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; padding: 0; }

/* お試し中のプラン選び（ご契約・お支払い・2026-10-26） */
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.plan-card { border: 2px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; background: var(--boxbg, #fff); }
.plan-card.is-current { border-color: var(--selbox); background: var(--sel); }
.plan-card .plan-name { font-weight: 700; font-size: 1.1rem; margin: 0; }
.plan-card .plan-price { font-weight: 700; margin: 4px 0 8px; }
.plan-card .plan-price span { display: block; font-weight: 400; font-size: .82rem; color: var(--mute); }
.plan-card ul { margin: 0 0 10px; padding-left: 1.2em; font-size: .9rem; line-height: 1.7; }
.plan-card .plan-current { display: none; margin: 0; font-weight: 700; color: var(--selbox); }
.plan-card.is-current .plan-current { display: block; }
.plan-card.is-current .plan-pick { display: none; }
@media (max-width: 640px) { .plan-cards { grid-template-columns: 1fr; } }

/* Standardの支払いの間隔（2026-10-26） */
.billing-term { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 16px 4px; margin: 0 0 14px; }
.billing-term legend { font-weight: 700; padding: 0 4px; }
.billing-term label { display: block; padding: 6px 0; cursor: pointer; }
.billing-term label input { margin-right: 8px; }
.billing-term label span { display: block; margin-left: 1.9em; font-size: .85rem; color: var(--mute); }

/* お客様で探す（2026-11-24） */
.order-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.order-search input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 1rem; background: #fff; }
.order-search .pill.hidden { display: none; }
