/* =====================================================================
   RSG Hub: voice.css. Stijl voor de Telnyx-softphone (voice.js): de
   .btn-familie (legacy knoppen op SIGNAL-tokens) en de dock/overlay
   (.rv-*). Gedeeld door de Hub-pagina's (hub.css), het command-center en
   de belscript-pagina (product.css); laden na product.css.
   ===================================================================== */
/* ---------- legacy knoppen -> SIGNAL ---------- */
.btn { appearance: none; font: inherit; font-family: var(--font-body); font-weight: 600;
  font-size: var(--fs-body-s); border: 1.5px solid var(--line-strong); background: var(--paper);
  color: var(--ink); border-radius: var(--r-md); padding: 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast),
              transform var(--dur-press) var(--ease-overshoot); }
.btn:active { transform: scale(.985); }
.btn:hover { border-color: var(--ink-strong); }
.btn.p { background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(10,11,16,.14), 0 6px 16px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn.p:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-soft); }
.btn.ghost:hover { background: var(--n-50); color: var(--ink-strong); border-color: transparent; }
.btn.del { background: transparent; border-color: var(--danger-line); color: var(--danger-text); }
.btn.del:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn.mini { padding: 4px 9px; font-size: var(--fs-caption); border-radius: var(--r-sm); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }


/* telefonie: softphone-dock + inkomende overlay */
.rv-dock { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 300px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; }
.rv-hidden { display: none; }
/* bereikbaarheidsbalkje: naast de FAB (die deelt de hoek rechtsonder), niet eronder */
.rv-dock.rv-avail { right: 82px; bottom: 22px; width: auto; flex-direction: row;
  align-items: center; gap: 8px; padding: 7px 10px; font-size: var(--fs-body-s);
  box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.rv-availtxt { color: var(--ink-2); white-space: nowrap; }
.rv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3, #9aa0a6); flex: none; }
.rv-dot.on { background: #2e9e5b; }
.rv-title { font-weight: 700; }
.rv-sub { font-size: var(--fs-body-s); color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.rv-rec { color: #c0392b; font-size: var(--fs-caption); }
.rv-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rv-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-chips .ui-chip { cursor: pointer; }
.rv-chips .ui-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.rv-error { border-left: 4px solid #c0392b; cursor: pointer; }
.rv-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,20,.45);
  display: flex; align-items: center; justify-content: center; }
.rv-card { background: var(--paper); border-radius: var(--r-md); padding: 26px 30px;
  display: flex; flex-direction: column; gap: 10px; min-width: 320px; text-align: center;
  box-shadow: 0 18px 48px rgba(0,0,0,.3); }
.rv-inlabel { font-size: var(--fs-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.rv-who { font-size: var(--fs-h3); font-weight: 800; }
.rv-card .rv-row { justify-content: center; gap: 14px; margin-top: 6px; }
.rv-card .btn { min-width: 120px; }


/* zelf een nummer intikken: knop rechtsonder + toetsenblok-paneel */
.rv-fab { position: fixed; right: 18px; bottom: 18px; z-index: 89;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform var(--dur-press) var(--ease-overshoot), box-shadow var(--dur-fast); }
.rv-fab:hover { box-shadow: 0 10px 28px rgba(0,0,0,.24); }
.rv-fab:active { transform: scale(.94); }
.rv-fab:focus-visible { outline: none; box-shadow: var(--ring); }
.rv-fab[hidden] { display: none; }

.rv-dialer { position: fixed; right: 18px; bottom: 82px; z-index: 90; width: 244px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; }
.rv-dialer[hidden] { display: none; }
.rv-dialnum { width: 100%; text-align: center; font-size: var(--fs-h3); font-weight: 700;
  letter-spacing: .02em; }
.rv-dialer .rv-key { justify-content: center; font-size: var(--fs-body); font-weight: 700;
  padding: 9px 0; border: 1px solid var(--line); color: var(--ink); }
.rv-dialer .rv-key:hover { background: var(--n-50); }
.rv-grow { flex: 1; justify-content: center; }
.rv-warn { font-size: var(--fs-caption); color: var(--danger-text, #8a1c12);
  background: var(--danger-bg, #fdecea); border: 1px solid var(--danger-line, #f1b3ad);
  border-radius: var(--r-sm); padding: 6px 8px; }
.rv-warn[hidden] { display: none; }


/* toast van voice.js op pagina's zonder hub.css (.msg) */
.rv-toast { font-size: var(--fs-body-s); padding: 10px 14px; border-radius: var(--r-md);
  background: var(--danger-bg, #fdecea); color: var(--danger-text, #8a1c12); border: 1px solid var(--danger-line, #f1b3ad); }
