/* 261008 おせち予約（試作）。バイキングの見た目には影響しないよう、osc- で始まる名前だけを使う */
:root {
  --osc-red: #8f2f2a;
  --osc-red-soft: #fbeeec;
  --osc-gold: #a07a2c;
  --osc-gold-soft: #faf3e3;
}
/* タブが3つになっても均等に並ぶように（非表示のタブは数えない） */
.tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabs.with-osechi { grid-template-columns: 2fr 2fr 1fr; grid-auto-flow: row; } /* 261017 おせちタブは細く（4:4:2） */
.tabs.with-osechi #osechiAdminTab { padding: 10px 4px; font-size: 13px; }

/* お客様カレンダー上部の入口 */
.osc-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px; padding: 12px; border-radius: var(--radius);
  background: var(--osc-gold-soft); border: 1px solid #e3cf9f;
}
.osc-entry .osc-entry-t { font-weight: 700; font-size: 15px; color: var(--osc-red); }
.osc-entry .osc-entry-s { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.osc-entry button {
  flex: none; min-height: 44px; border-radius: var(--radius); border: none;
  background: var(--osc-red); color: #fff; padding: 8px 12px; font-weight: 700; font-size: 14px;
}
.osc-entry.closed button { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 400; }

/* お客様のおせち画面 */
.osc-hero {
  border-radius: 10px; padding: 16px 14px 12px; margin-bottom: 14px;
  background: linear-gradient(160deg, #fffaf0 0%, #f9edd8 100%); border: 1px solid #e3cf9f;
}
.osc-kicker { font-size: 12px; color: var(--osc-gold); font-weight: 700; letter-spacing: .08em; }
.osc-title { margin: 2px 0 10px; font-size: 22px; color: var(--osc-red); }
.osc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.osc-facts div { background: rgba(255,255,255,.75); border-radius: 6px; padding: 6px 4px; text-align: center; }
.osc-facts dt { font-size: 11px; color: var(--muted); }
.osc-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; line-height: 1.35; }
.osc-h { font-size: 15px; margin: 18px 0 8px; padding-left: 8px; border-left: 4px solid var(--osc-red); }
.osc-item {
  display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.osc-item.has-qty { border-color: var(--osc-red); box-shadow: inset 0 0 0 1px var(--osc-red); background: #fffdfb; }
.osc-item.sold-out { background: #f4f1ea; }
.osc-item-main { flex: 1; min-width: 0; }
.osc-item-name { font-weight: 700; font-size: 15px; line-height: 1.4; }
.osc-item-desc { font-size: 12px; color: var(--muted); }
.osc-item-price { font-size: 14px; margin-top: 2px; }
.osc-sym { display: inline-block; font-size: 11px; border-radius: 999px; padding: 1px 8px; margin-top: 4px; background: var(--leaf-soft); color: var(--leaf); }
.osc-sym.low { background: #f8ead7; color: var(--curry); }
.osc-sym.out { background: #e8e3d8; color: #6b665c; }
.osc-stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.osc-stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 22px; line-height: 1; color: var(--ink);
}
.osc-stepper button:disabled { opacity: .35; }
.osc-stepper .osc-qty { width: 28px; text-align: center; font-size: 20px; font-weight: 700; }
.osc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 16px 0 6px; padding: 12px; border-radius: var(--radius); background: var(--osc-red-soft);
}
.osc-total strong { font-size: 22px; color: var(--osc-red); }
.osc-total small { display: block; font-size: 11px; color: var(--muted); }
.osc-primary { background: var(--osc-red); }
.osc-links { display: flex; gap: 8px; margin-top: 10px; }
.osc-links button { font-size: 14px; }
.osc-state { margin: 0 0 12px; padding: 12px; border-radius: var(--radius); background: #f4f1ea; color: var(--ink); font-size: 14px; line-height: 1.6; }
.osc-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius); background: #fff; border: 1px dashed #d9c9a3; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.osc-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0; font-size: 14px; line-height: 1.8; }
.osc-summary .osc-sum-row { display: flex; justify-content: space-between; gap: 8px; }
.osc-summary .osc-sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; font-weight: 700; }
.success-card.osc { border-color: #e3cf9f; background: var(--osc-gold-soft); }
.success-card.osc .success-mark { background: var(--osc-red); }
.success-card.osc h2 { color: var(--osc-red); }

/* 店側「おせち」タブ（スマホで見る前提） */
.osc-admin { padding-bottom: 40px; }
.osc-statebar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius); font-weight: 700; font-size: 14px;
}
.osc-statebar.on { background: var(--leaf-soft); color: var(--leaf); border: 1px solid #b9d9c0; }
.osc-statebar.off { background: #f4f1ea; color: #6b665c; border: 1px solid var(--line); }
.osc-statebar.warn { background: #f8ead7; color: var(--curry); border: 1px solid #e6c891; }
.osc-statebar button { flex: none; min-height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 6px 10px; font-size: 13px; }
.osc-meta { font-size: 12px; color: var(--muted); margin: 8px 2px 12px; line-height: 1.6; }
.osc-stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.osc-stock { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 6px; background: #fff; text-align: center; }
.osc-stock .n { font-size: 11px; line-height: 1.35; min-height: 30px; font-weight: 700; }
.osc-stock .r b { font-size: 26px; line-height: 1.1; }
.osc-stock .r span { font-size: 11px; color: var(--muted); margin-left: 2px; }
.osc-stock .s { font-size: 11px; color: var(--muted); }
.osc-stock .bar { height: 5px; border-radius: 3px; background: #ece7dc; margin: 5px 0; overflow: hidden; }
.osc-stock .bar i { display: block; height: 100%; background: var(--osc-red); }
.osc-stock.out { background: #f4f1ea; }
.osc-stock .osc-sym { margin-top: 2px; }
.osc-totals { font-size: 13px; margin: 10px 2px; }
.osc-time-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 4px 0 12px; }
.osc-time-table th, .osc-time-table td { border: 1px solid var(--line); padding: 6px 4px; text-align: center; }
.osc-time-table th { background: #f7f4ed; font-weight: 700; }
.osc-actionbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.osc-actionbar { flex-wrap: nowrap; align-items: stretch; }
.osc-actionbar .admin-action-btn.main { flex: 1 1 auto; font-size: 13px; padding: 6px 8px; background: var(--osc-red); color: #fff; border-color: var(--osc-red); }
/* 261017 設定・CSV・最新は小さな歯車にまとめる（先方は普段使わない） */
.osc-tools { position: relative; flex: none; }
.osc-tools > summary { list-style: none; width: 40px; height: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 18px; cursor: pointer; }
.osc-tools > summary::-webkit-details-marker { display: none; }
.osc-tools[open] > summary { background: #f7f4ed; }
.osc-tools-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); padding: 4px; display: flex; flex-direction: column; }
.osc-tools-menu button { border: 0; background: none; text-align: left; font-size: 13px; color: var(--ink); padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.osc-tools-menu button:hover { background: #f7f4ed; }
.osc-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.osc-filter button { flex: none; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 4px 12px; font-size: 13px; }
.osc-filter button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.osc-order { align-items: flex-start; padding: 10px; margin-bottom: 8px; gap: 10px; }
.osc-order .osc-order-time { flex: none; width: 46px; font-weight: 700; font-size: 15px; color: var(--osc-red); padding-top: 2px; }
.osc-order .osc-order-name { font-size: 17px; font-weight: 700; line-height: 1.35; }
.osc-order .osc-order-kana { font-size: 12px; color: var(--muted); }
.osc-order .osc-order-items { font-size: 14px; margin-top: 4px; line-height: 1.5; }
.osc-order .osc-order-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.osc-order .osc-order-sub a { color: var(--leaf); }
.osc-order .board-check { width: 48px; height: 48px; min-height: 48px; font-size: 24px; }
.osc-order.canceled { opacity: .55; background: #f4f1ea; }
.osc-src { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; font-weight: 400; }
.osc-src.line { background: #e3f4e6; color: #1f7a34; }
.osc-src.store { background: #f2e7ef; color: var(--plum); }
.osc-src.phone { background: #e7eef7; color: #1f5f9a; }
.osc-picked { font-size: 11px; color: var(--leaf); font-weight: 700; margin-left: 4px; }
.osc-qty-grid { display: grid; gap: 6px; }
.osc-qty-row { display: flex; align-items: center; gap: 8px; }
.osc-qty-row label { flex: 1; font-size: 13px; line-height: 1.4; }
.osc-qty-row input, .osc-qty-row select { width: 72px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; font-size: 16px; text-align: right; }
.osc-item-setting { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin: 8px 0; }
.osc-item-setting .field { margin: 6px 0; }
.osc-item-setting .field-pair { grid-template-columns: 1fr 1fr 1fr; }
.osc-summary { text-align: left; background: #fff; }
.osc-summary .osc-sum-row > :last-child { white-space: nowrap; }
.osc-order .osc-order-time { width: 54px; font-size: 14px; white-space: nowrap; }

/* 261008 お品書きリンク */
.osc-menu-link { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 12px; padding: 12px 14px; border: 1px solid #e3cf9f; border-radius: var(--radius); background: #fff; color: var(--osc-red); font-weight: 700; text-decoration: none; font-size: 15px; }
.osc-menu-link span { font-size: 20px; line-height: 1; }

/* 261017 個数は0〜4のボタンで選ぶ（品名の下に並べる） */
.osc-qty-row { flex-wrap: wrap; }
.osc-qty-row label { flex-basis: 100%; }
.osc-qty-row .radio-group { gap: 6px; }
.osc-qty-row .radio-chip { min-width: 48px; }

/* 261018 受取チェック表（A4印刷・PDF） */
#oscSheet { position: fixed; inset: 0; z-index: 200; background: #fff; overflow: auto; color: #000; }
.osc-sheet-bar { position: sticky; top: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: #f3efe6; font-size: 13px; }
.osc-sheet-bar button { font-size: 14px; font-weight: 700; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.osc-sheet-bar button.go { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.osc-sheet-page { max-width: 190mm; margin: 0 auto; padding: 12px; font-size: 11pt; font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
.osc-sheet-page h1 { font-size: 16pt; margin: 0 0 2px; }
.osc-sheet-page .sub { font-size: 9pt; margin-bottom: 8px; }
.osc-sheet-page h2 { font-size: 13pt; margin: 12px 0 4px; border-left: 5px solid #000; padding-left: 6px; }
.osc-sheet-page h2 span { font-size: 9.5pt; font-weight: 400; }
.osc-sheet-page table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.osc-sheet-page th, .osc-sheet-page td { border: 1px solid #000; padding: 4px 5px; vertical-align: middle; }
.osc-sheet-page th { background: #eee; font-size: 9pt; }
.osc-sheet-page tr { break-inside: avoid; page-break-inside: avoid; }
.osc-sheet-page td { height: 13mm; font-size: 10pt; line-height: 1.3; }
.osc-sheet-page small { font-size: 8pt; }
.osc-sheet-page th:nth-child(1), .osc-sheet-page .ck { width: 13mm; text-align: center; }
.osc-sheet-page th:nth-child(2), .osc-sheet-page .no { width: 8mm; text-align: center; }
.osc-sheet-page th:nth-child(3) { width: 30mm; }
.osc-sheet-page th:nth-child(4) { width: 29mm; }
.osc-sheet-page th:nth-child(5) { width: 31mm; }
.osc-sheet-page th:nth-child(6) { width: 22mm; }
.osc-sheet-page th:nth-child(7) { width: 11mm; }
.osc-sheet-page .yen { text-align: right; white-space: nowrap; }
.osc-sheet-page .tel { white-space: nowrap; font-size: 9.5pt; }
.osc-sheet-page .src { text-align: center; font-size: 8.5pt; }
.osc-sheet-page .box { display: inline-block; width: 8mm; height: 8mm; border: 1.5px solid #000; font-size: 14pt; line-height: 8mm; }
.osc-sheet-page .none { font-size: 10pt; margin: 4px 0 0 4px; }
.osc-sheet-page .foot { margin-top: 10px; font-size: 9pt; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body.osc-sheet-open > *:not(#oscSheet) { display: none !important; }
  body.osc-sheet-open { background: #fff !important; }
  #oscSheet { position: static; overflow: visible; }
  .osc-sheet-bar { display: none !important; }
  .osc-sheet-page { max-width: none; padding: 0; }
}
