/* ═══════════════════════════════════════════════════════════════════════════
 * SELLIORA r394 · Billing › Team — credits per person and sending limits
 * Uses only the shared tokens (selliora-tokens.css), so light / dark themes
 * and the branding customiser work without extra rules.
 * ═══════════════════════════════════════════════════════════════════════════ */
.tc{display:flex;flex-direction:column;gap:22px}
.tc-sec{display:flex;flex-direction:column;gap:10px}
.tc-sec-h{display:flex;align-items:baseline;gap:10px}
.tc-sec-h h3{margin:0;font-size:14.5px;font-weight:700;color:var(--t);letter-spacing:-.005em}
.tc-sub{font-size:12px;color:var(--t3)}
.tc-note{font-size:12px;color:var(--t2);line-height:1.5}
.tc-empty{padding:18px;color:var(--t3);font-size:12.5px}
.tc-err{color:var(--r);font-size:13px}

/* how credits are spent */
.tc-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.tc-mode{border:1px solid var(--bd);border-radius:var(--rad);background:var(--s);padding:14px 16px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.tc-mode.on{border-color:var(--p);box-shadow:0 0 0 1px var(--p) inset}
.tc-mode-h{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--t)}
.tc-mode p{margin:0;font-size:12.5px;color:var(--t2);line-height:1.5}
.tc-radio{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--bd2);flex:none;position:relative}
.tc-mode.on .tc-radio{border-color:var(--p)}
.tc-mode.on .tc-radio::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--p)}
.tc-now{font-size:11px;font-weight:600;color:var(--p);background:var(--pl);border-radius:20px;padding:1px 8px}

/* channels */
.tc-chs{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.tc-chs>.card,.tc-modes>.tc-mode{margin:0}
.tc-ch{display:flex;flex-direction:column;gap:12px}
.tc-ch-h{display:flex;align-items:center;gap:9px;font-size:13.5px}
.tc-ch-ico{width:30px;height:30px;border-radius:8px;background:var(--s2);color:var(--t2);display:grid;place-items:center;flex:none}
.tc-dl{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px 14px}
.tc-dl div{display:flex;flex-direction:column;gap:2px}
.tc-dl dt{font-size:11.5px;color:var(--t3)}
.tc-dl dd{margin:0;font-size:15px;font-weight:600;color:var(--t);font-variant-numeric:tabular-nums}
.tc-dl dd.tc-big{font-size:22px;font-weight:700;letter-spacing:-.01em}
.tc-def{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--bd);padding-top:10px}
.tc-def div{display:flex;flex-direction:column;gap:1px}
.tc-def span{font-size:11.5px;color:var(--t3)}
.tc-def b{font-size:13px;font-weight:600;color:var(--t)}

/* team table */
.tc-tbl-wrap{padding:0;overflow-x:auto}
.tc-tbl{width:100%;border-collapse:collapse;min-width:720px}
.tc-tbl th{padding:10px 14px;font-size:12px;font-weight:600;color:var(--t2);text-align:left;border-bottom:1px solid var(--bd);background:var(--s2);white-space:nowrap}
.tc-th{display:inline-flex;align-items:center;gap:6px}
.tc-tbl td{padding:12px 14px;border-bottom:1px solid var(--bd);vertical-align:top;font-size:13px}
.tc-tbl tr:last-child td{border-bottom:0}
.tc-person{display:flex;gap:10px;align-items:flex-start;min-width:200px}
.tc-person div{display:flex;flex-direction:column;gap:1px;min-width:0}
.tc-person b{font-size:13.5px;color:var(--t);font-weight:600}
.tc-person span{font-size:12px;color:var(--t3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.tc-person em{font-style:normal;font-size:11.5px;color:var(--t2);margin-top:2px}
.tc-av{width:32px;height:32px;border-radius:50%;background:var(--pl);color:var(--p);display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.tc-you{font-size:10.5px;font-weight:600;color:var(--t2);border:1px solid var(--bd2);border-radius:20px;padding:0 6px;margin-left:4px;vertical-align:1px}
.tc-cell{display:flex;flex-direction:column;gap:3px;min-width:150px}
.tc-line{display:flex;align-items:baseline;gap:6px;font-size:12.5px}
.tc-line span{color:var(--t3);width:46px;flex:none}
.tc-line b{font-weight:600;color:var(--t);font-variant-numeric:tabular-nums}
.tc-line i{font-style:normal;color:var(--t3);font-variant-numeric:tabular-nums}
.tc-line.tc-cred{margin-bottom:3px}
.tc-line.tc-cred b{font-size:15px}
.tc-bar{height:4px;border-radius:4px;background:var(--bd);overflow:hidden;margin:0 0 3px 52px}
.tc-bar span{display:block;height:100%;background:var(--pm);border-radius:4px}
.tc-bar.full span{background:var(--abd)}
.tc-foot{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px;min-height:18px}
.tc-tag{font-size:11px;color:var(--t2);background:var(--s2);border:1px solid var(--bd);border-radius:20px;padding:0 7px;line-height:17px}
.tc-tag.own{color:var(--p);background:var(--pl);border-color:transparent}
.tc-stop{font-size:11px;font-weight:600;color:var(--a);background:var(--ab);border-radius:20px;padding:0 7px;line-height:17px}
.tc-acts-h{text-align:right}
.tc-acts{text-align:right;white-space:nowrap}
.tc-acts .btn{margin-left:4px;margin-bottom:4px}

/* dialogs */
.tc-dlg .modal-actions{display:flex;justify-content:flex-end}
.tc-dlg .ff{margin-bottom:10px}
.tc-opt{font-weight:400;color:var(--t3)}
.tc-lead{margin:0 0 10px;font-size:13px;color:var(--t2);line-height:1.55}
.tc-lead b{color:var(--t)}
.tc-hint{font-size:12px;color:var(--t3);margin-top:4px}
.tc-err-line{display:none;font-size:12.5px;color:var(--r);background:var(--rb);border-radius:8px;padding:8px 10px;margin-top:8px}
.tc-seg{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.tc-seg button{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid var(--bd2);border-radius:var(--rads);background:var(--s);color:var(--t);font:inherit;font-size:12.5px;cursor:pointer}
.tc-seg button em{font-style:normal;color:var(--t3);font-size:11.5px}
.tc-seg button.on{border-color:var(--p);background:var(--pl);color:var(--p)}
.tc-seg button.on em{color:var(--p)}
.tc-seg button:focus-visible,.tc-mode .btn:focus-visible,.tc-acts .btn:focus-visible{outline:2px solid var(--p);outline-offset:2px}
.tc-chips{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 12px}
.tc-inrow{display:flex;gap:8px;align-items:center}
.tc-inrow input{flex:1}
.tc-sum{border:1px solid var(--bd);border-radius:var(--rads);background:var(--s2);padding:4px 12px;margin-bottom:12px}
.tc-sum div{display:flex;align-items:baseline;gap:8px;padding:6px 0;font-size:13px;font-variant-numeric:tabular-nums}
.tc-sum div+div{border-top:1px solid var(--bd)}
.tc-sum span{flex:1;color:var(--t2)}
.tc-sum b{font-weight:600;color:var(--t)}
.tc-sum b.up{color:var(--g)}
.tc-sum i{font-style:normal;color:var(--t3)}
.tc-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-bottom:12px}
.tc-facts div{border:1px solid var(--bd);border-radius:var(--rads);padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.tc-facts b{font-size:16px;font-variant-numeric:tabular-nums}
.tc-facts span{font-size:11.5px;color:var(--t3)}
.tc-lim{border:1px solid var(--bd);border-radius:var(--rads);padding:10px 12px 4px;margin:0 0 10px}
.tc-lim legend{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--t);padding:0 4px}
.tc-lim legend span{font-weight:400;font-size:11.5px;color:var(--t3);margin-left:6px}
.tc-opt-row{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--t);margin:4px 0 6px;cursor:pointer}
.tc-opt-row em{font-style:normal;color:var(--t3)}
.tc-lim-in{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.tc-lim-in input:disabled{background:var(--s2)!important;color:var(--t3)!important;border-style:dashed!important;cursor:not-allowed}

/* the line above the WhatsApp composer and in the email composer */
.tc-allow{font-size:11.5px;color:var(--t2);padding:5px 14px;font-variant-numeric:tabular-nums}
.tc-allow.stop{color:var(--a);background:var(--ab)}
#ec_allow{font-size:11.5px;color:var(--t3);font-variant-numeric:tabular-nums}
#ec_allow.stop{color:var(--a)}

@media (max-width:640px){
  .tc-lim-in{grid-template-columns:1fr}
  .tc-acts{white-space:normal}
}
