/* Ginza CRM stylesheet, part 02 (moved byte for byte from app.css; pages load the parts in order). */
/* ---- Guestbook (the POS's .gb-* look) ---- */
.guests { flex: 1; display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 12px; padding: 12px; min-height: 0; }
.gb-list { display: flex; flex-direction: column; min-height: 0; }
.gb-names { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ink-line); border-radius: 10px; overflow: auto; background: var(--ink); flex: 1; }
.gb-group { padding: 10px 12px; font-size: 15px; font-weight: 800; color: var(--gbfg); background: var(--gbbg);
  box-shadow: inset 4px 0 0 var(--gbc); display: flex; justify-content: space-between; }
.gb-group span:last-child { font-size: 12px; font-weight: 700; background: var(--gbc); color: var(--ink); border-radius: 999px; padding: 2px 8px; }
.gb-name { display: flex; gap: 8px; width: 100%; text-align: left; padding: 9px 12px 9px 14px; border: 0; border-bottom: 1px solid var(--ink-line);
  background: var(--ink); font-size: 13px; font-weight: 500; box-shadow: inset 4px 0 0 var(--gbc); }
.gb-name.on { background: var(--ink-high); font-weight: 800; }
.gb-name small { margin-left: auto; color: var(--rice-faint); font-size: 11px; }
.gb-detail { border: 1px solid var(--ink-line); border-radius: 10px; padding: 14px 16px; background: var(--ink); overflow: auto; }
.gb-detail h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.gb-facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.gb-fact { flex: 1 1 110px; border: 1px solid var(--ink-line); border-radius: 8px; background: var(--ink-raised); }
.gb-fact-k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--ink-high);
  padding: 5px 9px; border-bottom: 1px solid var(--ink-line); }
.gb-fact-v { font-size: 17px; font-weight: 800; padding: 5px 9px; text-align: right; }
.cat-vip { --gbc: var(--kin); --gbbg: var(--kin-lo); --gbfg: var(--kin-text); }
.cat-attention { --gbc: var(--urushi); --gbbg: var(--urushi-lo); --gbfg: var(--urushi-text); }
.cat-regular { --gbc: var(--matcha); --gbbg: var(--matcha-lo); --gbfg: var(--matcha-text); }
.cat-corporate { --gbc: var(--amber); --gbbg: var(--amber-lo); --gbfg: var(--amber-text); }
.cat-guest { --gbc: var(--info); --gbbg: var(--info-lo); --gbfg: var(--info-text); }
.pill.cat { color: var(--gbfg); background: var(--gbbg); box-shadow: inset 0 0 0 1px var(--gbc); }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list-plain li { border-bottom: 1px solid var(--ink-line); padding: 6px 0; font-size: 13px; }
.back-link { display: none; }
@media (max-width: 720px) {
  .back-link { display: inline-block; margin-bottom: 8px; }
  .guests { grid-template-columns: 1fr; }
  .guests.detail-open .gb-list { display: none; }
  .guests:not(.detail-open) .gb-detail { display: none; }
}

/* ---- public booking page ---- */
.book { max-width: 720px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- public privacy and data-deletion pages ---- */
.doc { max-width: 760px; line-height: 1.55; }
.doc h1 { font-size: 1.4rem; margin: 8px 0 4px; }
.doc h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }

/* ---- Reservations ---- */
.wide-page { max-width: 1100px; }
.resv-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: start; border: 1px solid var(--ink-line);
  border-radius: 10px; padding: 10px 12px; background: var(--ink-raised); }
.resv-row.cancelled, .resv-row.no_show { opacity: .55; }
.resv-time { font-size: 17px; font-weight: 800; }
.resv-sub { font-size: 12px; color: var(--rice-dim); }
.resv-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill.planned { background: var(--ink-high); color: var(--rice); }
.pill.confirmed { background: var(--kin-lo); color: var(--kin-text); }
.pill.seated, .pill.completed { background: var(--matcha-lo); color: var(--matcha-text); }
.pill.no_show { background: var(--urushi-lo); color: var(--urushi-text); }
.pill.cancelled { background: var(--ink-raised); color: var(--rice-faint); text-decoration: line-through; }
.pill.camp { background: var(--info-lo); color: var(--info-text); text-transform: none; letter-spacing: 0; font-weight: 700; }
.camp-form { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 10px; }
.camp-form .wide-field { grid-column: 1 / -1; }
.camp-preview { font: 600 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
@media (max-width: 720px) { .camp-form { grid-template-columns: 1fr; } }
.resv-slot-head { margin: 12px 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rice-faint); font-weight: 700; }
@media (max-width: 720px) { .resv-row { grid-template-columns: 52px 1fr; } .resv-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---- the Reservations grid (plan A; ships off): slots down, areas across from 720 px up, sideways scroll inside
   the grid only; below 720 px a card per slot, one line per area. Every tap target is 40 px or more. ---- */
.resv-views { display: inline-flex; gap: 4px; }
.resv-views .hbtn { min-height: 40px; min-width: 40px; }
.resv-views .hbtn[aria-pressed=true] { background: var(--kin); border-color: var(--kin); color: var(--accent-ink); }
.resv-grid-group { margin: 12px 0; }
.resv-grid-scroll { overflow-x: auto; max-width: 100%; }
.resv-grid-table { display: flex; flex-direction: column; gap: 4px; width: max-content; min-width: 100%; }
.resv-grid-row { display: flex; gap: 4px; }
.resv-grid-time { flex: 0 0 76px; font-size: 13px; padding-top: 6px; }
.resv-grid-area { flex: 0 0 190px; font-size: 12px; font-weight: 800; color: var(--rice-dim); }
.resv-grid-cell { flex: 0 0 190px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--ink-line);
  border-radius: var(--r); padding: 6px; }
.resv-grid-cell.can-add { cursor: pointer; }
.resv-grid-cell.full { border-color: var(--urushi-text); }
.resv-grid-load { font-size: 12px; color: var(--rice-dim); }
.resv-grid-block { min-height: 40px; text-align: left; font: inherit; font-size: 13px; color: inherit; background: var(--ink-high);
  border: 1px solid var(--ink-line); border-radius: var(--r); padding: 6px 8px; cursor: pointer; }
.resv-grid-block.cancelled, .resv-grid-block.no_show { opacity: .55; }
.resv-grid-add { min-height: 40px; min-width: 40px; align-self: flex-start; }
.resv-grid-row.off-slot .resv-grid-time { color: var(--urushi-text); }
.resv-grid-name { font-weight: 800; }
@media (max-width: 720px) {
  .resv-grid-table { width: auto; }
  .resv-grid-row { flex-direction: column; border: 1px solid var(--ink-line); border-radius: var(--r); padding: 8px; }
  .resv-grid-head { border: none; padding: 0; }
  .resv-grid-head .resv-grid-area { display: none; }     /* the restaurant's name stays, at every width */
  .resv-grid-time, .resv-grid-cell { flex: none; }
  .resv-grid-cell::before { content: attr(data-label); font-size: 12px; font-weight: 800; }
}

/* ---- social posts (core/posts.py; ships off) ---- */
.post-targets { display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; margin:6px 0 10px; }
.post-targets label { display:flex; gap:8px; align-items:flex-start; font-size:13px; }
.post-targets label.off { opacity:.5; }
.post-photo { width:120px; height:150px; object-fit:cover; border-radius:8px; background:var(--ink-high); border:1px solid var(--ink-line); }
.post-photo-row { align-items:flex-start; gap:14px; }
.post-photo-note { max-width:420px; }
.post-file input { position:absolute; width:1px; height:1px; opacity:0; }
.post-file:focus-within { outline:2px solid var(--kin); outline-offset:2px; }
.post-card { display:grid; grid-template-columns:72px 1fr auto; gap:12px; padding:10px; border-bottom:1px solid var(--ink-line); align-items:start; }
.post-card .thumb { width:72px; height:72px; border-radius:6px; background:linear-gradient(135deg,var(--kin-lo),var(--amber-lo)); }
.post-card .text { font-size:13px; overflow-wrap:anywhere; }
.counts { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.counts span { font-size:12px; font-weight:700; background:var(--ink-high); border-radius:999px; padding:2px 8px; }
.asof { font-size:11px; color:var(--rice-faint); margin-top:4px; }
.asof.stale { font-style:italic; color:var(--amber-text); }
.result-line { font-size:13px; padding:4px 0; }
.result-line.ok::before { content:"✓ "; color:var(--matcha-text); font-weight:800; }
.result-line.bad::before { content:"✗ "; color:var(--urushi-text); font-weight:800; }
.result-line.unknown::before { content:"⚠ "; color:var(--amber-text); font-weight:800; }
.result-line.sending::before { content:"… "; color:var(--rice-dim); font-weight:800; }
.post-tools { flex-wrap:wrap; }
.post-check { display:flex; gap:8px; align-items:flex-start; font-size:13px; margin-top:10px; }
.post-close { color:inherit; text-decoration:underline; }
.comment { padding:8px 0; border-bottom:1px solid var(--ink-line); font-size:13px; overflow-wrap:anywhere; }
@media (max-width:600px){ .post-targets{grid-template-columns:1fr} .post-card{grid-template-columns:56px 1fr} .post-card .thumb{width:56px;height:56px}
  .post-card .post-side{grid-column:1 / -1} .publish-row .hbtn-gold{width:100%} }
.post-side .actions { display:flex; flex-wrap:wrap; gap:6px; }

/* ---- the phone (item C: the Galaxy Z Fold folded is 384 px; COPILOT · Head a627dc5d C5, the look at line 856) ----
   A page's row of controls wraps instead of pushing the whole view sideways (Reservations' date row did, cutting
   ◀, the tiles and the booking editor at the left), and every control on a page is a 44 px tap target. The tab row
   and the header are left to item F (its gear menu), so the two never touch the same rule. */
@media (max-width: 720px) {
  .tools { flex-wrap: wrap; }
  .tools .search { min-width: 0; flex-basis: 150px; }
  main .hbtn, main .hbtn-gold, main .search, main textarea.search, main select.search,
  main .field select, main .field textarea, main .field input:not([type=checkbox]):not([type=radio]) { min-height: 44px; }
  /* An <a> button is inline, so min-height alone does nothing: the "← Inbox" link and the authenticator link on the
     two-step setup are made 44 px tap targets this way (Head C INDEP1 N2). */
  .back-link, #setup-app-link { display: inline-flex; align-items: center; min-height: 44px; }
  /* A tick box or a radio is tapped through its label, made a 44 px row; the control itself keeps its size (Head,
     25 Nov 19:27: a label's hit area, never a scaled control). */
  main label:has(> input[type=checkbox]), main label:has(> input[type=radio]) {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
  /* ...but Posts' own tick rows keep their layout: a full-width row with the box at the top of its words, which can run
     to several lines (Head C INDEP1 N5); the 44 px row stays. */
  main .post-targets label:has(> input[type=checkbox]), main label.post-check:has(> input[type=checkbox]) {
    display: flex; align-items: flex-start; }
  /* The sign-in and dialog buttons (Confirm, Sign in, Save and continue, and the password panel's, which is outside
     <main>) were held at 42 px by .dialog-actions' own rule, which outranks main .hbtn (Head C INDEP1 N2); this rule
     has the same weight and comes later, so it wins. */
  .dialog-actions .hbtn, .dialog-actions .hbtn-gold { min-height: 44px; }
}
