/* 管理者画面（PC）と印刷の見た目。公開ページ・店舗の画面では読み込まない（公開ページを軽く保つため app.css から分けた。2026-10-12） */
/* ───── 管理者画面（PC） ───── */
.a-top { background: var(--brand-dark) linear-gradient(90deg, var(--brand-dark), var(--brand)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; min-height: 56px; box-shadow: var(--shadow-1); position: relative; z-index: 2; }
.a-top .t { font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.a-top form { margin: 0; }
.a-top input[type=search] { min-height: 36px; border-radius: 10px; border: 0; padding: 0 12px; width: 320px; font-size: 14px; background: rgba(255,255,255,.95); }
.a-top .who { font-size: 14px; display: flex; gap: 12px; align-items: center; }
.a-top .who button { background: #1a4e74; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; padding: 0 12px; min-height: 36px; cursor: pointer; }   /* 地の色は塗りつぶし（白文字との比 8:1。半透明だと点検の道具が測れない） */
.a-main { display: flex; min-height: calc(100vh - 56px); }
.a-nav { width: 208px; background: #fff; border-right: 1px solid var(--line); padding: 12px 8px; flex-shrink: 0; }
.a-nav a { display: block; padding: 9px 14px; color: var(--ink); text-decoration: none; font-size: 14px; border-radius: 10px; margin-bottom: 2px; transition: background var(--dur); }
.a-nav a:hover { background: var(--bg); }
.a-nav a.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.a-body { flex: 1; padding: 20px 28px 40px; font-size: 14px; min-width: 0; }
.a-body h1 { font-size: 22px; margin: 0 0 16px; color: var(--brand-dark); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-body h1 .muted { font-weight: 400; }
.a-back { display: inline-flex; align-items: center; min-height: 36px; margin: -8px 0 4px -4px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }   /* 詳細の奥の画面から、ひとつ上の画面へ戻る（どの画面でも見出しの上） */
.a-body h2 { font-size: 16px; margin: 20px 0 8px; color: var(--brand-dark); }
.a-card { background: #fff; border-radius: var(--radius-s); border: 1px solid var(--line-2); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.a-card > h2:first-child { margin-top: 0; }
.a-tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.a-tbl th { background: var(--bg); color: var(--sub); font-weight: 600; text-align: left; padding: 8px 10px; position: sticky; top: 0; z-index: 1; border-bottom: 2px solid var(--line); font-size: 13px; letter-spacing: .02em; }
.a-tbl td { border-bottom: 1px solid var(--line-2); padding: 8px 10px; vertical-align: top; }
.a-tbl tbody tr:nth-child(even) td { background: #fafbfc; }
.a-tbl tr:hover td { background: var(--brand-soft); }
.a-tbl tr:first-child > td { border-top: 0; }
.a-tbl.a-kv td:first-child { color: var(--sub); white-space: nowrap; width: 1%; padding-right: 16px; }   /* 見出し＋値の2列の表（基本情報など）。一覧の表には使わない */
.tag { display: inline-block; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; white-space: nowrap; line-height: 1.6; }
.tag.s-open { background: var(--open); } .tag.s-busy { background: var(--busy); } .tag.s-full { background: var(--full); } .tag.s-closed { background: var(--closed); } .tag.s-temp_closed { background: var(--temp); }
.flag { display: inline-block; border-radius: 6px; font-size: 12px; padding: 1px 7px; background: var(--warn-bg); color: #7a4b00; border: 1px solid #f0c75e; white-space: nowrap; margin: 1px 0; line-height: 1.6; }
.flag.red { background: var(--err-bg); color: var(--err); border-color: #f3b3ac; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.kpi { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 10px 14px 10px 16px; min-width: 112px; box-shadow: var(--shadow-1); border-left: 5px solid var(--line); transition: transform var(--dur), box-shadow var(--dur); }
a.kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.kpi .n { font-size: 24px; font-weight: 800; line-height: 1.2; }
.kpi .l { font-size: 13px; color: var(--sub); margin-top: 2px; }
.kpi.k-open { border-left-color: var(--open); } .kpi.k-busy { border-left-color: var(--busy); } .kpi.k-full { border-left-color: var(--full); } .kpi.k-closed { border-left-color: var(--closed); } .kpi.k-temp_closed { border-left-color: var(--temp); }
.kpi.k-warn { border-left-color: var(--accent); } .kpi.k-warn .n { color: #7a4b00; }
.kpi.on { box-shadow: 0 0 0 2px var(--brand), var(--shadow-2); }   /* 押して絞り込んでいる件数のカード */
/* ダッシュボードの表示の切り替え・頭文字（押すだけで切り替わる。選んでいるものは塗りつぶし） */
.dash-tools { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips-l { font-size: 13px; color: var(--sub); min-width: 3.5em; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; text-decoration: none; transition: background var(--dur), border-color var(--dur); }
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.chip.off { color: #a6b0b9; background: var(--bg); border-color: var(--line-2); cursor: default; }
.chip .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn-bg); color: #7a4b00; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.chip.on .cnt { background: rgba(255,255,255,.25); color: #fff; }
.chips.kana .chip { min-width: 36px; justify-content: center; padding: 0 8px; }
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 10px; padding: 0 14px; min-height: 36px; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-1); transition: transform var(--dur), background var(--dur); }
.abtn:active:not(:disabled) { transform: scale(.98); }
.abtn.ghost { background: #fff; color: var(--brand); box-shadow: none; }
.abtn.ghost:hover { background: var(--brand-soft); }
.abtn.danger { background: var(--err); border-color: var(--err); }
.abtn.small { min-height: 36px; padding: 0 10px; font-size: 13px; }
.abtn:disabled { opacity: .4; cursor: not-allowed; }   /* 押せないことが見て分かる */
/* 代理操作の状況ボタン：店舗画面と同じ色と絵（どのボタンか色で分かる）。押せないものは灰色 */
.ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }   /* 店舗画面と同じ2×2 */
.abtn.ps { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 700; position: relative; }
.abtn.ps .ic { width: 18px; height: 18px; }
.abtn.ps-busy { background: var(--busy); border-color: var(--busy); } .abtn.ps-full { background: var(--full); border-color: var(--full); }
.abtn.ps-open { background: var(--open); border-color: var(--open); } .abtn.ps-closed { background: var(--closed); border-color: var(--closed); }
.abtn.ps:disabled { background: #e9edf1; border-color: #e9edf1; color: #7b8794; opacity: 1; }
.abtn.ps .now { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.25); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.abtn.ps:disabled .now { background: #d5dce3; }
.abtn.ps-temp { background: #fff; color: var(--temp); border: 2px solid var(--temp); font-weight: 700; }
.abtn.ps-temp:hover { background: var(--temp-soft); }
.abtn.danger-line { background: #fff; color: var(--err); border: 1px solid var(--err); }
.abtn.danger-line:hover { background: var(--err-bg); }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e3b4ae; }   /* 取り消しにくい操作は、ほかの操作から離す */
.url-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* いまの表示：公開ページと同じ札を小さく */
.p-badge.mini { padding: 12px 14px 11px; margin-bottom: 8px; box-shadow: var(--shadow-1); }
.p-badge.mini .ja { font-size: 24px; } .p-badge.mini .en { font-size: 14px; }
.now-sub { font-weight: 700; margin: 0 0 6px; }
/* 長い一覧（ダッシュボード・店舗）：枠の中でスクロールし、列の見出しは枠の上に残す。件数は枠の上に（2026-10-12 ユーザー指摘「100件スクロールなしは見づらい」） */
.tbl-card { padding: 0; overflow: hidden; }
.tbl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--sub); }
.tbl-head b { color: var(--ink); font-size: 14px; }
.tbl-scroll { max-height: max(360px, calc(100vh - 240px)); overflow: auto; overscroll-behavior: contain; }
.tbl-scroll .a-tbl th { box-shadow: 0 1px 0 var(--line); }
.tbl-x { overflow-x: auto; }   /* 枠のない表：タブレット幅で列が入りきらないときは、表だけ横にスクロール（画面ごとはみ出さない） */
.a-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 1100px) { .a-split { grid-template-columns: minmax(0, 1fr); } }   /* タブレット幅では1列（横にはみ出さない） */
.a-card td { overflow-wrap: break-word; }   /* 日本語は普通に折り返し、英数字のまとまり（店舗ID・日時・番号）は割らない。anywhere だと列が細くなりすぎて s000/3 のように途中で折れた */
.a-card .a-kv td, .a-card td .pre, .a-card td.any { overflow-wrap: anywhere; }   /* 長いURLや記録の中身が入る所だけは、どこでも折って枠からはみ出さない */
.a-tbl th, .a-tbl td.nw, .a-card .a-tbl td.nw { white-space: nowrap; overflow-wrap: normal; }   /* 店舗ID・電話・時刻・URLなど短い値と列の見出しは途中で折り返さない（はみ出す分は枠の中で横にスクロール） */
.a-tbl .nwi { white-space: nowrap; }   /* 「11:00〜15:00」のようなひとまとまり */
.a-tbl .w-name { min-width: 10em; } .a-tbl .w-text { min-width: 11em; }   /* 文の列（店名・理由）は細くしすぎない（数文字ごとに折れて読みにくくなる） */
.aform .r { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.aform .r:last-of-type { border-bottom: 0; }
.aform .r > label { padding-top: 7px; color: var(--sub); }
.aform.stack .r { grid-template-columns: 1fr; gap: 4px; border-bottom: 0; }   /* 幅の狭いフォーム（ログインなど）は、店舗の画面と同じく見出しの下に入力欄 */
.aform.stack .r > label { padding-top: 0; }
.aform input[type=text], .aform input[type=email], .aform input[type=password], .aform input[type=number], .aform input[type=search], .aform input[type=url], .aform input[type=date], .aform select, .aform textarea { min-height: 36px; border: 1px solid #b9c4cd; border-radius: 8px; padding: 0 10px; font-size: 14px; max-width: 520px; width: 100%; background: #fff; transition: border-color var(--dur); }
.aform select { width: auto; min-width: 64px; }
.aform textarea { min-height: 80px; padding: 8px 10px; }
.aform .help { font-size: 13px; color: var(--sub); margin-top: 3px; }
.aform .hours { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }   /* 営業時間は選択式（時・分）。手で打ち込ませない（HE-11） */
.aform .hours .next { font-size: 13px; color: var(--busy); font-weight: 700; }
.aform .chk { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-right: 12px; cursor: pointer; }
/* 押すと切り替わるボタン（管理の入力も店舗画面の .days・.seg と同じ形に）。中身はふつうのチェック箱・丸の選択肢なので、キーボード・読み上げ・送る値はそのまま */
.tg { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.tg label { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 40px; padding: 0 14px; border: 2px solid #b9c4cd; border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; user-select: none; transition: background var(--dur), border-color var(--dur), color var(--dur); }
.tg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tg label:hover { border-color: var(--brand); }
.tg label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.tg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tg.days-tg label { min-width: 48px; padding: 0; }
.tg.days-tg label:has(input:checked) { background: var(--closed); border-color: var(--closed); }   /* 定休日＝灰（店舗画面と同じ） */
.tg.seg-tg label { min-width: 150px; }
.tg .use { min-width: 96px; }
.tg .use .on, .tg .use:has(input:checked) .off { display: none; }
.tg .use:has(input:checked) .on { display: inline; }
.aform input[type=checkbox], .aform input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.alert { border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 14px; }
.alert.err { background: var(--err-bg); border: 1px solid #f3b3ac; border-left: 4px solid var(--err); }
.alert.err h3 { margin: 0 0 4px; color: var(--err); font-size: 15px; }
.alert.ok { background: var(--ok-bg); border: 1px solid #a7dcbc; border-left: 4px solid var(--open); }
.alert .meta { font-size: 13px; color: var(--sub); margin-top: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.filters select, .filters input { min-height: 36px; border: 1px solid #b9c4cd; border-radius: 8px; padding: 0 8px; font-size: 14px; background: #fff; }
.filters label:has(> input[type=checkbox]) { display: inline-flex; align-items: center; gap: 6px; }
.filters input[type=checkbox] { min-height: 0; width: 18px; height: 18px; padding: 0; margin: 0; }   /* 箱と文字を同じ高さに並べる（入力欄の高さ36pxが箱にも効いて、文字が下にずれていた） */
.pre { white-space: pre-wrap; font-family: Consolas, monospace; font-size: 13px; background: #f4f7fa; border-radius: 8px; padding: 8px 10px; max-height: 320px; overflow: auto; }
.muted { color: var(--sub); font-size: 13px; }
.a-login { max-width: 440px; margin: 48px auto; }
.a-login .brand { display: flex; align-items: center; gap: 10px; color: var(--brand-dark); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.a-login .brand .ic { width: 34px; height: 34px; }
.a-body .version { margin-top: 30px; }

/* ───── 印刷（QRカード・ID通知書） ───── */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  @page { size: A4 portrait; margin: 10mm; }
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 190mm; }
.qcard { width: 95mm; height: 55mm; border: 1px dashed #9aa5ae; padding: 4mm 5mm; display: flex; gap: 4mm; page-break-inside: avoid; overflow: hidden; }
.qcard img { width: 30mm; height: 30mm; }
.qcard .nm { font-size: 13pt; font-weight: 800; line-height: 1.3; margin-bottom: 2mm; }
.qcard.long .how { font-size: 8pt; line-height: 1.4; } .qcard.long .tel.note { line-height: 1.3; }   /* 店名が長いカードは使い方も少し詰める */
.qcard .nm.sm { font-size: 10.5pt; } .qcard .nm.xs { font-size: 9pt; line-height: 1.25; margin-bottom: 1.5mm; }   /* 23〜34文字／35文字から */
.qcard .how { font-size: 8.5pt; line-height: 1.55; }
.qcard .tel { font-size: 8pt; margin-top: 1.5mm; }
.qcard .tel.note { font-size: 7pt; line-height: 1.4; word-break: auto-phrase; }   /* 電話番号の代わりの案内文（2026-10-16） */
.qcard .url { font-size: 6.5pt; color: #4f5b66; word-break: break-all; margin-top: 1mm; }
.qcard .test, .cred .test { color: #c0392b; font-weight: 800; font-size: 10pt; }
.cred { width: 190mm; height: 135mm; border: 1px dashed #9aa5ae; padding: 10mm 12mm; page-break-inside: avoid; margin-bottom: 4mm; }
.cred h2 { font-size: 15pt; margin: 0 0 4mm; }
.cred .big { font-family: Consolas, "Courier New", monospace; font-size: 22pt; font-weight: 700; letter-spacing: 2px; }
.cred table { border-collapse: collapse; margin: 3mm 0; }
.cred td { padding: 2mm 4mm 2mm 0; font-size: 11pt; vertical-align: middle; }
