/* ─────────────────────────────────────────────────────────────────────────
 * Call Center page — page-specific widgets only.
 * Loaded after styles.css + _partials/marketing.css. LIGHT theme, no page.css.
 *
 * Own block vocabulary (distinct from pos/accounting/omni): an active-call
 * softphone sitting beside the customer record, an omnichannel inbox, an
 * IVR/queue routing board, and a capability checklist. Same tokens + section
 * rhythm; unique mockups.
 * ─────────────────────────────────────────────────────────────── */

/* ── Hero: active call + linked customer record ─────────────────── */
.callscreen { display: grid; grid-template-columns: 1fr 1fr; }
.callscreen__phone { padding: 22px; border-right: 1px solid var(--line); }
.callscreen__rec { padding: 22px; background: var(--surface-2); }
.ph-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #168f5b; margin-bottom: 16px; }
.ph-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #168f5b; box-shadow: 0 0 0 4px rgba(22,143,91,.18); }
.ph-who { text-align: center; }
.ph-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--grad); }
.ph-name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.ph-num { font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.ph-timer { font-size: 13px; color: var(--brand); font-family: 'JetBrains Mono', ui-monospace, monospace; margin-top: 4px; }
.ph-ctrls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.ph-btn { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.ph-btn small { display: none; }
.ph-end { grid-column: 1 / -1; aspect-ratio: auto; padding: 11px; border-radius: 12px; background: #e5484d; color: #fff; border: 0; font-weight: 700; font-size: 14px; }
.crm-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.crm-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.crm-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--grad-soft); color: var(--brand); }
.crm-line { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); }
.crm-line b { color: var(--ink); font-weight: 600; }

/* ── Omnichannel inbox ──────────────────────────────────────────── */
.inbox { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; max-width: 760px; margin: 32px auto 0; }
.inbox__row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.inbox__row:last-child { border-bottom: 0; }
.inbox__row.is-active { background: var(--surface-2); }
.inbox__ch { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--surface-3); }
.inbox__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.inbox__snip { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.inbox__meta { display: flex; align-items: center; gap: 10px; }
.sla { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.sla--ok { background: rgba(22,143,91,.12); color: #168f5b; }
.sla--warn { background: rgba(255,181,71,.18); color: #9a6a00; }
.inbox__ag { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--brand-2); }

/* ── IVR / call-routing ─────────────────────────────────────────── */
.ivr { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 22px; }
.ivr__top { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); padding: 10px; border-radius: 10px; background: var(--grad-soft); }
.ivr__stem { width: 2px; height: 18px; margin: 6px auto; background: var(--line-2); }
.ivr__opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.ivr__digit { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--grad); flex: none; }
.ivr__label { font-size: 13px; color: var(--ink); font-weight: 600; flex: 1; }
.ivr__route { font-size: 11px; color: var(--muted); }

/* ── Live queue / agent board ───────────────────────────────────── */
.qboard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.qboard__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.qboard__wait { font-size: 13px; font-weight: 800; color: var(--brand); }
.agent { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.agent:last-child { border-bottom: 0; }
.agent__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.is-online { background: #168f5b; }
.is-oncall { background: #ffb547; }
.is-away { background: var(--muted-2); }
.agent__name { font-weight: 600; color: var(--ink); flex: 1; }
.agent__state { font-size: 11px; color: var(--muted); }

/* ── Capability checklist (instead of another card grid) ────────── */
.cc-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; max-width: 820px; margin: 0 auto; }
.cc-check { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.cc-check::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); }
.cc-check b { color: var(--ink); }

@media (max-width: 760px) {
  .callscreen { grid-template-columns: 1fr; }
  .callscreen__phone { border-right: 0; border-bottom: 1px solid var(--line); }
  .cc-checks { grid-template-columns: 1fr; }
}
