/* Ringelisten: fanen i admin og sidepanelet i manus (se ringeliste.js). Bruker fargene fra crm.css. */

/* Felles */
.rl-fn { display: inline-block; font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); white-space: nowrap; }
.rl-fn.hot { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.rl-sj { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.rl-sj b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rl-sj.høy, .rl-sj.høy b { color: var(--up); }
.rl-sj.middels b { color: var(--ink); }
.rl-det, .rl-why { display: block; margin-top: 4px; font-size: 12.5px; line-height: 18px; letter-spacing: 0; color: var(--ink-3); white-space: normal; }
.rl-why { color: var(--ink-2); }
.rl-who { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: normal; }
.rl-tel { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.rl-tel:hover { text-decoration: underline; }
.rl-sel { font: inherit; font-size: 13px; height: 32px; max-width: 100%; padding: 0 28px 0 10px; border-radius: 10px; border: 0; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; }
.rl-sel option { background: var(--bg-2); color: var(--ink); }
.nowrap { white-space: nowrap; }

/* Fanen i admin */
#v-ringeliste .tools-row { flex-wrap: wrap; }
#v-ringeliste .note { margin-top: 20px; padding: 0 28px; max-width: 756px; font-size: 12.5px; line-height: 18px; letter-spacing: 0; }
#t-calllist td { vertical-align: top; }
#t-calllist .ck, #t-calllist-tbl th.ck { width: 44px; }
#t-calllist .ck input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
#t-calllist tr.done td:not(.ck) { opacity: .5; }
#t-calllist tr.again .rl-sel { box-shadow: inset 0 0 0 1px var(--ink-3); }
@container (min-width: 1000px) {
  #t-calllist-tbl th:nth-child(2) { width: 25%; }
  #t-calllist-tbl th:nth-child(3) { width: 112px; }
  #t-calllist-tbl th:nth-child(4) { width: 104px; }
  #t-calllist-tbl th:nth-child(6) { width: 170px; }
  #t-calllist-tbl th:nth-child(7) { width: 128px; }
}
@container (max-width: 820px) {
  #t-calllist-tbl th:nth-child(5), #t-calllist td:nth-child(5), #t-calllist-tbl th:nth-child(7), #t-calllist td:nth-child(7) { display: none; }
}

/* Knappen i manus-linjen */
.mt .r .btn.rl-toggle { width: auto; min-width: 0; gap: 8px; padding: 0 14px 0 12px; }
.mt .r .btn.rl-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mt .r .rl-toggle i { font-style: normal; font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink-3); }
.mt .r .rl-toggle i:empty { display: none; }
.mt .r .btn.rl-toggle.on { background: var(--solid); color: var(--solid-ink); }
[data-theme="dark"] .mt .r .btn.rl-toggle.on { background: linear-gradient(175deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07) 71.4%); color: #fff; }
.mt .r .rl-toggle.on i { color: inherit; opacity: .7; }

/* Sidepanelet i manus: står ved siden av manuset på brede skjermer, legger seg over på smale */
.rl-panel { position: fixed; z-index: 18; top: 100px; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 90px; width: 380px; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--g-plate, var(--bg-2)); box-shadow: inset 0 0 0 1px var(--hi), 0 30px 70px -24px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(40px) saturate(150%); backdrop-filter: blur(40px) saturate(150%); color: var(--ink); }
.rl-panel[hidden] { display: none; }
.rl-panel > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 18px 10px 20px; }
.rl-panel > header b { display: block; margin-top: 4px; font-size: 15px; line-height: 20px; font-weight: 500; }
.rl-panel .x { flex: none; }
.rlp-tools { display: grid; gap: 8px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.rlp-tools input, .rlp-tools select { width: 100%; height: 38px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.rlp-tools select option { background: var(--bg-2); color: var(--ink); }
.rlp-tools .seg { width: 100%; display: grid; grid-auto-flow: column; }
.rlp-tools .seg button { justify-content: center; }
.rlp-list { flex: 1; overflow-y: auto; padding: 8px 10px 14px; display: grid; align-content: start; gap: 6px; overscroll-behavior: contain; }
.rlp-i { display: grid; gap: 6px; padding: 12px 12px 12px 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.rlp-i.cur { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--tint); }
.rlp-i.done { opacity: .55; }
.rlp-i .h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rlp-i .h b { font-size: 15px; line-height: 20px; font-weight: 500; }
.rlp-i .s { font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.rlp-i .d, .rlp-i .w { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.rlp-i .w { color: var(--ink-3); }
.rlp-i .a { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.rlp-i .a .rl-tel { font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.rlp-i .o { display: flex; align-items: center; gap: 10px; }
.rlp-i .o label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.rlp-i .o input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.rlp-i .o .rl-sel { flex: 1; height: 30px; }
.rlp-empty { padding: 24px 8px; text-align: center; font-size: 14px; color: var(--ink-3); }
@media (min-width: 1181px) {
  body.rl-open .work, body.rl-open .page { padding-right: 430px; }
  body.rl-open .bbar { padding-right: 430px; }
}
@media (max-width: 1180px) {
  .rl-panel { top: 96px; bottom: 16px; width: min(400px, calc(100vw - 32px)); }
}
@media (max-width: 860px) {
  .mt .r .btn.rl-toggle span { display: none; }
  .rl-panel { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: min(72vh, 640px); }
}

/* «Ringer nå» i panelet */
.rlp-now { justify-self: start; font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.rlp-now.other { color: var(--ink-3); }
.rlp-i.busy { opacity: .6; }

/* Stripen over manuset: bedriften du ringer, med tallene du kan bruke i samtalen */
.rl-strip { max-width: 920px; margin: 26px auto 0; padding: 16px 20px 16px 24px; border-radius: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; background: var(--m-soft, var(--tint)); box-shadow: inset 0 0 0 1px var(--line); }
.rl-strip[hidden] { display: none; }
.rl-strip + .say-card { margin-top: 16px; }
.rl-strip .l { display: grid; gap: 2px; min-width: 0; }
.rl-strip .l b { font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -0.2px; }
.rl-strip .l .s { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.rl-strip .num { font-family: var(--font-mono); font-size: 22px; line-height: 28px; font-weight: 500; justify-self: end; }
.rl-strip .facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; line-height: 18px; color: var(--ink-2); }
.rl-strip .d { grid-column: 1 / -1; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.rl-strip .d span { color: var(--ink-2); }
.rl-strip .acts { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (max-width: 560px) {
  .rl-strip { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .rl-strip .num { justify-self: start; font-size: 20px; }
}
