/* =========================================================================
   NOCT 本番版で足した部品（noct.css はデモから移植したものをそのまま使う）
   配色ルール：濃色背景には白文字。主＝ゴールド、副＝バイオレット
   ========================================================================= */

.noct .noct-bare { min-height: 100vh; padding: 24px 16px; }

.noct .noct-login { max-width: 380px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 18px; }

.noct .noct-form { display: flex; flex-direction: column; gap: 14px; }
.noct .noct-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.noct .noct-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.noct .noct-field .noct-hint { font-size: 11px; color: var(--dim); }
.noct .noct-field-error { font-size: 11.5px; color: #fff; background: var(--red-soft); border: 1px solid rgba(248, 113, 113, .45); border-radius: var(--r-sm); padding: 8px 10px; }
.noct .noct-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }

.noct .noct-flash {
  margin-bottom: 16px; padding: 11px 14px; border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  color: #fff; background: var(--emerald-soft); border: 1px solid rgba(52, 211, 153, .4);
}
.noct .noct-flash.is-alert { background: var(--red-soft); border-color: rgba(248, 113, 113, .45); }

.noct .noct-header-user { text-align: right; line-height: 1.35; }
.noct .noct-header-user-name { font-size: 12.5px; font-weight: 700; color: #fff; }
.noct .noct-header form { margin: 0; }

.noct .noct-kpi { display: block; color: #fff; }

/* 表は横スクロールさせない。狭い画面では1行をカードに積む */
.noct .noct-table td.num, .noct .noct-table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.noct .noct-table .is-inactive td { color: var(--dim); }
@media (max-width: 720px) {
  .noct .noct-table.stack thead { display: none; }
  .noct .noct-table.stack tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .noct .noct-table.stack tbody td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; border: none; text-align: right; }
  .noct .noct-table.stack tbody td::before { content: attr(data-label); color: var(--muted); font-size: 11.5px; text-align: left; }
}

/* ---- 共通の小物 ---------------------------------------------------------- */
.noct .noct-mt { margin-top: 12px; }
.noct .noct-mb { margin-bottom: 16px; }
.noct .noct-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.noct .noct-inline .noct-input { flex: 1 1 160px; min-width: 0; }
.noct .noct-inline-form { display: inline; margin: 0; }
.noct .noct-link-btn { background: none; border: none; padding: 2px 4px; color: #fff; font-size: 11px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.noct .noct-form-grid.tight { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.noct .noct-flash.is-info { background: var(--violet-soft); border-color: rgba(168, 120, 255, .4); }
.noct .noct-flash .noct-ic { vertical-align: -2px; }
.noct .noct-flow.three { grid-template-columns: repeat(3, 1fr); }
.noct a.noct-flow-step { display: block; color: #fff; }
@media (max-width: 720px) { .noct .noct-flow.three { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .noct .noct-grid.noct-stack-md { grid-template-columns: 1fr; } }
.noct .noct-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; }
.noct .noct-def { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.noct .noct-def-k { color: var(--muted); }
.noct .noct-def-v { color: #fff; font-weight: 700; }

/* ---- ダイアログ（キャスト選択・折半） ------------------------------------ */
.noct dialog.noct-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: #fff;
  box-shadow: var(--shadow-lg);
}
.noct dialog.noct-dialog::backdrop { background: rgba(5, 6, 12, .72); backdrop-filter: blur(3px); }
.noct .noct-dialog-sec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.noct .nh2-picker-grid { max-height: none; }
@media (max-width: 480px) { .noct .nh2-picker-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- ハンディ（本番版） -------------------------------------------------- */
.noct .nh2.nh2-app .nh2-card { display: block; color: #fff; }
.noct .nh2.nh2-app .nh2-panel-head { flex-wrap: wrap; }
.noct .nh-empty.lg { padding: 48px 16px; }
.noct .nh-sec-t-split { justify-content: space-between; }
.noct .nh-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.noct .nh-menu-form { margin: 0; display: flex; }
.noct .nh-menu-form .nh-menu { width: 100%; }
.noct .noct-castline { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
@media (max-width: 900px) {
  .noct .nh2.nh2-app { grid-template-columns: 1fr; }
  .noct .nh2.nh2-app .nh2-tables { flex-direction: column; overflow: visible; }
  /* 卓・卓なし・会計済みの区切りが分かるよう、狭い幅でも見出しを出す（デモは横一列だったため隠していた） */
  .noct .nh2.nh2-app .nh2-tables-head { display: flex; }
  .noct .nh2.nh2-app .nh2-card { min-width: 0; }
}
@media (max-width: 480px) { .noct .nh2.nh2-app .nh-menus { grid-template-columns: 1fr; } }

/* ---- 日次締め ------------------------------------------------------------ */
.noct .nc-seats { display: flex; flex-direction: column; gap: 4px; }
.noct .nc-seat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 721px) { .noct .nc-seat { justify-content: flex-start; } }
.noct .nc-net { color: var(--gold); }
.noct .noct-table tfoot td { padding: 12px; border-top: 2px solid var(--line); }
@media (max-width: 720px) {
  .noct .noct-table.stack tfoot tr { display: flex; justify-content: space-between; }
  .noct .noct-table.stack tfoot td { border: none; }
  .noct .nc-rank-row { grid-template-columns: 20px 1fr 80px; }
  .noct .nc-rank-row .nc-rank-bar { display: none; }
}

/* ---- バック管理 --------------------------------------------------------- */
.noct .nb-summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
@media (min-width: 721px) { .noct .nb-summary { justify-content: flex-start; } }
.noct .noct-ph-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.noct .noct-hint { font-size: 11px; color: var(--dim); }

/* ---- 勤怠・控除 --------------------------------------------------------- */
.noct .nt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 360px) { .noct .nt-cards { grid-template-columns: 1fr; } }
.noct .nt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.noct .nt-card-name { font-size: 16px; margin-right: 6px; color: #fff; }
.noct .nt-fieldset { border: none; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.noct .nt-details summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #fff; }

/* ---- 申請・承認 --------------------------------------------------------- */
.noct .nb-decide { min-width: 200px; gap: 8px; }
.noct .b-alert-static { background: var(--red-soft); color: #fff; border-color: rgba(248, 113, 113, .45); }
.noct .noct-link { color: #fff; text-decoration: underline; }
.noct .noct-orderline.is-voided .nm strong, .noct .noct-orderline.is-voided .noct-mono { text-decoration: line-through; color: var(--dim); }
.noct .nh2.nh2-app .nh2-card.is-closed { opacity: .8; }

/* ---- ハンディの卓一覧（空席・接客中・会計済み） ---------------------------- */
.noct .nh2-card.nh2-table.is-idle, .noct .nh2-card.nh2-table.is-done { background: var(--bg-1); border-style: dashed; }
.noct .nh2-card.nh2-table.is-idle .nh2-card-guest, .noct .nh2-card.nh2-table.is-done .nh2-card-guest { color: var(--dim); }
.noct .nh2-card.nh2-table.is-idle:hover, .noct .nh2-card.nh2-table.is-done:hover { border-style: solid; }
.noct .nh2-card.nh2-table.is-vip { border-color: rgba(233, 196, 106, .28); }
.noct .nh2-card.nh2-table.is-idle.active, .noct .nh2-card.nh2-table.is-done.active {
  border-style: solid; background: linear-gradient(180deg, var(--gold-soft), var(--surface));
}
.noct .nh2-card.nh2-table.is-idle.active .nh2-card-guest, .noct .nh2-card.nh2-table.is-done.active .nh2-card-guest { color: var(--muted); }
.noct .nh2-tables .noct-room-label { margin-top: 6px; }
.noct .nh2-tables .noct-room-label:first-child { margin-top: 0; }

/* 来店開始（人数のボタン） */
.noct .nh2-body.nh2-body-one { grid-template-columns: 1fr; }
/* メニューのカテゴリタブ。JavaScript が動かないときは見出し付きで全部並ぶ */
.noct .nh-menu-tabs { display: flex; width: 100%; margin-bottom: 10px; }
.noct .nh-menu-tabs button { flex: 1 1 auto; font-size: 12px; }
.noct .tabs-on .nh-menu-group-t { display: none; }
.noct .tabs-on .nh-menu-group + .nh-menu-group { margin-top: 0; }

.noct .nh2-seat { display: flex; flex-direction: column; gap: 14px; }
.noct .nh2-seat-legend { padding: 0 0 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.noct .nh2-seg-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.noct .nh2-seg-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.noct .nh2-seg-radio label {
  min-width: 56px; text-align: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg-2); color: #fff; font-family: var(--font-mono); font-size: 15px; font-weight: 700; cursor: pointer;
}
.noct .nh2-seg-radio label:hover { border-color: rgba(233, 196, 106, .45); }
.noct .nh2-seg-nom label { min-width: 0; font-family: var(--font-body); font-size: 13px; }
.noct .nh2-seg-other { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.noct .nh2-seg-other input {
  width: 68px; padding: 10px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-2); color: #fff;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; text-align: center;
}
.noct .nh2-seg-other input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.noct .nh2-seg-radio input:checked + label { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.noct .nh2-seg-radio input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- 予定・シフト（店側） ------------------------------------------------ */
.noct .sc-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
@media (max-width: 360px) { .noct .sc-days { grid-template-columns: 1fr; } }
.noct .sc-day.is-weekend { border-color: rgba(168, 120, 255, .35); }
.noct .sc-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; color: #fff; }
.noct .sc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.noct .sc-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #fff; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.noct details > summary.noct-sec-title { cursor: pointer; }

/* ---- キャスト本人のスマホ画面 -------------------------------------------- */
.noct.cm-body { min-height: 100vh; padding-bottom: 76px; }
.noct .cm-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(8, 9, 15, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.noct .cm-mark { width: 32px; height: 32px; border-radius: 10px; }
.noct .cm-who { flex: 1; min-width: 0; }
.noct .cm-who-name { font-weight: 800; color: #fff; }
.noct .cm-header form { margin: 0; }
.noct .cm-main { max-width: 560px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.noct .cm-hero { text-align: center; padding: 22px 16px; border-radius: var(--r-lg); border: 1px solid rgba(233, 196, 106, .3); background: linear-gradient(160deg, rgba(233, 196, 106, .14), rgba(168, 120, 255, .08)), var(--surface); color: #fff; }
.noct .cm-date { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }
.noct .cm-label { margin-top: 8px; font-size: 13px; font-weight: 700; }
.noct .cm-amount { font-family: var(--font-display); font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1.2; margin-top: 4px; }
.noct .cm-counts { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: 13px; }
.noct .cm-counts b { font-size: 18px; margin-left: 2px; }
.noct .cm-badges { margin-top: 10px; }
.noct .cm-sub { margin-top: 10px; font-size: 13px; }
.noct .cm-note { margin: 12px 0 0; font-size: 11px; color: var(--muted); }
.noct .cm-card { color: #fff; }
.noct .cm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.noct .cm-stat-k { font-size: 11px; color: var(--muted); }
.noct .cm-stat-v { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.noct .cm-stat-v small { font-size: 12px; margin-left: 2px; }
.noct .cm-daily { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.noct .cm-daily-row { display: grid; grid-template-columns: 44px 1fr 84px; gap: 8px; align-items: center; font-size: 12px; }
.noct .cm-daily-row span:last-child { text-align: right; }
.noct .cm-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.noct .cm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.noct .cm-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.noct .cm-list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #fff; }
.noct .cm-list-date { min-width: 64px; }
.noct .cm-list-card { padding: 14px; }
.noct .cm-head { display: flex; flex-direction: column; gap: 8px; }
.noct .cm-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 0; color: #fff; }
.noct .cm-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.noct .cm-choice { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: #fff; font-size: 14px; }
.noct .cm-choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.noct .cm-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(8, 9, 15, .95); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.noct .cm-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; font-size: 11px; color: var(--muted); }
.noct .cm-tab.active { color: var(--gold); }

/* ---- お客様・ボトルキープ ------------------------------------------------ */
.noct .bk-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.noct .bk-item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: #fff; }
.noct .bk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.noct .bk-pcts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.noct .bk-pcts form { margin: 0; }
.noct .bk-pct { display: block; width: 100%; padding: 12px 0; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 15px; cursor: pointer; }
.noct .bk-pct.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.noct .bk-item.is-inactive { opacity: .6; }
.noct .nh-customer-results { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---- 星ランク・ミッション ------------------------------------------------ */
.noct .gm-stars { color: var(--gold); letter-spacing: .08em; }
.noct .gm-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: #fff; font-size: 13px; }
.noct .gm-list li { padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.noct .gm-list li.is-inactive { opacity: .55; }
.noct .gm-mission.is-done strong { color: var(--gold); }
.noct .gm-count { max-width: 90px; }
.noct .cm-list-card.is-unread { border-color: rgba(233, 196, 106, .5); }

/* ---- LINE --------------------------------------------------------------- */
.noct .ln-btn { background: #06c755; color: #fff; border-color: transparent; font-weight: 700; }
.noct .ln-btn:hover { background: #05b34c; }

/* ---- 運営管理（弊社用） -------------------------------------------------- */
.noct .op-header { position: static; justify-content: space-between; flex-wrap: wrap; }
.noct .op-header .noct-brand { padding: 0; }

/* ---- メニュー管理（カテゴリのタブ） -------------------------------------- */
.noct .nm-tabs { display: flex; width: 100%; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.noct .nm-tab-count { margin-left: 5px; font-size: 10.5px; color: var(--dim); }
.noct .nm-tabs button.active .nm-tab-count { color: var(--gold); }
.noct .nm-tab-add {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 9px;
  border: 1px dashed var(--line); color: var(--muted); font-size: 12px; font-weight: 700;
}
.noct .nm-tab-add:hover { border-style: solid; border-color: var(--gold); color: var(--gold); }
.noct .nm-panel-head { margin-bottom: 10px; }
.noct .nm-panel-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; }
.noct .nm-panel-t strong { font-family: var(--font-display); font-size: 17px; }
