/* スタッフポータル（app.css の上に重ねる） */
body.portal { background: #0d0a08; }
.p-top { position: sticky; top: 0; z-index: 30; background: rgba(13,10,8,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.p-top .in { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 16px; }
.p-top .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Noto Serif JP", serif; font-weight: 700; }
.p-top .logo small { font-family: "Noto Sans JP"; font-size: .7rem; color: var(--muted); font-weight: 400; }
.p-top .who { margin-left: auto; font-size: .8rem; color: var(--muted); text-align: right; line-height: 1.3; }
.p-top .who b { color: var(--text); font-weight: 500; }
.p-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 58px); }
.p-nav { border-right: 1px solid var(--line); padding: 16px 10px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; }
.p-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .92rem; position: relative; }
.p-nav a:hover { color: var(--text); background: rgba(201,169,110,.06); }
.p-nav a.on { color: var(--gold-hi, #e6cf9c); background: rgba(201,169,110,.12); }
.p-nav a svg { width: 20px; height: 20px; flex: none; }
.p-nav .count { margin-left: auto; background: var(--accent); color: #1a130c; border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 1px 8px; }
.p-nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.p-main { padding: 24px; min-width: 0; max-width: 1280px; margin: 0; width: 100%; }
.p-main > h1 { text-align: left; font-size: 1.4rem; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-main > h1 .act { margin-left: auto; display: flex; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-size: 1.7rem; font-variant-numeric: lining-nums tabular-nums; color: var(--accent-dark); line-height: 1.2; }
.kpi span { font-size: .78rem; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { color: var(--muted); font-size: .8rem; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.chip.pending { background: #e0a53b22; color: #f0c26a; border-color: #f0c26a66; }
.chip.confirmed { background: #4ade8022; color: #7bc48a; border-color: #7bc48a66; }
.chip.declined, .chip.cancelled, .chip.noshow { background: #e07a6a1a; color: #e8a090; border-color: #e8a09055; }
.chip.visited { background: #c9a96e22; color: var(--accent-dark); border-color: var(--line); }
.chip.src { color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 160px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .82rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #1a130c; font-weight: 700; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tbl th, table.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.tbl th { color: var(--muted); font-size: .75rem; font-weight: 500; }
table.tbl tr.click { cursor: pointer; }
table.tbl tr.click:hover { background: rgba(201,169,110,.05); }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: .8rem; font-weight: 700; margin: 0 0 4px; color: var(--muted); }
textarea { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 90px; resize: vertical; }
.langs details { margin-top: 6px; }
.langs summary { cursor: pointer; font-size: .78rem; color: var(--accent-dark); }
.langs .li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
/* 右から出るパネル */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: none; }
.drawer-bg.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #120d0a; border-left: 1px solid var(--line); z-index: 51;
          transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer .dh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer .dh h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.drawer .db { padding: 18px; overflow-y: auto; flex: 1; }
.drawer .df { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
/* メニュー編集 */
.mi { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.mi .th { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: #000; flex: none; display: grid; place-items: center; color: var(--muted); font-size: .65rem; }
.mi .th img { width: 100%; height: 100%; object-fit: cover; }
.mi.hidden-item { opacity: .45; }
.mi .ord { display: flex; flex-direction: column; gap: 2px; }
.mi .ord button { background: none; border: 1px solid var(--line); color: var(--muted); width: 28px; height: 22px; border-radius: 6px; cursor: pointer; font-size: .7rem; line-height: 1; }
.imgpick { display: flex; gap: 12px; align-items: center; }
.imgpick .prev { width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .75rem; flex: none; }
.imgpick .prev img { width: 100%; height: 100%; object-fit: cover; }
.price-rows .pr-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 6px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; font-size: .9rem; }
/* スマホ */
@media (max-width: 860px) {
  .p-shell { grid-template-columns: 1fr; }
  .p-nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 40; display: flex; overflow-x: auto; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
           border-right: 0; border-top: 1px solid var(--line); background: rgba(13,10,8,.97); scrollbar-width: none; }
  .p-nav::-webkit-scrollbar { display: none; }
  .p-nav a { flex-direction: column; gap: 3px; font-size: .66rem; padding: 6px 10px; min-width: 64px; text-align: center; }
  .p-nav .count { position: absolute; top: 2px; right: 6px; margin: 0; }
  .p-nav .sep { display: none; }
  .p-main { padding: 16px 14px 96px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
}
/* 言語切り替え */
#lang { margin-left: auto; }
#lang + .who { margin-left: 0; }
.lang-seg button { padding: 4px 10px; font-size: .75rem; }
@media (max-width: 560px) {
  .p-top .logo small { display: none; }
  .p-top .in { gap: 10px; padding: 0 12px; }
  .p-top .who { font-size: .72rem; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
}
