/**
 * OIKAZE Admin UI — style.css
 *
 * 構成:
 *  1. CSS変数 / リセット
 *  2. レイアウト（header / sidebar / main / bottom-nav）
 *  3. 共通コンポーネント（badge / button / card / form）
 *  4. ダッシュボード（db-*）
 *  5. 予約一覧（bk-*）
 *  6. 予約詳細（bd-*）
 *  7. 売上管理（sl-*）
 *  8. アニメーション
 */

/* ============================================================
   0. 売上モードトグル（header.php）
============================================================ */
.oz-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #4154f1;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.oz-mode-toggle:hover { background: #f0f3ff; color: #4154f1; }
.oz-plan-normal { background: #e0e7ff; color: #3730a3; }
.oz-plan-sales  { background: #dcfce7; color: #14532d; }

/* ============================================================
   1. CSS変数 / リセット
============================================================ */
:root {
  /* ブランドカラー */
  --oz-primary:      #4154f1;
  --oz-primary-dim:  #3345d0;
  --oz-primary-bg:   #eef0fe;
  --oz-primary-soft: #dbe4ff;

  /* サーフェス */
  --oz-surface:      #ffffff;
  --oz-surface-2:    #f8f9fc;
  --oz-bg-light:     #f9fafb;
  --oz-bg-muted:     #f3f4f6;

  /* ボーダー */
  --oz-border:       #e5e7eb;
  --oz-border-light: #f0f2f5;

  /* テキスト */
  --oz-text-dark:    #1a1f36;
  --oz-text-sub:     #6b7280;
  --oz-text-light:   #6b7280;
  --oz-text-muted:   #9ca3af;

  /* セマンティックカラー */
  --oz-green:        #16a34a;
  --oz-green-bg:     #dcfce7;
  --oz-green-bd:     #bbf7d0;
  --oz-amber:        #d97706;
  --oz-amber-bg:     #fef3c7;
  --oz-amber-bd:     #fde68a;
  --oz-red:          #dc2626;
  --oz-red-bg:       #fee2e2;
  --oz-red-bd:       #fecaca;
  --oz-blue:         #1d4ed8;
  --oz-blue-bg:      #dbeafe;
  --oz-blue-bd:      #bfdbfe;

  /* レイアウト */
  --oz-header-h:     56px;
  --oz-nav-h:        64px;
  --oz-sidebar-w:    260px;

  /* その他 */
  --oz-radius:       12px;
  --oz-radius-sm:    8px;
  --oz-shadow:       0 1px 3px rgba(26,31,54,.06), 0 4px 16px rgba(26,31,54,.06);
  --oz-shadow-hover: 0 4px 16px rgba(1,41,112,.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--oz-surface-2);
  color: var(--oz-text-dark);
}

a {
  color: var(--oz-primary);
  text-decoration: none;
}
a:hover { color: var(--oz-primary-dim); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', sans-serif;
}


/* ============================================================
   2. レイアウト
============================================================ */

/* ── トップヘッダー ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--oz-header-h);
  background: var(--oz-surface);
  border-bottom: 1px solid var(--oz-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 300;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* ロゴ */
.oz-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.oz-logo-mark {
  width: 32px; height: 32px;
  background: var(--oz-primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.oz-logo-mark i { color: #fff; font-size: 16px; }
.oz-logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--oz-text-dark);
  letter-spacing: -0.3px;
  line-height: 1;
}
.oz-logo-store {
  font-size: 10px; font-weight: 500;
  color: var(--oz-text-muted);
  margin-top: 1px;
  max-width: 120px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ヘッダー右アクション */
.oz-header-actions {
  display: flex; align-items: center; gap: 2px;
}
.oz-icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px; border: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--oz-text-sub); font-size: 20px;
  cursor: pointer; transition: background .15s;
  position: relative;
  text-decoration: none;
}
.oz-icon-btn:hover, .oz-icon-btn:active {
  background: var(--oz-surface-2);
  color: var(--oz-text-dark);
}

/* プランバッジ */
.oz-plan-badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 99px;
  font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.oz-plan-free { background: var(--oz-amber-bg); color: #92400e; }
.oz-plan-paid { background: var(--oz-green-bg); color: #14532d; }

/* プロフィールボタン */
.oz-profile-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px 4px 4px;
  border-radius: 10px; border: none;
  background: none; cursor: pointer;
  transition: background .15s;
  position: relative;
}
.oz-profile-btn:hover { background: var(--oz-surface-2); }
.oz-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.oz-store-label {
  font-size: 12px; font-weight: 600;
  color: var(--oz-text-dark);
  max-width: 80px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ドロップダウン */
.oz-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26,31,54,.12);
  overflow: hidden;
  display: none;
  z-index: 400;
  animation: ozDropIn .18s ease both;
}
.oz-dropdown.open { display: block; }

@keyframes ozDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.oz-dropdown-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--oz-border);
}
.oz-dropdown-store {
  font-size: 13px; font-weight: 700;
  color: var(--oz-text-dark); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oz-dropdown-plan { display: inline-flex; }
.oz-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--oz-text-sub);
  text-decoration: none;
  transition: background .12s;
  border-top: 1px solid var(--oz-border);
}
.oz-dropdown-item:hover { background: var(--oz-surface-2); color: var(--oz-text-dark); }
.oz-dropdown-item i { font-size: 16px; }
.oz-dropdown-item.danger { color: var(--oz-red); }
.oz-dropdown-item.danger:hover { background: var(--oz-red-bg); }

/* ── サイドバーオーバーレイ ── */
.oz-sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(26,31,54,.35);
  z-index: 199;
  display: none;
  backdrop-filter: blur(2px);
}
.oz-sidebar-overlay.open { display: block; }

/* ── サイドバー ── */
.sidebar {
  position: fixed;
  top: var(--oz-header-h);
  left: 0; bottom: 0;
  width: var(--oz-sidebar-w);
  background: var(--oz-surface);
  border-right: 1px solid var(--oz-border);
  z-index: 200;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
  padding: 16px 12px;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
.sidebar.open { transform: translateX(0); }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* PC常時表示 */
@media (min-width: 1200px) {
  .sidebar { transform: translateX(0); }
  #main, #footer { margin-left: var(--oz-sidebar-w); }
  .oz-sidebar-overlay { display: none !important; }
  .oz-hamburger { display: none !important; }
}

/* SP：ハンバーガー・プランバッジ非表示 */
@media (max-width: 1199px) {
  .oz-hamburger { display: none !important; }
  .oz-plan-badge { display: none !important; }
}

/* サイドバーナビ */
.sidebar-nav,
.sidebar-nav ul,
.sidebar-nav li {
  padding-left: 0 !important;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { padding: 0; margin: 0; list-style: none; }
.sidebar-nav .nav-item { margin-bottom: 5px; }

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--oz-primary);
  transition: 0.3s;
  background: #f6f9ff;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--oz-primary);
}

.sidebar-nav .nav-link.collapsed { color: #012970; background: #fff; }
.sidebar-nav .nav-link.collapsed i { color: #899bbd; }

.sidebar-nav .nav-link:hover { color: var(--oz-primary); background: #f6f9ff; }
.sidebar-nav .nav-link:hover i { color: var(--oz-primary); }

.sidebar-nav .nav-link .bi-chevron-down { margin-right: 0; transition: transform 0.2s ease-in-out; }
.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down { transform: rotate(180deg); }

.sidebar-nav .nav-content { padding: 5px 0 0 0; margin: 0; list-style: none; }

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i { font-size: 6px; margin-right: 8px; line-height: 0; border-radius: 50%; }

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active { color: var(--oz-primary); }

.sidebar-nav .nav-content a.active i { background-color: var(--oz-primary); }

.pricing-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1f36;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f2f5;
  background: #f8f9fc;
}

/* ── メインコンテンツ ── */
#main {
  /* 既存テーマの .main が margin-top:60px / padding:20px 30px を持つため上書き */
  margin-top: var(--oz-header-h) !important;
  padding: 20px 24px calc(var(--oz-nav-h) + 16px) !important;
}
@media (min-width: 1200px) {
  #main { padding: 20px 24px 24px !important; }
}

/* ── ボトムナビゲーション（SP専用） ── */
.oz-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--oz-nav-h);
  background: var(--oz-surface);
  border-top: 1px solid var(--oz-border);
  display: flex; align-items: stretch;
  z-index: 300;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 1200px) {
  .oz-bottom-nav { display: none; }
}

.oz-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--oz-text-muted);
  font-size: 9.5px; font-weight: 500;
  border: none; background: none; cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: color .15s;
}
.oz-nav-item i { font-size: 21px; }
.oz-nav-item.active { color: var(--oz-primary); }

.oz-nav-fab-wrap {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}
.oz-nav-fab {
  position: absolute; top: -18px;
  width: 50px; height: 50px;
  background: var(--oz-primary);
  border-radius: 15px; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(65,84,241,.4);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.oz-nav-fab:active {
  transform: scale(.93);
  box-shadow: 0 2px 8px rgba(65,84,241,.3);
}
.oz-nav-fab i { color: #fff; font-size: 22px; }


/* ============================================================
   3. 共通コンポーネント
============================================================ */

/* ── ステータスバッジ（予約ステータス） ── */
.oz-status {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap; flex-shrink: 0;
}
.oz-s-0 { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.oz-s-1 { background: var(--oz-blue-bg);  color: var(--oz-blue); border-color: var(--oz-blue-bd); }
.oz-s-2 { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.oz-s-3 { background: var(--oz-red-bg);   color: var(--oz-red);  border-color: var(--oz-red-bd); }
.oz-s-4 { background: var(--oz-green-bg); color: var(--oz-green);border-color: var(--oz-green-bd); }
.oz-s-pre    { background: var(--oz-amber-bg); color: var(--oz-amber); border-color: var(--oz-amber-bd); }
.oz-s-paid   { background: var(--oz-green-bg); color: var(--oz-green); border-color: var(--oz-green-bd); }
.oz-s-unpaid { background: var(--oz-amber-bg); color: var(--oz-amber); border-color: var(--oz-amber-bd); }



/* ============================================================
   4. ダッシュボード（db-*）
============================================================ */

/* ページタイトル */
.db-title {
  padding: 12px 16px 10px;
  background: var(--oz-surface);
  border-bottom: 1px solid var(--oz-border);
  display: flex; align-items: center; justify-content: space-between;
}
.db-title-left h1 {
  font-size: 19px; font-weight: 700; color: #012970;
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.db-title-left h1 i { color: var(--oz-primary); font-size: 18px; }
.db-date { font-size: 12px; color: var(--oz-text-muted); font-weight: 500; margin-top: 2px; }

/* KPIストリップ */
.db-kpi-strip {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  padding: 12px 16px 4px;
}
.db-kpi {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 10px; padding: 12px 10px;
  animation: ozFadeUp .3s ease both;
}
.db-kpi:nth-child(1) { animation-delay: .04s; }
.db-kpi:nth-child(2) { animation-delay: .08s; }
.db-kpi:nth-child(3) { animation-delay: .12s; }
.db-kpi-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; margin-bottom: 7px;
}
.db-kpi-label {
  font-size: 10px; color: var(--oz-text-muted); font-weight: 600;
  margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-kpi-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--oz-text-dark); line-height: 1.1;
}
.db-kpi-value small { font-size: 11px; font-weight: 400; color: var(--oz-text-sub); }

/* 事前リクエストバナー */
.db-pre-banner {
  margin: 8px 16px 0;
  background: var(--oz-amber-bg);
  border: 1px solid var(--oz-amber-bd);
  border-radius: 10px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-decoration: none;
  animation: ozFadeUp .3s .1s ease both;
}
.db-pre-banner-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #92400e;
}
.db-pre-banner-left i { font-size: 16px; color: var(--oz-amber); }
.db-pre-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--oz-amber);
}
.db-pre-banner-right {
  font-size: 12px; color: var(--oz-amber); font-weight: 600;
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}

/* セクション共通 */
.db-section { padding: 14px 16px 0; }
.db-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.db-section-title {
  font-size: 11px; font-weight: 700; color: var(--oz-text-muted);
  text-transform: uppercase; letter-spacing: .7px;
}
.db-section-link {
  font-size: 12px; color: var(--oz-primary); font-weight: 600; text-decoration: none;
}

/* メニューグリッド */
.db-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.db-menu-card {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: var(--oz-radius); padding: 14px 12px;
  text-decoration: none; color: inherit; display: block;
  transition: box-shadow .18s, border-color .18s;
  animation: ozFadeUp .3s ease both;
}
.db-menu-card:hover {
  box-shadow: var(--oz-shadow-hover);
  border-color: #c7d2fe;
  text-decoration: none; color: inherit;
}
.db-menu-card:nth-child(1) { animation-delay: .06s; }
.db-menu-card:nth-child(2) { animation-delay: .10s; }
.db-menu-card:nth-child(3) { animation-delay: .14s; }
.db-menu-card:nth-child(4) { animation-delay: .18s; }
.db-menu-card:nth-child(5) { animation-delay: .22s; }
.db-menu-card:nth-child(6) { animation-delay: .26s; }

.db-menu-card.wide {
  grid-column: span 2;
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
}
.db-menu-card.wide .db-menu-icon { margin-bottom: 0; flex-shrink: 0; }
.db-menu-card.wide .db-menu-info { flex: 1; }

.db-menu-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 10px;
}
.db-menu-chevron { color: var(--oz-text-muted); font-size: 14px; flex-shrink: 0; }
.db-menu-name { font-size: 13px; font-weight: 600; color: var(--oz-text-dark); margin-bottom: 2px; }
.db-menu-desc { font-size: 11px; color: var(--oz-text-muted); line-height: 1.4; }

/* 直近予約リスト */
.db-recent-list {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: var(--oz-radius); overflow: hidden;
  animation: ozFadeUp .3s .2s ease both;
}
.db-recent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--oz-border);
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.db-recent-item:last-child { border-bottom: none; }
.db-recent-item:active { background: var(--oz-bg-light); }

.db-recent-date { flex-shrink: 0; text-align: center; width: 32px; }
.db-recent-day  {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--oz-text-dark); line-height: 1;
}
.db-recent-dow  { font-size: 10px; color: var(--oz-text-muted); font-weight: 500; }
.db-recent-sep  { width: 1px; height: 30px; background: var(--oz-border); flex-shrink: 0; }
.db-recent-info { flex: 1; min-width: 0; }
.db-recent-name {
  font-size: 13px; font-weight: 600; color: var(--oz-text-dark); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-recent-meta {
  font-size: 11px; color: var(--oz-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-recent-meta i { font-size: 11px; margin-right: 2px; }
.db-recent-right { flex-shrink: 0; text-align: right; }
.db-recent-time { font-size: 12px; font-weight: 600; color: var(--oz-text-dark); }

/* ダッシュボード バッジ */
.db-badge {
  display: inline-flex; padding: 2px 8px; border-radius: 99px;
  font-size: 10px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap; margin-top: 3px;
}
.db-badge-0 { background:#f3f4f6; color:#374151; border-color:#d1d5db; }
.db-badge-1 { background:var(--oz-blue-bg);  color:var(--oz-blue);  border-color:var(--oz-blue-bd); }
.db-badge-2 { background:#e0f2fe; color:#0369a1; border-color:#bae6fd; }
.db-badge-3 { background:var(--oz-red-bg);   color:var(--oz-red);   border-color:var(--oz-red-bd); }
.db-badge-4 { background:var(--oz-green-bg); color:var(--oz-green); border-color:var(--oz-green-bd); }

/* 空状態 */
.db-empty { padding: 28px 16px; text-align: center; color: var(--oz-text-muted); }
.db-empty i { font-size: 32px; color: #d1d5db; display: block; margin-bottom: 8px; }
.db-empty p { font-size: 13px; }

/* カラーアイコン */
.ic-green  { background: var(--oz-green-bg); color: var(--oz-green); }
.ic-blue   { background: var(--oz-blue-bg);  color: var(--oz-blue); }
.ic-purple { background: #f3e8ff; color: #9333ea; }
.ic-amber  { background: var(--oz-amber-bg); color: var(--oz-amber); }
.ic-teal   { background: #f0fdfa; color: #14b8a6; }
.ic-red    { background: var(--oz-red-bg);   color: var(--oz-red); }


/* ============================================================
   5. 予約一覧（bk-*）
============================================================ */

/* ページヘッダー */
.bk-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px;
  background: var(--oz-surface);
  border-bottom: 1px solid var(--oz-border);
}
.bk-header-title {
  font-size: 19px; font-weight: 700; color: #012970;
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.bk-header-title i { color: var(--oz-primary); font-size: 18px; }
.bk-header-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: var(--oz-radius-sm);
  font-size: 12px; font-weight: 600;
  background: var(--oz-primary); color: #fff;
  text-decoration: none; transition: opacity .15s;
}
.bk-header-btn:hover { opacity: .88; color: #fff; }

/* タブバー */
.bk-tabs {
  display: flex;
  border-bottom: 2px solid var(--oz-border);
  background: var(--oz-surface);
  position: sticky;
  top: var(--oz-header-h);
  z-index: 50;
  overflow-x: auto; scrollbar-width: none;
}
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab {
  flex: 1; min-width: 90px;
  padding: 12px 6px 10px;
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--oz-text-muted);
  border: none; border-bottom: 2px solid transparent;
  background: none; cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.bk-tab .bk-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; font-size: 10px; font-weight: 700;
  background: #e5e7eb; color: #6b7280; margin-left: 3px;
  vertical-align: middle; transition: background .15s, color .15s;
}
.bk-tab.active { color: var(--oz-primary); border-bottom-color: var(--oz-primary); }
.bk-tab.active .bk-cnt { background: var(--oz-primary); color: #fff; }

/* タブパネル */
.bk-panel { display: none; }
.bk-panel.active { display: block; }

/* フィルターチップ */
.bk-filter-bar {
  display: flex; gap: 8px; padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--oz-bg-light);
  border-bottom: 1px solid var(--oz-border);
}
.bk-filter-bar::-webkit-scrollbar { display: none; }
.bk-chip {
  flex: 0 0 auto; padding: 5px 13px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
  border: 1.5px solid var(--oz-border); color: var(--oz-text-muted);
  background: var(--oz-surface); cursor: pointer; transition: all .15s;
}
.bk-chip.active {
  background: var(--oz-primary); border-color: var(--oz-primary); color: #fff;
}

/* カードリスト */
.bk-list { padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; }

.bk-card {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: var(--oz-radius); padding: 13px 14px;
  display: block; text-decoration: none; color: inherit;
  transition: box-shadow .18s, border-color .18s;
  animation: ozFadeUp .28s ease both;
}
.bk-card:hover {
  box-shadow: var(--oz-shadow-hover);
  border-color: #c7d2fe;
  text-decoration: none; color: inherit;
}
.bk-card.pre { border-left: 3px solid var(--oz-amber); }

.bk-card:nth-child(1) { animation-delay: .03s; }
.bk-card:nth-child(2) { animation-delay: .07s; }
.bk-card:nth-child(3) { animation-delay: .11s; }
.bk-card:nth-child(4) { animation-delay: .15s; }
.bk-card:nth-child(5) { animation-delay: .19s; }

.bk-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.bk-card-name { font-size: 14px; font-weight: 700; color: #1a1f36; }
.bk-card-id   { font-size: 11px; color: var(--oz-text-muted); margin-top: 1px; }
.bk-card-mid {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-bottom: 9px; font-size: 11.5px; color: var(--oz-text-muted);
}
.bk-card-mid i { font-size: 12px; margin-right: 2px; color: #9ca3af; }
.bk-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--oz-border); padding-top: 9px;
}

/* キャスト */
.bk-cast {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--oz-text-muted); font-weight: 500;
}
.bk-cast-thumb {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg,#667eea,#764ba2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 600; flex-shrink: 0;
}
.bk-cast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bk-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: #1a1f36;
}

/* 利用情報（事前リクエスト） */
.bk-pre-info {
  margin-top: 8px; padding: 9px 11px;
  background: var(--oz-bg-light); border-radius: var(--oz-radius-sm);
  font-size: 11.5px; color: var(--oz-text-muted);
  display: flex; flex-direction: column; gap: 3px;
}
.bk-pre-info span { display: flex; gap: 6px; }
.bk-pre-info strong { color: #374151; min-width: 66px; flex-shrink: 0; }

/* ステータスバッジ（予約一覧専用） */
.bk-status {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap; flex-shrink: 0;
}
.bk-s-pre    { background:var(--oz-amber-bg); color:var(--oz-amber); border-color:var(--oz-amber-bd); }
.bk-s-0      { background:#f3f4f6; color:#374151; border-color:#d1d5db; }
.bk-s-1      { background:var(--oz-blue-bg);  color:var(--oz-blue);  border-color:var(--oz-blue-bd); }
.bk-s-2      { background:#e0f2fe; color:#0369a1; border-color:#bae6fd; }
.bk-s-3      { background:var(--oz-red-bg);   color:var(--oz-red);   border-color:var(--oz-red-bd); }
.bk-s-4      { background:var(--oz-green-bg); color:var(--oz-green); border-color:var(--oz-green-bd); }
.bk-s-paid   { background:var(--oz-green-bg); color:var(--oz-green); border-color:var(--oz-green-bd); }
.bk-s-unpaid { background:var(--oz-amber-bg); color:var(--oz-amber); border-color:var(--oz-amber-bd); }

/* 空状態 */
.bk-empty { padding: 40px 16px; text-align: center; color: var(--oz-text-muted); }
.bk-empty i { font-size: 36px; color: #d1d5db; display: block; margin-bottom: 10px; }
.bk-empty p { font-size: 13px; }

/* PC レイアウト */
@media (min-width: 768px) {
  .bk-list { display: grid; grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1200px) {
  .bk-list { grid-template-columns: repeat(3,1fr); }
}


/* ============================================================
   6. 予約詳細（bd-*）
============================================================ */

/* ページヘッダー */
.bd-page-header {
  display: flex; align-items: center;
  padding: 12px 16px 10px;
  background: var(--oz-surface);
  border-bottom: 1px solid var(--oz-border);
  gap: 6px;
}
.bd-page-header-back {
  width: 36px; height: 36px; border-radius: 9px; border: none;
  background: none; display: flex; align-items: center; justify-content: center;
  color: var(--oz-primary); font-size: 20px; cursor: pointer; flex-shrink: 0;
  text-decoration: none;
}
.bd-page-header-title {
  flex: 1; font-size: 16px; font-weight: 700; color: #012970; text-align: center;
}
.bd-page-header-actions { display: flex; gap: 2px; }
.bd-icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: none;
  background: none; display: flex; align-items: center; justify-content: center;
  color: var(--oz-text-muted); font-size: 18px; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.bd-icon-btn:hover { background: var(--oz-bg-light); color: var(--oz-text-dark); }

/* ヒーロー */
.bd-hero {
  background: var(--oz-surface);
  border-bottom: 1px solid var(--oz-border);
  padding: 14px 16px 16px;
}
.bd-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px; gap: 8px;
}
.bd-hero-id   { font-size: 11px; color: var(--oz-text-muted); font-weight: 500; margin-bottom: 3px; }
.bd-hero-name { font-size: 21px; font-weight: 700; color: #1a1f36; letter-spacing: -.4px; }
.bd-hero-meta {
  display: flex; flex-wrap: wrap; gap: 5px 12px;
  font-size: 12px; color: var(--oz-text-muted);
}
.bd-hero-meta i { font-size: 12px; margin-right: 3px; color: #9ca3af; }

/* 詳細ステータスバッジ */
.bd-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap; flex-shrink: 0;
}
.bd-s-0 { background:#f3f4f6; color:#374151; border-color:#d1d5db; }
.bd-s-1 { background:var(--oz-blue-bg);  color:var(--oz-blue);  border-color:var(--oz-blue-bd); }
.bd-s-2 { background:#e0f2fe; color:#0369a1; border-color:#bae6fd; }
.bd-s-3 { background:var(--oz-red-bg);   color:var(--oz-red);   border-color:var(--oz-red-bd); }
.bd-s-4 { background:var(--oz-green-bg); color:var(--oz-green); border-color:var(--oz-green-bd); }

/* 延長承認バナー */
.bd-ext-banner {
  background: var(--oz-amber-bg);
  border: 1.5px solid var(--oz-amber-bd);
  border-radius: var(--oz-radius); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.bd-ext-banner-left { display: flex; align-items: center; gap: 8px; }
.bd-ext-banner-left > i { font-size: 20px; color: var(--oz-amber); flex-shrink: 0; }
.bd-ext-title { font-size: 13px; font-weight: 700; color: #92400e; }
.bd-ext-sub   { font-size: 11px; color: var(--oz-amber); margin-top: 1px; }
.bd-ext-approve-btn {
  flex-shrink: 0; height: 36px; padding: 0 14px;
  background: linear-gradient(135deg,#ff8a00,#ff6a00);
  color: #fff; border: none; border-radius: var(--oz-radius-sm);
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(255,106,0,.3);
}

/* ステータス更新バー */
.bd-status-bar {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: var(--oz-radius); padding: 11px 13px;
  display: flex; align-items: center; gap: 8px;
}
.bd-status-bar-label {
  font-size: 11px; font-weight: 700; color: var(--oz-text-muted); flex-shrink: 0;
}
.bd-status-select {
  flex: 1; padding: 7px 10px; border-radius: var(--oz-radius-sm);
  border: 1.5px solid var(--oz-border); font-size: 13px;
  font-family: inherit; color: var(--oz-text-dark);
  background: var(--oz-bg-light); -webkit-appearance: none;
  transition: border .18s;
}
.bd-status-select:focus { border-color: var(--oz-primary); outline: none; }
.bd-status-update-btn {
  flex-shrink: 0; height: 36px; padding: 0 14px;
  background: var(--oz-primary); color: #fff; border: none;
  border-radius: var(--oz-radius-sm); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}

/* カードセクション */
.bd-section { padding: 10px 16px 0; display: flex; flex-direction: column; gap: 8px; }

.bd-card {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: var(--oz-radius); padding: 15px;
}
.bd-card-title {
  font-size: 11px; font-weight: 700; color: var(--oz-text-muted);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 5px;
}
.bd-card-title i { font-size: 13px; }

/* 詳細行 */
.bd-row {
  display: flex; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid var(--oz-border-light);
  font-size: 13px; align-items: flex-start;
}
.bd-row:last-child { border-bottom: none; padding-bottom: 0; }
.bd-row-label {
  width: 84px; flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  color: var(--oz-text-muted); padding-top: 1px; line-height: 1.5;
}
.bd-row-value {
  flex: 1; color: var(--oz-text-dark); font-weight: 500;
  line-height: 1.55; word-break: break-word;
}
.bd-row-value a { color: var(--oz-primary); text-decoration: none; }

/* コースタグ */
.bd-course-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.bd-course-tag {
  background: var(--oz-bg-light);
  border: 1px solid var(--oz-border);
  border-radius: 99px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; color: var(--oz-text-dark);
}

/* 料金行 */
.bd-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--oz-border-light); font-size: 13px;
}
.bd-price-row:last-child { border-bottom: none; }
.bd-price-name { color: var(--oz-text-muted); flex: 1; padding-right: 8px; }
.bd-price-amt  {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  color: var(--oz-text-dark); white-space: nowrap;
}
.bd-price-amt.minus { color: var(--oz-red); }
.bd-price-total {
  margin-top: 10px; padding-top: 10px;
  border-top: 2px solid var(--oz-border);
  display: flex; justify-content: space-between; align-items: center;
}
.bd-price-total-label { font-size: 13px; font-weight: 700; color: var(--oz-text-muted); }
.bd-price-total-value {
  font-family: 'DM Sans', sans-serif; font-size: 22px;
  font-weight: 700; color: var(--oz-text-dark);
}
.bd-price-card-final {
  margin-top: 8px; padding: 8px 12px;
  background: var(--oz-blue-bg); border-radius: var(--oz-radius-sm);
  display: flex; justify-content: space-between; align-items: center;
}
.bd-price-card-final-label { font-size: 12px; font-weight: 700; color: var(--oz-blue); }
.bd-price-card-final-value {
  font-family: 'DM Sans', sans-serif; font-size: 17px;
  font-weight: 700; color: var(--oz-blue);
}

/* 請求KPI */
.bd-billing-kpi {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px;
}
.bd-billing-kpi-item {
  background: var(--oz-bg-light); border-radius: var(--oz-radius-sm);
  padding: 10px 8px; text-align: center;
}
.bd-billing-kpi-label { font-size: 10px; color: var(--oz-text-muted); font-weight: 600; margin-bottom: 3px; }
.bd-billing-kpi-value {
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 700; color: var(--oz-text-dark);
}
.bd-billing-kpi-value.paid   { color: var(--oz-green); }
.bd-billing-kpi-value.unpaid { color: var(--oz-red); }

/* 請求発行 */
.bd-billing-issue {
  background: var(--oz-bg-light);
  border: 1.5px dashed #c7d2fe;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; text-align: center;
}
.bd-billing-issue-note { font-size: 11px; color: var(--oz-text-muted); margin-bottom: 8px; }
.bd-billing-issue-btn {
  width: 100%; height: 42px; background: var(--oz-primary); color: #fff;
  border: none; border-radius: var(--oz-radius-sm); font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* 請求行 */
.bd-billing-row {
  padding: 10px 0; border-bottom: 1px solid var(--oz-border-light);
  display: flex; gap: 10px; align-items: flex-start;
}
.bd-billing-row:last-of-type { border-bottom: none; }
.bd-billing-row-left { flex: 1; min-width: 0; }
.bd-billing-row-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--oz-text-dark); margin-bottom: 3px;
}
.bd-billing-chip {
  display: inline-flex; padding: 1px 7px; border-radius: 99px;
  font-size: 10px; font-weight: 700; border: 1px solid transparent;
}
.bd-billing-chip.paid   { background:var(--oz-green-bg); color:var(--oz-green); border-color:var(--oz-green-bd); }
.bd-billing-chip.unpaid { background:var(--oz-amber-bg); color:var(--oz-amber); border-color:var(--oz-amber-bd); }
.bd-billing-meta { font-size: 11px; color: var(--oz-text-muted); }
.bd-billing-amount {
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 700; color: var(--oz-text-dark); white-space: nowrap; flex-shrink: 0;
}

/* 支払いフォーム */
.bd-pay-form { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.bd-pay-select {
  flex: 1; padding: 7px 10px; border-radius: var(--oz-radius-sm);
  border: 1.5px solid var(--oz-border); font-size: 12px;
  font-family: inherit; color: var(--oz-text-dark);
  background: var(--oz-bg-light); -webkit-appearance: none;
}
.bd-pay-btn {
  flex-shrink: 0; height: 34px; padding: 0 12px;
  background: var(--oz-green); color: #fff; border: none;
  border-radius: var(--oz-radius-sm); font-size: 12px; font-weight: 700;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}

/* 延長追加フォーム */
.bd-ext-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--oz-border-light); }
.bd-ext-form-title { font-size: 11px; font-weight: 700; color: var(--oz-text-sub); margin-bottom: 8px; }
.bd-ext-form-row { display: flex; gap: 6px; }
.bd-ext-input {
  flex: 1; padding: 9px 12px; border-radius: var(--oz-radius-sm);
  border: 1.5px solid var(--oz-border); font-size: 13px;
  font-family: inherit; color: var(--oz-text-dark); background: var(--oz-surface);
  transition: border .18s;
}
.bd-ext-input:focus { border-color: var(--oz-primary); outline: none; box-shadow: 0 0 0 3px rgba(65,84,241,.1); }
.bd-ext-add-btn {
  flex-shrink: 0; height: 40px; padding: 0 13px;
  background: var(--oz-surface); color: var(--oz-primary);
  border: 1.5px solid var(--oz-primary); border-radius: var(--oz-radius-sm);
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
}

/* タイムライン */
.bd-timeline { position: relative; padding-left: 28px; margin-top: 4px; }
.bd-timeline::before {
  content: ''; position: absolute; top: 0; left: 10px;
  width: 2px; height: 100%; background: var(--oz-border);
}
.bd-tl-item { position: relative; padding-bottom: 18px; }
.bd-tl-item:last-child { padding-bottom: 0; }
.bd-tl-dot {
  position: absolute; left: -21px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--oz-text-muted);
}
.bd-tl-dot.highlight { background: var(--oz-primary); }
.bd-tl-title { font-size: 13px; font-weight: 600; color: var(--oz-text-dark); margin-bottom: 2px; }
.bd-tl-meta  { font-size: 11px; color: var(--oz-text-muted); }
.bd-tl-toggle {
  font-size: 11px; color: var(--oz-primary); cursor: pointer;
  margin-top: 4px; display: inline-flex; align-items: center; gap: 3px;
  background: none; border: none; font-family: inherit; padding: 0;
}
.bd-tl-detail {
  display: none; margin-top: 6px;
  background: var(--oz-bg-light); border-radius: 6px; padding: 8px 10px;
  font-size: 11px; color: var(--oz-text-sub); font-family: monospace;
  line-height: 1.6; white-space: pre-wrap; word-break: break-all;
}

/* フッター固定アクション */
.bd-footer {
  position: sticky; bottom: 0;
  background: var(--oz-surface);
  border-top: 1px solid var(--oz-border);
  padding: 10px 14px;
  display: flex; gap: 8px; z-index: 50;
}
.bd-footer-back {
  flex: 0 0 auto; height: 44px; padding: 0 13px;
  background: var(--oz-bg-light); color: var(--oz-text-muted);
  border: 1px solid var(--oz-border); border-radius: 10px;
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
}
.bd-footer-edit {
  flex: 1; height: 44px;
  background: var(--oz-primary); color: #fff; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.bd-footer-del {
  flex: 0 0 44px; height: 44px;
  background: var(--oz-red-bg); color: var(--oz-red);
  border: 1px solid var(--oz-red-bd);
  border-radius: 10px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}


/* ============================================================
   7. 売上管理（sl-*）
============================================================ */

/* ページタイトル */
.sl-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
}
.sl-title h1 {
  font-size: 19px; font-weight: 700; color: #012970;
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.sl-title h1 i { color: var(--oz-primary); font-size: 18px; }
.sl-csv-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: var(--oz-radius-sm);
  font-size: 12px; font-weight: 600;
  background: var(--oz-bg-light); color: var(--oz-text-muted);
  border: 1px solid var(--oz-border); text-decoration: none;
  transition: background .15s;
}
.sl-csv-btn:hover { background: var(--oz-border); color: var(--oz-text-dark); }

/* 期間フィルター */
.sl-period {
  background: var(--oz-surface);
  border-top: 1px solid var(--oz-border);
  border-bottom: 1px solid var(--oz-border);
  padding: 8px 16px 10px;
}
.sl-chips {
  display: flex; gap: 6px; padding: 0 16px; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 10px;
}
.sl-chips::-webkit-scrollbar { display: none; }
.sl-chip {
  flex: 0 0 auto; padding: 5px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--oz-border); color: var(--oz-text-muted);
  background: var(--oz-surface); cursor: pointer; transition: all .15s;
}
.sl-chip.active { background: var(--oz-primary); border-color: var(--oz-primary); color: #fff; }

.sl-date-row { display: flex; align-items: flex-end; gap: 8px; }
.sl-date-grp { flex: 1; }
.sl-date-grp label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--oz-text-muted); margin-bottom: 4px;
}
.sl-date-input {
  width: 100%; padding: 9px 12px; border-radius: var(--oz-radius-sm);
  border: 1.5px solid var(--oz-border); font-size: 13px;
  font-family: inherit; color: var(--oz-text-dark);
  -webkit-appearance: none; background: var(--oz-surface); transition: border .18s;
}
.sl-date-input:focus { border-color: var(--oz-primary); outline: none; box-shadow: 0 0 0 3px rgba(65,84,241,.12); }
.sl-date-sep { color: var(--oz-text-muted); font-size: 13px; padding-bottom: 10px; flex-shrink: 0; }
.sl-apply {
  height: 40px; padding: 0 16px; flex-shrink: 0;
  background: var(--oz-primary); color: #fff; border: none;
  border-radius: var(--oz-radius-sm); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: opacity .15s;
}
.sl-apply:hover { opacity: .88; }

/* KPI */
.sl-kpi-strip {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  padding: 10px 14px;
}
.sl-kpi {
  background: var(--oz-surface); border: 1px solid var(--oz-border);
  border-radius: 10px; padding: 12px 10px;
  animation: ozFadeUp .35s ease both;
}
.sl-kpi:nth-child(1) { animation-delay: .04s; }
.sl-kpi:nth-child(2) { animation-delay: .09s; }
.sl-kpi:nth-child(3) { animation-delay: .14s; }
.sl-kpi-icon {
  width: 30px; height: 30px; border-radius: var(--oz-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; margin-bottom: 8px;
}
.sl-kpi-label {
  font-size: 10px; color: var(--oz-text-muted); font-weight: 600; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-kpi-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--oz-text-dark); line-height: 1.1;
}
.sl-kpi-value small { font-size: 11px; font-weight: 400; color: var(--oz-text-muted); }
.sl-kpi-delta {
  display: inline-flex; align-items: center; gap: 1px;
  font-size: 10px; font-weight: 700; border-radius: 99px;
  padding: 1px 5px; margin-top: 3px;
}
.sl-kpi-delta.up   { background: var(--oz-green-bg); color: var(--oz-green); }
.sl-kpi-delta.down { background: var(--oz-red-bg);   color: var(--oz-red); }
.sl-kpi-delta.flat { background: #f3f4f6; color: #6b7280; }

/* チャートカード */
.sl-chart-card {
  margin: 0 16px 10px;
  background: var(--oz-surface); border: 1px solid var(--oz-border);
  border-radius: var(--oz-radius); padding: 14px;
  animation: ozFadeUp .35s .15s ease both;
}
.sl-card-title {
  font-size: 11px; font-weight: 700; color: var(--oz-text-muted);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px;
}
.sl-chart-wrap { position: relative; height: 160px; }

/* 売上明細ヘッダー */
.sl-list-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
}
.sl-list-title {
  font-size: 11px; font-weight: 700; color: var(--oz-text-muted);
  text-transform: uppercase; letter-spacing: .6px;
}
.sl-list-count { font-size: 12px; color: var(--oz-text-muted); font-family: 'DM Sans', sans-serif; }

/* 売上カードリスト */
.sl-list { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.sl-card {
  background: var(--oz-surface); border: 1px solid var(--oz-border);
  border-radius: 10px; padding: 11px 13px;
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s;
  animation: ozFadeUp .28s ease both;
}
.sl-card:hover { box-shadow: var(--oz-shadow-hover); }
.sl-date-col { flex-shrink: 0; text-align: center; width: 36px; }
.sl-day {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--oz-text-dark); line-height: 1;
}
.sl-mon { font-size: 10px; color: var(--oz-text-muted); font-weight: 500; }
.sl-sep { width: 1px; height: 34px; background: var(--oz-border); flex-shrink: 0; }
.sl-info { flex: 1; min-width: 0; }
.sl-name {
  font-size: 13px; font-weight: 600; color: var(--oz-text-dark); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-meta {
  font-size: 11px; color: var(--oz-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-meta i { font-size: 11px; margin-right: 2px; }
.sl-right { flex-shrink: 0; text-align: right; }
.sl-amount {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 700; color: var(--oz-text-dark);
}

/* 空状態 */
.sl-empty { padding: 40px 16px; text-align: center; color: var(--oz-text-muted); }
.sl-empty i { font-size: 40px; color: #d1d5db; display: block; margin-bottom: 10px; }



/* ============================================================
   8. ページタイトル
============================================================ */
.pagetitle { margin-bottom: 16px; padding: 4px 0; }

.pagetitle .page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #012970;
}

.pagetitle .page-header i { font-size: 22px; color: #4b5563; }

@media (max-width: 576px) {
  .pagetitle { margin-bottom: 12px; }
  .pagetitle .page-header { font-size: 16px; gap: 8px; }
  .pagetitle .page-header i { font-size: 20px; }
}

/* ============================================================
   9. 顧客一覧（oz-list-* / oz-table / oz-sort / oz-badge / oz-pagination）
============================================================ */

/* ── ラッパー ──────────────────────────────── */
.oz-list-wrapper {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* ── 検索バー ───────────────────────────────── */
.oz-list-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--oz-border-light);
  background: var(--oz-surface-2);
}

.oz-list-search .form-control {
  flex: 1;
  max-width: 320px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--oz-border);
  padding: 7px 12px;
}

.oz-list-search .form-control:focus {
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(65,84,241,.1);
  outline: none;
}

/* ── ボタン小 ───────────────────────────────── */
.oz-btn-sm {
  padding: 6px 14px !important;
  font-size: 12px !important;
}

/* ── テーブル ───────────────────────────────── */
.oz-table-wrap { overflow-x: auto; }

.oz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.oz-table thead th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--oz-text-muted);
  background: var(--oz-surface-2);
  border-bottom: 1px solid var(--oz-border);
  white-space: nowrap;
}

.oz-table tbody td {
  padding: 10px 12px;
  color: var(--oz-text-dark);
  border-bottom: 1px solid var(--oz-border-light);
  vertical-align: middle;
}

.oz-table tbody tr:last-child td { border-bottom: none; }

.oz-table tbody tr:hover td { background: var(--oz-surface-2); }

/* ── ソートアイコン ─────────────────────────── */
.oz-sort {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.oz-sort::after {
  content: '↕';
  font-size: 10px;
  opacity: .35;
}

.oz-sort.asc::after  { content: '↑'; opacity: .8; color: var(--oz-primary); }
.oz-sort.desc::after { content: '↓'; opacity: .8; color: var(--oz-primary); }

/* ── バッジ ─────────────────────────────────── */
.oz-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* 顧客ステータス */
.oz-badge-normal { background: var(--oz-bg-muted);  color: var(--oz-text-sub); }
.oz-badge-vip    { background: #fef9c3; color: #a16207; }
.oz-badge-ng     { background: var(--oz-red-bg);   color: var(--oz-red); }
.oz-badge-warn   { background: var(--oz-amber-bg); color: var(--oz-amber); }

/* 予約ステータス */
.status-0  { background: var(--oz-amber-bg);   color: var(--oz-amber); }   /* 仮予約 */
.status-1  { background: var(--oz-primary-bg); color: var(--oz-primary); } /* 確定  */
.status-2  { background: #dbeafe; color: #1d4ed8; }                        /* 施術中 */
.status-3  { background: var(--oz-green-bg);   color: var(--oz-green); }   /* 完了  */
.status-4  { background: #d1fae5; color: #065f46; }                        /* 支払完了 */
.status--1 { background: var(--oz-red-bg);     color: var(--oz-red); }     /* キャンセル */

/* ── ページネーション ────────────────────────── */
.oz-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 14px 16px;
  border-top: 1px solid var(--oz-border-light);
}

.oz-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--oz-text-sub);
  border: 1px solid var(--oz-border);
  background: var(--oz-surface);
  text-decoration: none;
  transition: background .12s, border-color .12s;
}

.oz-pagination a:hover  { background: var(--oz-primary-bg); border-color: var(--oz-primary-soft); color: var(--oz-primary); }
.oz-pagination a.active { background: var(--oz-primary); border-color: var(--oz-primary); color: #fff; }

/* ============================================================
   10. 顧客詳細（crm-* / info-* / customer-badge / memo-box）
============================================================ */

/* ── 顧客詳細 全体のはみ出し防止 ─────────────── */
.section.dashboard {
  overflow-x: hidden;
  max-width: 100%;
}
.section.dashboard .card {
  overflow: hidden;
}

/* ── 2カラムグリッド ────────────────────────── */
.crm-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .crm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .crm-panel-subtext {
    display: none;
  }
  .crm-kpi-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .crm-kpi {
    padding: 10px 8px;
  }
  .crm-kpi-value {
    font-size: 13px;
    word-break: break-all;
  }
  .crm-kpi-label {
    font-size: 10px;
  }
  .crm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .crm-table {
    min-width: 480px;
  }
}

/* ── パネル ─────────────────────────────────── */
.crm-panel {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.crm-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--oz-text-dark);
  background: var(--oz-surface-2);
  border-bottom: 1px solid var(--oz-border-light);
}

.crm-panel-subtext {
  font-size: 11px;
  font-weight: 400;
  color: var(--oz-text-muted);
}

/* ── KPIストリップ ──────────────────────────── */
.crm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--oz-border-light);
}

.crm-kpi {
  padding: 16px 14px;
  border-right: 1px solid var(--oz-border-light);
}

.crm-kpi:last-child { border-right: none; }

.crm-kpi-label {
  font-size: 11px;
  color: var(--oz-text-muted);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.crm-kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--oz-text-dark);
  line-height: 1.2;
}

.crm-kpi-value .unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--oz-text-muted);
  margin-left: 2px;
}

/* ── 最新予約ボックス ───────────────────────── */
.crm-latest-box {
  padding: 14px 16px;
}

.crm-latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--oz-text-dark);
}

.crm-latest-meta {
  font-size: 11px;
  color: var(--oz-text-muted);
}

/* ── 予約履歴テーブル ───────────────────────── */
.crm-table-wrap { overflow-x: auto; }

.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.crm-table thead th {
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--oz-text-muted);
  background: var(--oz-surface-2);
  border-bottom: 1px solid var(--oz-border);
  white-space: nowrap;
}

.crm-table tbody td {
  padding: 10px 12px;
  color: var(--oz-text-dark);
  border-bottom: 1px solid var(--oz-border-light);
  vertical-align: middle;
}

.crm-table tbody tr:last-child td { border-bottom: none; }
.crm-table tbody tr:hover td { background: var(--oz-surface-2); }

.crm-table .col-date   { white-space: nowrap; }
.crm-table .col-course { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-table .col-price  { text-align: right; font-weight: 600; }
.crm-table .col-action { width: 36px; text-align: center; }

.crm-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--oz-text-sub);
  text-decoration: none;
  transition: background .12s, color .12s;
}

.crm-edit-link:hover { background: var(--oz-primary-bg); color: var(--oz-primary); }

.crm-empty-text {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--oz-text-muted);
  text-align: center;
}

/* ── 顧客ステータスバッジ ────────────────────── */
.customer-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.cust-0 { background: var(--oz-bg-muted);  color: var(--oz-text-sub); }
.cust-1 { background: #fef9c3; color: #a16207; }
.cust-2 { background: var(--oz-red-bg);   color: var(--oz-red); }
.cust-3 { background: var(--oz-amber-bg); color: var(--oz-amber); }

/* ── 情報行 ─────────────────────────────────── */
.info-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--oz-border-light);
  font-size: 13px;
}

.info-item:last-child { border-bottom: none; }

.info-label {
  min-width: 90px;
  font-size: 11px;
  font-weight: 700;
  color: var(--oz-text-muted);
  letter-spacing: .04em;
  flex-shrink: 0;
}

.info-value {
  color: var(--oz-text-dark);
  word-break: break-all;
}

/* ── メモボックス ───────────────────────────── */
.memo-box {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--oz-text-sub);
  white-space: pre-wrap;
  min-height: 80px;
}

/* ── テキスト右寄せ ─────────────────────────── */
.text-right { text-align: right; }

/* ============================================================
   11. 共通フォームコンポーネント（oz-*）
============================================================ */

/* ── カード ─────────────────────────────────── */
.oz-card {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* ── アラート ───────────────────────────────── */
.oz-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.oz-alert-danger {
  background: var(--oz-red-bg);
  border: 1px solid var(--oz-red-bd);
  color: var(--oz-red);
}

.oz-alert-success {
  background: var(--oz-green-bg);
  border: 1px solid var(--oz-green-bd);
  color: var(--oz-green);
}

/* ── フォームグループ ───────────────────────── */
.oz-form-group {
  margin-bottom: 20px;
}

.oz-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--oz-text-dark);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.oz-input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--oz-text-dark);
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.oz-input:focus {
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(65,84,241,.12);
}

.oz-input::placeholder { color: var(--oz-text-muted); }

.oz-form-hint {
  margin-top: 5px;
  font-size: 11px;
  color: var(--oz-text-muted);
}

/* ── トグルスイッチ ─────────────────────────── */
.oz-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oz-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.oz-switch input { opacity: 0; width: 0; height: 0; }

.oz-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}

.oz-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}

.oz-switch input:checked + .oz-slider { background: var(--oz-primary); }
.oz-switch input:checked + .oz-slider::before { transform: translateX(20px); }

.oz-switch-text {
  font-size: 13px;
  color: var(--oz-text-sub);
}

/* ── ボタン ─────────────────────────────────── */
.oz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}

.oz-btn-primary {
  background: var(--oz-primary);
  color: #fff;
  border-color: var(--oz-primary);
}

.oz-btn-primary:hover {
  background: var(--oz-primary-dim);
  border-color: var(--oz-primary-dim);
  box-shadow: 0 2px 8px rgba(65,84,241,.3);
  color: #fff;
}

.oz-btn-outline {
  background: var(--oz-surface);
  color: var(--oz-text-sub);
  border-color: var(--oz-border);
}

.oz-btn-outline:hover {
  background: var(--oz-bg-muted);
  color: var(--oz-text-dark);
}

.oz-btn-lg {
  padding: 11px 28px !important;
  font-size: 14px !important;
}

/* ── セレクト・テキストエリア・読み取り専用 ─── */
.oz-select {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--oz-text-dark);
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.oz-select:focus {
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(65,84,241,.12);
}

.oz-textarea {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--oz-text-dark);
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.oz-textarea:focus {
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(65,84,241,.12);
}

.oz-readonly {
  background: var(--oz-bg-muted) !important;
  color: var(--oz-text-muted) !important;
  cursor: not-allowed !important;
}

/* ── セクション余白 ─────────────────────────── */
.section { padding-top: 8px; }

/* ── ユーティリティ ─────────────────────────── */
.oz-muted   { color: var(--oz-text-muted); font-size: 12px; }
.oz-inline  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oz-btn-compact { padding: 4px 10px !important; font-size: 12px !important; }

/* ============================================================
   12. 料金設定（pricing-edit）
============================================================ */

/* ── コースブロック ─────────────────────────── */
.course-block {
  border: 1px solid var(--oz-border);
  background: var(--oz-surface-2);
  border-radius: 10px;
  padding: 14px 16px;
}
.course-block + .course-block { margin-top: 14px; }

.course-block-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.course-block-titleline { display: flex; flex-direction: column; gap: 4px; }
.course-block-titletext { font-weight: 700; font-size: 14px; margin: 0; color: var(--oz-text-dark); }

.course-block-sub {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
}

.course-block-editor {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--oz-border);
}

.course-block details         { margin: 8px 0 0; }
.course-block details summary { cursor: pointer; font-size: 12px; color: var(--oz-text-sub); }
.course-block select[multiple]{ min-height: 36px; font-size: 13px; margin-top: 6px; }

/* ── コースアイテム ─────────────────────────── */
.course-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--oz-border);
}
.course-item:last-child { border-bottom: none; }

.course-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.course-summary { min-width: 0; }
.course-summary .name { font-weight: 600; color: var(--oz-text-dark); }
.course-summary .meta { font-size: 12px; color: var(--oz-text-muted); margin-top: 2px; }

.course-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.course-editor {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: var(--oz-surface);
  border: 1px solid var(--oz-border);
  border-radius: 10px;
}

.course-editor .form-control,
.course-editor .form-select { font-size: 13px; padding: 6px 8px; }

@media (max-width: 768px) {
  .course-actions { width: 100%; justify-content: flex-end; }
  .course-editor .row > [class*="col-"] { margin-bottom: 10px; }
}

/* ============================================================
   13. ルール設定（cast-rules）
============================================================ */

.rule-box {
  border: 1px solid var(--oz-border);
  background: var(--oz-surface-2);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.rule-head {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.rule-head .form-control { max-width: 220px; }

.rule-key { font-size: 12px; }

.cast-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  font-size: 13px;
  margin-top: 8px;
}

details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--oz-text-sub);
}

.rule-actions {
  margin-top: 8px;
  font-size: 13px;
  color: var(--oz-text-sub);
}

.rule-save-bar {
  position: sticky;
  bottom: 0;
  padding: 16px;
  border-top: 1px solid var(--oz-border);
  text-align: right;
  z-index: 10;
  margin-top: 32px;
}

.rule-save-bar .btn { min-width: 220px; }

#add-rule-btn { white-space: nowrap; }

/* ============================================================
   14. サイドバー（sidebar）
============================================================ */

.badge.bg-secondary {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  vertical-align: middle;
  color: #fff;
  background-color: #6c757d;
}

/* ============================================================
   15. 予約登録フォーム（booking-new2）ozr-*
============================================================ */

/* Layout */
.ozr-wrap {
  max-width: 980px;
  margin: 0 auto;
}

/* Card（STEP単位） */
.ozr-card {
  position: relative;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 22px;
}
.ozr-card .card-body {
  padding: 18px;
}

/* STEP見出し */
.ozr-h {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ozr-h span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--oz-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
}

/* STEP補足説明 */
.ozr-sub {
  font-size: 12px;
  color: #475569;
  margin: -4px 0 12px;
  padding-left: 8px;
  border-left: 3px solid #e2e8f0;
}

/* Grid */
.ozr-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ozr-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .ozr-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Help / Alert */
.ozr-help {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}
.ozr-warn {
  font-size: 12px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 10px;
}
.ozr-error {
  font-size: 12px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px;
  display: none;
}

/* Course */
.ozr-course-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ozr-course-group {
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}
.ozr-course-group-title {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
}
.ozr-course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ozr-course-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d6dbe6;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ozr-course-btn.active {
  border-color: #F06333;
  background: #F05A24;
  color: #fff;
}

/* Accordion */
.ozr-course-accordion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eef1f6;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
}
.ozr-course-accordion-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ozr-course-summary {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.ozr-course-panel {
  display: none;
  margin-top: 10px;
}
.ozr-course-group.open .ozr-course-panel {
  display: block;
}

/* End time box */
.ozr-endtime-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.ozr-endtime-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.ozr-endtime-val {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

/* Sticky Summary */
.ozr-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 50;
  margin-top: 18px;
}
.ozr-summary {
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.ozr-summary h3 {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.ozr-summary h3::after {
  content: "▼";
  font-size: 11px;
  color: #3b82f6;
  transition: transform .25s ease;
}
.ozr-summary .row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #0f172a;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  margin-top: 0;
  padding: 16px;
}
.ozr-summary.open .row {
  max-height: 320px;
  margin-top: 10px;
}
.ozr-summary.open h3::after {
  transform: rotate(180deg);
}
.ozr-summary .pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  line-height: 1.4;
}
.ozr-summary .pill::before {
  content: "・";
  color: #3b82f6;
  font-weight: 900;
}
.ozr-summary .ozr-help {
  margin-top: 10px;
  font-size: 11px;
  color: #475569;
  line-height: 1.6;
}

/* Actions */
.ozr-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 12px;
}
.ozr-actions .btn {
  padding: 14px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 14px;
  border: none;
}
.ozr-actions .btn-secondary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
.ozr-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}
.ozr-actions .btn-primary:disabled {
  background: #c7d2fe;
  box-shadow: none;
  cursor: not-allowed;
}

/* Utility */
.ozr-disabled {
  opacity: .55;
  pointer-events: none;
}

/* ============================================================
   16. 予約編集（booking-edit）
============================================================ */

/* カード */
.pro-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.pro-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.oz-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
}

/* フォームコントロール */
.pro-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pro-input:focus {
  outline: none;
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(240,90,36,.12);
}
.pro-select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  appearance: auto;
  transition: border-color .15s ease;
}
.pro-select:focus {
  outline: none;
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(240,90,36,.12);
}
.pro-textarea {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  resize: vertical;
  transition: border-color .15s ease;
}
.pro-textarea:focus {
  outline: none;
  border-color: var(--oz-primary);
  box-shadow: 0 0 0 3px rgba(240,90,36,.12);
}

/* 横並び行 */
.flex-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.flex-row .pro-input,
.flex-row .pro-select {
  flex: 1;
}

/* OPTION / DISCOUNT / EXTENSION ブロック */
.oz-option-block {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.oz-option-block.is-extension {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.oz-option-block.is-discount {
  background: #fef2f2;
  border-color: #fecaca;
}
.oz-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* チェックリスト行 */
.oz-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oz-check-row {
  display: grid;
  grid-template-columns: 20px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.oz-check-row:hover { background: #f1f5f9; }
.oz-check-row input[type="checkbox"] { width: 16px; height: 16px; }
.oz-check-row .label-text {
  font-size: 14px;
  color: #111827;
  line-height: 1.4;
}
.oz-check-row input[type="checkbox"]:checked ~ .label-text { font-weight: 600; }
.oz-check-row .price {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.oz-check-row .price.plus  { color: #2563eb; }
.oz-check-row .price.minus { color: #dc2626; }

/* 延長回数入力 */
.oz-count-input {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  background: #ffffff;
}
.oz-count-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* 料金サマリー */
.oz-price-section { margin-bottom: 12px; }
.oz-price-list { display: flex; flex-direction: column; gap: 6px; }
.oz-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.oz-price-row .label { color: #475569; }
.oz-price-row .price { font-weight: 600; color: #0f172a; }
.oz-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0;
  border-top: 2px solid #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

/* ============================================================
   17. 予約詳細（page-booking）bd-*
============================================================ */

/* SP/PC 表示切替 */
.bd-sp-only { display: block; }
.bd-pc-only { display: none; }

@media (min-width: 1200px) {
  .bd-sp-only { display: none !important; }
  .bd-pc-only { display: block !important; }
}

/* PC 2カラムレイアウト */
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
  padding: 0 0 24px;
}

@media (max-width: 900px) {
  .bd-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .bd-col-side { position: sticky; top: 20px; }

  .bd-hero-area { margin-bottom: 0; }
  .bd-hero {
    border-radius: 14px;
    border: 1px solid var(--oz-border-light);
    margin-bottom: 12px;
  }
  .bd-col-main .bd-section,
  .bd-col-side .bd-section {
    padding: 0;
    gap: 12px;
  }
}

/* PC pagetitleのアクション配置 */
.bd-pc-only .page-header {
  display: flex;
  align-items: center;
}

/* ページヘッダー */
.bd-page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  background: var(--oz-surface);
  border-bottom: 1px solid var(--oz-border-light);
}
.bd-page-header-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--oz-surface-2);
  color: var(--oz-text-dark);
  font-size: 16px;
  text-decoration: none;
  flex-shrink: 0;
}
.bd-page-header-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--oz-text-dark);
}
.bd-page-header-actions {
  display: flex;
  gap: 8px;
}
.bd-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--oz-surface-2);
  border: 1px solid var(--oz-border);
  color: var(--oz-text-dark);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.bd-icon-btn:hover { background: var(--oz-border-light); color: var(--oz-text-dark); }

/* ヒーロー */
.bd-hero {
  background: var(--oz-surface);
  padding: 16px;
  border-bottom: 1px solid var(--oz-border-light);
}
.bd-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bd-hero-id {
  font-size: 11px;
  color: var(--oz-text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.bd-hero-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--oz-text-dark);
  line-height: 1.2;
}
.bd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bd-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--oz-text-sub);
  background: var(--oz-surface-2);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--oz-border-light);
}

/* ステータスバッジ */
.bd-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.bd-s-0  { background: #fef3c7; color: #92400e; }
.bd-s-1  { background: #d1fae5; color: #065f46; }
.bd-s-2  { background: #dbeafe; color: #1e40af; }
.bd-s--1 { background: #fee2e2; color: #991b1b; }

/* ステータスバー */
.bd-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--oz-surface);
  border: 1px solid var(--oz-border-light);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.bd-status-bar-readonly {
  background: var(--oz-surface-2);
}
.bd-status-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--oz-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.bd-status-select {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid var(--oz-border);
  border-radius: 8px;
  background: var(--oz-surface);
  color: var(--oz-text-dark);
}
.bd-status-select:focus { border-color: var(--oz-primary); outline: none; }
.bd-status-update-btn { flex-shrink: 0; }
.bd-status-bar-note {
  margin-left: auto;
  font-size: 11px;
  color: var(--oz-text-muted);
  white-space: nowrap;
}

/* SP：ステータスバーをヒーロー直下フラットに */
@media (max-width: 1199px) {
  .bd-status-bar {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    margin-bottom: 0;
    padding: 10px 16px;
    background: var(--oz-surface-2);
  }
}

/* セクション */
.bd-section {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* カード */
.bd-card {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border-light);
  border-radius: 14px;
  overflow: hidden;
}
.bd-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--oz-text-dark);
  padding: 12px 16px;
  border-bottom: 1px solid var(--oz-border-light);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--oz-surface-2);
}
.bd-card-title i { color: var(--oz-primary); }

/* 行 */
.bd-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--oz-border-light);
  font-size: 13px;
}
.bd-row:last-child { border-bottom: none; }
.bd-row-label {
  min-width: 72px;
  color: var(--oz-text-muted);
  font-size: 12px;
  padding-top: 1px;
  flex-shrink: 0;
}
.bd-row-value {
  flex: 1;
  color: var(--oz-text-dark);
  font-weight: 500;
  word-break: break-word;
}
.bd-row-value p { margin: 0; }

/* コースタグ */
.bd-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-course-tag {
  display: inline-block;
  background: var(--oz-primary-bg);
  color: var(--oz-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* 料金行 */
.bd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--oz-border-light);
  font-size: 13px;
}
.bd-price-name { color: var(--oz-text-sub); }
.bd-price-amt { font-weight: 600; color: var(--oz-text-dark); }
.bd-price-amt.minus { color: #dc2626; }
.bd-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--oz-surface-2);
  font-size: 14px;
}
.bd-price-total-label { font-weight: 600; color: var(--oz-text-sub); }
.bd-price-total-value { font-size: 18px; font-weight: 800; color: var(--oz-text-dark); }
.bd-price-card-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #eff6ff;
  border-top: 1px dashed #bfdbfe;
  font-size: 13px;
}
.bd-price-card-final-label { color: #1d4ed8; font-weight: 600; }
.bd-price-card-final-value { font-size: 16px; font-weight: 800; color: #1d4ed8; }

/* 請求KPI */
.bd-billing-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--oz-border-light);
  border-bottom: 1px solid var(--oz-border-light);
}
.bd-billing-kpi-item {
  background: var(--oz-surface);
  padding: 12px;
  text-align: center;
}
.bd-billing-kpi-label {
  font-size: 11px;
  color: var(--oz-text-muted);
  margin-bottom: 4px;
}
.bd-billing-kpi-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--oz-text-dark);
}
.bd-billing-kpi-value.paid   { color: #059669; }
.bd-billing-kpi-value.unpaid { color: #dc2626; }

/* 請求発行 */
.bd-billing-issue {
  padding: 14px 16px;
  border-bottom: 1px solid var(--oz-border-light);
}
.bd-billing-issue-note {
  font-size: 12px;
  color: var(--oz-text-muted);
  margin-bottom: 8px;
}
.bd-billing-issue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  background: var(--oz-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* 請求行 */
.bd-billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--oz-border-light);
  gap: 12px;
}
.bd-billing-row-left { flex: 1; }
.bd-billing-row-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--oz-text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.bd-billing-meta {
  font-size: 11px;
  color: var(--oz-text-muted);
  margin-bottom: 6px;
}
.bd-billing-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.bd-billing-chip.paid   { background: #d1fae5; color: #065f46; }
.bd-billing-chip.unpaid { background: #fee2e2; color: #991b1b; }
.bd-billing-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--oz-text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.bd-pay-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bd-pay-select {
  flex: 1;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid var(--oz-border);
  border-radius: 6px;
  background: var(--oz-surface);
}
.bd-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

/* 延長承認バナー */
.bd-ext-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
}
.bd-ext-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #d97706;
}
.bd-ext-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}
.bd-ext-sub {
  font-size: 11px;
  color: #b45309;
  margin-top: 2px;
}
.bd-ext-approve-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  background: #d97706;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* 延長・追加フォーム */
.bd-ext-form {
  padding: 14px 16px;
}
.bd-ext-form-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--oz-text-dark);
  margin-bottom: 10px;
}
.bd-ext-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bd-ext-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--oz-border);
  border-radius: 8px;
  background: var(--oz-surface);
}
.bd-ext-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--oz-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* タイムライン */
.bd-timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 4px;
}
.bd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7px;
  width: 2px;
  height: 100%;
  background: var(--oz-border);
}
.bd-tl-item {
  position: relative;
  padding-bottom: 18px;
}
.bd-tl-item:last-child { padding-bottom: 0; }
.bd-tl-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d1d5db;
}
.bd-tl-dot.highlight {
  background: var(--oz-primary);
  box-shadow: 0 0 0 1px var(--oz-primary);
}
.bd-tl-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--oz-text-dark);
  margin-bottom: 2px;
}
.bd-tl-meta {
  font-size: 11px;
  color: var(--oz-text-muted);
}
.bd-tl-toggle {
  font-size: 11px;
  color: var(--oz-primary);
  cursor: pointer;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.bd-tl-detail {
  display: none;
  margin-top: 6px;
  background: var(--oz-bg-light);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--oz-text-sub);
  font-family: monospace;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* フッター */
.bd-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--oz-surface);
  border-top: 1px solid var(--oz-border);
  z-index: 100;
}
.bd-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--oz-surface-2);
  border: 1px solid var(--oz-border);
  color: var(--oz-text-dark);
  border-radius: 10px;
  text-decoration: none;
}
.bd-footer-edit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  background: var(--oz-primary);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.bd-footer-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* ============================================================
   18. 予約履歴（booking-history）
============================================================ */

/* 検索ボックス */
.bh-search-box {
  background: var(--oz-surface);
  border: 1px solid var(--oz-border-light);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.bh-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bh-search-input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid var(--oz-border);
  border-radius: 8px;
  background: var(--oz-surface);
  color: var(--oz-text-dark);
}
.bh-search-input:focus {
  outline: none;
  border-color: var(--oz-primary);
}

/* 空状態 */
.bh-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--oz-text-muted);
  font-size: 13px;
}
.bh-empty i { font-size: 32px; }

/* ─── SP カードリスト（〜767px で表示）──── */
.bh-card-list { display: flex; flex-direction: column; gap: 10px; }
.bh-table-wrap { display: none; }

@media (min-width: 768px) {
  .bh-card-list  { display: none; }
  .bh-table-wrap { display: block; }
}

/* カード */
.bh-card {
  display: block;
  background: var(--oz-surface);
  border: 1px solid var(--oz-border-light);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
}
.bh-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); color: inherit; }

/* ステータス別左ボーダー */
.bh-card.status-3  { border-left: 3px solid #60a5fa; }
.bh-card.status-4  { border-left: 3px solid #4ade80; }
.bh-card.status--1 { border-left: 3px solid #f87171; }

.bh-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bh-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--oz-text-dark);
}
.bh-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.bh-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--oz-text-sub);
  background: var(--oz-surface-2);
  padding: 3px 8px;
  border-radius: 20px;
}
.bh-card-course {
  font-size: 12px;
  color: var(--oz-primary);
  background: var(--oz-primary-bg);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  display: inline-block;
}
.bh-card-location {
  font-size: 12px;
  color: var(--oz-text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}
.bh-card-location small {
  color: var(--oz-text-muted);
  margin-left: 4px;
}

/* ─── PC テーブル ─── */
.bh-table td { font-size: 12px; vertical-align: middle; }
tr.status-3  td { background-color: #e7f4ff !important; }   /* 完了 */
tr.status-4  td { background-color: #e8fbe8 !important; }   /* 支払い完了 */
tr.status--1 td { background-color: #f8f0f0 !important; }   /* キャンセル */

/* ページネーション */
.bh-pagination { margin-top: 16px; }

/* ============================================================
   ボタン統一（全ページ共通）
============================================================ */
.oz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity .15s, box-shadow .15s;
  text-decoration: none;
}

.oz-btn:hover { opacity: .88; }
.oz-btn:active { opacity: .75; }

.oz-btn-primary {
  background: #4154f1;
  color: #fff;
  border-color: #4154f1;
}

.oz-btn-secondary {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}

.oz-btn-secondary:hover {
  background: #f3f4f6;
  opacity: 1;
}

.oz-btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.oz-btn-danger:hover {
  background: #fecaca;
  opacity: 1;
}

.oz-btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 6px;
}

.oz-btn-lg {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 8px;
}

/* ============================================================
   バッジ統一（全ページ共通）
============================================================ */
.oz-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.oz-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  flex-shrink: 0;
}

.oz-badge-confirm  { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.oz-badge-complete { background: #dcfce7; color: #16a34a; border-color: #bbf7d0; }
.oz-badge-cancel   { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.oz-badge-pending  { background: #fef3c7; color: #d97706; border-color: #fde68a; }
.oz-badge-progress { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.oz-badge-normal   { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.oz-badge-vip      { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.oz-badge-ng       { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

/* ============================================================
   予約詳細 横幅統一
============================================================ */
.booking-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .booking-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   10. アニメーション
============================================================ */
@keyframes ozFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ozDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   売上一覧 (sll-*) & 共通追加
============================================================ */

/* タイトル行アクション */
.sl-title-actions {
  display: flex; align-items: center; gap: 8px;
}

/* KPI アイコン色 */
.sl-kpi-icon.green { background: #dcfce7; color: #16a34a; }
.sl-kpi-icon.blue  { background: #dbeafe; color: #2563eb; }
.sl-kpi-icon.amber { background: #fef3c7; color: #d97706; }

/* oz-btn-ghost */
.oz-btn-ghost {
  background: transparent; border: 1.5px solid var(--oz-border);
  color: var(--oz-text-muted); border-radius: var(--oz-radius-sm);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none;
}
.oz-btn-ghost:hover { background: var(--oz-bg-light); color: var(--oz-text-dark); }

/* 検索行 */
.sll-search-row {
  display: flex; gap: 8px; margin-top: 8px;
}
.sll-search-input {
  flex: 1; padding: 9px 12px; border-radius: var(--oz-radius-sm);
  border: 1.5px solid var(--oz-border); font-size: 13px;
  font-family: inherit; color: var(--oz-text-dark);
  background: var(--oz-surface); transition: border .18s;
}
.sll-search-input:focus { border-color: var(--oz-primary); outline: none; box-shadow: 0 0 0 3px rgba(65,84,241,.12); }

/* SPカードリスト（< 768px 表示） */
.sll-card-list {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 14px 20px;
}
.sll-card-link {
  display: flex; align-items: center; gap: 11px;
  flex: 1; min-width: 0; text-decoration: none; color: inherit;
}
.sll-edit-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--oz-radius-sm);
  border: 1.5px solid var(--oz-border);
  color: var(--oz-text-muted); font-size: 13px;
  text-decoration: none; transition: background .15s;
}
.sll-edit-btn:hover { background: var(--oz-bg-light); color: var(--oz-primary); }

/* カード内 取り分バッジ行 */
.sll-share-row { display: flex; gap: 6px; margin-top: 3px; }
.sll-share {
  font-size: 10px; font-weight: 600; padding: 1px 6px;
  border-radius: 99px; white-space: nowrap;
}
.sll-share.cast  { background: #dbeafe; color: #1d4ed8; }
.sll-share.store { background: #dcfce7; color: #15803d; }

/* カード右側 報酬率 */
.sll-rate {
  font-size: 10px; color: var(--oz-text-muted); text-align: right;
  margin-top: 2px; font-family: 'DM Sans', sans-serif;
}

/* PCテーブル（>= 768px 表示） */
.sll-table-wrap {
  padding: 0 14px 16px;
  overflow-x: auto;
}
.sll-table {
  width: 100%; min-width: 700px; font-size: 13px;
  border-collapse: collapse;
}
.sll-table thead th {
  background: var(--oz-bg-light); font-size: 11px; font-weight: 700;
  color: var(--oz-text-muted); padding: 8px 10px;
  white-space: nowrap; border-bottom: 2px solid var(--oz-border);
}
.sll-table tbody td { padding: 9px 10px; vertical-align: middle; }
.sll-table tbody tr:hover { background: var(--oz-bg-light); }

.sll-amount-cell { font-weight: 700; color: var(--oz-text-dark); }
.sll-cast-cell   { font-weight: 600; color: #2563eb; }
.sll-store-cell  { font-weight: 600; color: #15803d; }
.sll-rate-cell   { font-size: 12px; color: var(--oz-text-muted); }
.sll-date-cell   { font-size: 12px; color: var(--oz-text-muted); white-space: nowrap; }
.sll-link        { color: var(--oz-primary); text-decoration: none; font-weight: 600; }
.sll-link:hover  { text-decoration: underline; }

.sll-tfoot td {
  font-weight: 700; font-size: 12px;
  background: var(--oz-bg-light); border-top: 2px solid var(--oz-border);
}

/* ページネーション */
.sll-pagination { padding: 8px 14px 20px; }

/* レスポンシブ切り替え */
@media (min-width: 768px) {
  .sll-card-list { display: none; }
  .sll-table-wrap { display: block; }
}
@media (max-width: 767px) {
  .sll-card-list { display: flex; }
  .sll-table-wrap { display: none; }
}

/* 現金精算ステータスバッジ */
.oz-badge-unsettled {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.oz-badge-settled {
  background: #dcfce7;
  color: #16a34a;
  border-color: #bbf7d0;
}

/* =====================================================
   現金精算一覧 KPI グリッド
===================================================== */
.oz-kpi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.oz-kpi-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 16px rgba(1, 41, 112, 0.08);
}

.oz-kpi-label {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.oz-kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 4px;
}

.oz-kpi-sub {
  font-size: 11px;
  color: #9ca3af;
}

@media (max-width: 576px) {
  .oz-kpi-grid-3 {
    grid-template-columns: 1fr;
  }
}


/* =========================
   現金精算一覧 修正
========================= */

/* KPI横並びを安定させる */
.kpi-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .kpi-wrap {
    grid-template-columns: 1fr;
  }
}

/* KPIカード */
.kpi {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(1, 41, 112, 0.08);
}

.kpi-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.kpi-val {
  font-size: 20px;
  font-weight: 700;
}

/* フィルター崩れ防止 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

/* テーブル全体 */
.oz-table {
  width: 100%;
  table-layout: fixed; /* ←これ重要 */
}

/* カラム幅固定 */
.oz-table th,
.oz-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 金額は右寄せ */
.oz-table .te {
  text-align: right;
  font-weight: 600;
}

/* ステータスバッジ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

/* テーブル余白 */
.tbl-wrap {
  overflow-x: auto;
}

/* NiceAdminのcard-body上書き（これが原因の一つ） */
.card-body {
  padding: 16px !important;
}

/* 行の高さ安定 */
.oz-table tbody td {
  padding: 12px 10px;
}

/* ボタン崩れ防止 */
.btn-sm {
  white-space: nowrap;
}

/* コンテナ幅を広げる */
.oz-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 上部カード */
.oz-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.oz-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* テーブル全体 */
.oz-table-wrap {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* テーブル */
.oz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.oz-table th,
.oz-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

/* ヘッダー */
.oz-table th {
  font-weight: 600;
  color: #666;
  background: #fafafa;
}

/* 数値右寄せ */
.oz-table td.num {
  text-align: right;
}

/* ステータス */
.oz-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.oz-status.done {
  background: #e6f7ec;
  color: #16a34a;
}

/* 合計行 */
.oz-table tfoot td {
  font-weight: bold;
  background: #fafafa;
}

/* 最後の行の線消す */
.oz-table tr:last-child td {
  border-bottom: none;
}

/* フィルターバー（白背景カード） */
.oz-filter-bar {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 16px rgba(1, 41, 112, 0.08);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.oz-filter-bar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* フィルターバー内ボタン：select/input と高さを揃える */
.oz-filter-btn {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

/* tfoot 合計行 */
.oz-table tfoot td {
  padding: 9px 10px;
  font-size: 13px;
  background: var(--oz-bg-light);
  border-top: 2px solid var(--oz-border);
  vertical-align: middle;
}

/* ============================================================
   9. 給与明細（ps-*）
============================================================ */

/* 2カラムレイアウト：左=明細+内訳 / 右=確定 */
.ps-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
  max-width: 1000px;
}

/* 明細カード */
.ps-card {
  background: #fff;
  border: 1px solid var(--oz-border);
  border-radius: 10px;
  overflow: hidden;
}

/* セクションラベル（支給項目 / 控除項目） */
.ps-section-label {
  padding: 10px 20px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--oz-text-muted);
}

/* 各明細行 */
.ps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--oz-bg-muted);
  font-size: 13px;
}
.ps-row-label { color: var(--oz-text); }
.ps-row-count {
  font-size: 11px;
  color: var(--oz-text-muted);
  margin-left: 5px;
}
.ps-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--oz-text-dark);
}
.ps-row-deduct .ps-row-value { color: #dc2626; }

/* 支給合計行 */
.ps-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--oz-bg-light);
  border-bottom: 1px solid var(--oz-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--oz-text-dark);
}

/* 振込額行 */
.ps-transfer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--oz-bg-light);
  border-top: 2px solid var(--oz-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--oz-text-dark);
}

/* 内訳セクション（ps-card 直下） */
.ps-detail-wrap {
  margin-top: 12px;
  border: 1px solid var(--oz-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.ps-detail-section:not(:first-child) {
  border-top: 1px solid var(--oz-border);
}
.ps-detail-title {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--oz-text-muted);
  background: var(--oz-bg-light);
}
.ps-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ps-detail-table th {
  padding: 6px 10px 6px 16px;
  font-size: 10px;
  font-weight: 600;
  color: var(--oz-text-muted);
  background: var(--oz-bg-light);
  border-bottom: 1px solid var(--oz-border);
  white-space: nowrap;
}
.ps-detail-table th:last-child { padding-right: 16px; text-align: right; }
.ps-detail-table td {
  padding: 7px 10px 7px 16px;
  border-bottom: 1px solid var(--oz-bg-muted);
  color: var(--oz-text);
  vertical-align: middle;
}
.ps-detail-table td:last-child {
  padding-right: 16px;
  text-align: right;
  font-weight: 600;
}
.ps-detail-table tr:last-child td { border-bottom: none; }
.ps-detail-subtotal td {
  background: var(--oz-bg-light);
  font-weight: 700;
  font-size: 12px;
  border-top: 1px solid var(--oz-border);
  border-bottom: none;
}
.ps-detail-deduct td:last-child { color: #dc2626; }
.ps-detail-ellipsis {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-detail-rate {
  font-size: 10px;
  background: var(--oz-bg-muted);
  color: var(--oz-text);
  padding: 1px 5px;
  border-radius: 999px;
  font-weight: 400;
}

/* 確定カード（右カラム） */
.ps-confirm-card {
  background: #fff;
  border: 1px solid var(--oz-border);
  border-radius: 10px;
  padding: 18px 18px;
}
.ps-confirm-card > .oz-label { display: block; margin-bottom: 6px; }

/* SP対応 */
@media (max-width: 760px) {
  .ps-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .ps-section-label  { padding: 10px 14px 2px; }
  .ps-row            { padding: 10px 14px; }
  .ps-subtotal       { padding: 10px 14px; }
  .ps-transfer-row   { padding: 12px 14px; }
  .ps-confirm-card   { padding: 14px 14px; }
  .ps-detail-table th,
  .ps-detail-table td { padding-left: 12px; }
}

/* ============================================================
   9. 売上編集（se-*）
============================================================ */

/* ── ラッパー / アラート ─────────────── */
.se-wrap           { padding: 16px 14px 8px; }
.se-wrap > .bd-card { margin-bottom: 14px; }
.se-alert          { margin: 12px 14px 0; }

/* ── ユーティリティ ─────────────────── */
.se-link           { color: var(--oz-primary); text-decoration: none; font-weight: 600; }
.se-link:hover     { text-decoration: underline; }
.se-empty          { color: var(--oz-text-muted); }
.se-muted-tag      { font-size: 11px; color: var(--oz-text-muted); }

/* ── 参照のみラベル ─────────────────── */
.se-ref-label {
  font-size: 11px;
  color: var(--oz-text-muted);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
  text-transform: none;
}

/* ── カードタイトル右端ラベル ────────── */
.se-title-label {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--oz-primary);
  text-transform: none;
  letter-spacing: 0;
}

/* ── ステータスバッジ ───────────────── */
.se-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

/* ── 情報グリッド（① 予約情報） ─────── */
.se-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.se-info-cell {
  padding: 13px 16px;
  border-bottom: 1px solid var(--oz-border-light);
}
.se-info-cell:nth-child(odd)        { border-right: 1px solid var(--oz-border-light); }
.se-info-cell:nth-last-child(-n+2)  { border-bottom: none; }
.se-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--oz-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.se-info-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--oz-text-dark);
  line-height: 1.4;
}

/* ── 合計テーブル ───────────────────── */
.se-totals          { padding: 4px 16px 2px; }
.se-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--oz-border);
}
.se-totals-row:last-child            { border-bottom: none; padding-bottom: 6px; }
.se-totals-row__label                { font-size: 13px; color: var(--oz-text-sub); }
.se-totals-row__amount               { font-size: 13px; font-weight: 600; }
.se-totals-row--grand .se-totals-row__label  { font-size: 14px; font-weight: 700; color: var(--oz-text-dark); }
.se-totals-row--grand .se-totals-row__amount { font-size: 18px; font-weight: 800; color: var(--oz-text-dark); }

/* ── 支払方法フッター ───────────────── */
.se-pay-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--oz-bg-light);
  border-top: 1px solid var(--oz-border-light);
  font-size: 12px;
  color: var(--oz-text-sub);
}
.se-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: var(--oz-primary-bg);
  color: var(--oz-primary);
}

/* ── 3P バナー ──────────────────────── */
.se-3p-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  font-size: 12px;
  color: #92400e;
}

/* ── キャストリスト ─────────────────── */
.se-cast-list {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.se-cast-block {
  border: 1px solid var(--oz-border);
  border-radius: 10px;
  background: var(--oz-surface);
  overflow: hidden;
}
.se-cast-block--active {
  border-color: var(--oz-primary);
  background: #fafbff;
  box-shadow: 0 0 0 3px rgba(65, 84, 241, .06);
}
.se-cast-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--oz-surface-2);
  border-bottom: 1px solid var(--oz-border-light);
}
.se-cast-block--active .se-cast-block-head {
  background: #eef1ff;
  border-bottom-color: #dbe4ff;
}
.se-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.se-cast-name { font-size: 14px; font-weight: 600; color: var(--oz-text-dark); flex: 1; }
.se-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.se-badge--main { background: var(--oz-primary-bg); color: var(--oz-primary); }
.se-badge--sub  { background: var(--oz-bg-muted);   color: var(--oz-text-sub); }

/* ── キャストブロック本体 ────────────── */
.se-cast-body { padding: 16px; }
.se-cast-body .oz-form-group:last-of-type { margin-bottom: 0; }
.se-cast-name-row {
  font-size: 13px;
  font-weight: 600;
  color: var(--oz-text-dark);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oz-border-light);
}

/* ── カテゴリバッジ ─────────────────── */
.se-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

/* ── 入力グリッド ───────────────────── */
.se-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.se-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

/* ── 単位付き入力 ───────────────────── */
.se-input-with-unit              { display: flex; align-items: center; gap: 8px; }
.se-input-with-unit > .oz-input  { max-width: 140px; }
.se-unit                         { font-size: 13px; color: var(--oz-text-muted); flex-shrink: 0; }

/* ── フォームアクション行 ────────────── */
.se-form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }

/* ── 読み取り専用の oz-input ─────────── */
.oz-input.oz-readonly { cursor: default; }

/* ── ③ 支払い情報ボディ ─────────────── */
.se-body               { padding: 16px; }
.se-pay-method-row     { display: flex; align-items: center; gap: 10px; }
.se-pay-method-input   { flex: 0 1 160px; }

/* ── 取り分サマリー ─────────────────── */
.se-summary-section { border-top: 1px solid var(--oz-border-light); padding-top: 12px; }
.se-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--oz-border);
}
.se-summary-row:last-of-type                  { border-bottom: none; }
.se-summary-row__label                        { font-size: 13px; color: var(--oz-text-sub); font-weight: 500; }
.se-summary-row__amount                       { font-size: 13px; font-weight: 700; color: var(--oz-text-dark); }
.se-summary-row__label--cast,
.se-summary-row__amount--cast                 { color: #1d4ed8; }
.se-summary-row__label--store,
.se-summary-row__amount--store                { color: #15803d; }
.se-summary-note                              { font-size: 11px; color: var(--oz-text-muted); margin-top: 6px; }

/* ── フッターボタン ─────────────────── */
.se-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 14px 24px;
}

/* ── SP 対応 ────────────────────────── */
@media (max-width: 575px) {
  .se-wrap                        { padding: 12px 10px 8px; }
  .se-footer                      { padding: 4px 10px 24px; }
  .se-info-grid                   { grid-template-columns: 1fr; }
  .se-info-cell                   { border-right: none !important; border-bottom: 1px solid var(--oz-border-light) !important; }
  .se-info-cell:last-child        { border-bottom: none !important; }
  .se-grid-2col,
  .se-grid-3col                   { grid-template-columns: 1fr; }
}
/* === 売上一覧 Shopify風フィルター === */

.sl-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sl-date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #1f2937;
  transition: border-color .15s;
  position: relative;
  white-space: nowrap;
}
.sl-date-trigger:hover { border-color: #4154f1; }
.sl-date-trigger .sl-trigger-caret { font-size: 10px; opacity: .5; }

.sl-filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
}
.sl-filter-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  pointer-events: none;
}
.sl-filter-search-input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 28px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  color: #1f2937;
  background: #f9fafb;
}
.sl-filter-search-input:focus {
  outline: none;
  border-color: #4154f1;
  box-shadow: 0 0 0 3px rgba(65,84,241,.1);
}

/* ドロップダウン */
.sl-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: none;
  width: 560px;
  overflow: hidden;
}
.sl-dropdown.open { display: flex; }

/* プリセット左カラム */
.sl-preset-list {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid #f3f4f6;
  padding: 8px 0;
}
.sl-preset-item {
  padding: 7px 14px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: background .1s;
}
.sl-preset-item:hover { background: #f9fafb; }
.sl-preset-item.active {
  background: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
}

/* カレンダーエリア */
.sl-cal-area { flex: 1; padding: 12px 14px; }
.sl-cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.sl-cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sl-cal-month-label { font-size: 12px; font-weight: 600; color: #1f2937; }
.sl-cal-nav-btn {
  width: 22px; height: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  color: #6b7280;
  display: flex; align-items: center; justify-content: center;
}
.sl-cal-nav-btn:hover { background: #f3f4f6; }

.sl-cal-grids { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sl-cal-grid table { width: 100%; border-collapse: collapse; }
.sl-cal-grid th {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  padding: 3px 0;
  font-weight: 400;
}
.sl-cal-grid td { text-align: center; padding: 1px 0; }
.sl-cal-grid td span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  color: #1f2937;
  transition: background .1s;
}
.sl-cal-grid td span:hover { background: #f3f4f6; }
.sl-cal-grid td span.sl-today { font-weight: 700; color: #4154f1; }
.sl-cal-grid td span.sl-sel-start,
.sl-cal-grid td span.sl-sel-end { background: #4154f1; color: #fff; }
.sl-cal-grid td span.sl-sel-start { border-radius: 5px 0 0 5px; }
.sl-cal-grid td span.sl-sel-end   { border-radius: 0 5px 5px 0; }
.sl-cal-grid td span.sl-sel-start.sl-sel-end { border-radius: 5px; }
.sl-cal-grid td span.sl-in-range  { background: #eef0fd; color: #3340c4; border-radius: 0; }
.sl-cal-grid td span.sl-other-month { opacity: .3; }

/* ドロップダウンフッター */
.sl-dropdown-footer {
  padding: 10px 14px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sl-dropdown-range-label { font-size: 12px; color: #6b7280; }
.sl-dropdown-footer-btns { display: flex; gap: 8px; }
.sl-dropdown-cancel {
  height: 28px; padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  color: #374151;
}
.sl-dropdown-apply {
  height: 28px; padding: 0 14px;
  background: #4154f1;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* SP対応 */
@media (max-width: 640px) {
  .sl-dropdown { width: calc(100vw - 32px); }
  .sl-cal-months, .sl-cal-grids { grid-template-columns: 1fr; }
}

.sl-preset-heading {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sl-preset-heading { border-top: 1px solid #f3f4f6; margin-top: 4px; }

.sl-preset-list { overflow-y: auto; max-height: 260px; }
