/* css/call_campaigns.css — [LAC-202] Kampanjringning: flikar på Leads-sidan (Kampanjer / Ringa / Live),
   dialer, modaler och VoIP-nummertabellen under Inställningar. Rör inte befintliga leads-klasser. */

.cc-tabs{display:flex;gap:4px;border-bottom:2px solid #e5e7eb;margin:0 0 16px}
.cc-tab{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;padding:10px 16px;font:inherit;font-size:14px;font-weight:600;color:#64748b;cursor:pointer}
.cc-tab:hover{color:#024550}
.cc-tab.active{color:#024550;border-bottom-color:#024550}
.cc-tab .cc-badge{display:inline-block;margin-left:6px;background:#ecfdf5;color:#047857;border-radius:999px;padding:1px 7px;font-size:11px}

.cc-panel{font-size:13px;color:#1f2937}
.cc-muted{font-size:12px;color:#64748b}
.cc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.cc-toolbar-left,.cc-toolbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cc-input{padding:8px 12px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:13px;font-family:inherit;background:#fff;color:#1f2937;width:100%;box-sizing:border-box}
.cc-toolbar .cc-input{width:auto}
textarea.cc-input{resize:vertical;line-height:1.4}
.cc-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1.5px solid #e5e7eb;border-radius:8px;background:#fff;color:#1f2937;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;white-space:nowrap}
.cc-btn:hover{border-color:#024550;color:#024550}
.cc-btn:disabled{opacity:.5;cursor:default}
.cc-btn-primary{background:#024550;border-color:#024550;color:#fff}
.cc-btn-primary:hover{background:#03606e;color:#fff}
.cc-btn-ghost{border-color:transparent;color:#64748b}
.cc-btn-sm{padding:4px 10px;font-size:12px}
.cc-btn-call{background:#16a34a;border-color:#16a34a;color:#fff;font-size:15px;padding:12px 22px}
.cc-btn-call:hover{background:#15803d;color:#fff}
.cc-btn-hang{background:#dc2626;border-color:#dc2626;color:#fff;font-size:15px;padding:12px 22px}
.cc-btn-hang:hover{background:#b91c1c;color:#fff}

.cc-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.cc-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;cursor:pointer;transition:transform .1s,box-shadow .1s}
.cc-card:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(2,69,80,.08)}
.cc-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px}
.cc-card-head h3{margin:0;font-size:15px;color:#024550}
.cc-card-desc{color:#64748b;font-size:12px;margin-bottom:10px;min-height:16px}
.cc-card-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:10px}
.cc-card-nums div{background:#f8fafc;border-radius:8px;padding:8px 6px;text-align:center}
.cc-card-nums strong{display:block;font-size:17px;color:#024550;font-variant-numeric:tabular-nums}
.cc-card-nums span{font-size:11px;color:#64748b}
.cc-progress{height:6px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:6px 0}
.cc-progress i{display:block;height:100%;background:#16a34a}
.cc-card-foot{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#64748b;gap:8px;flex-wrap:wrap}
.cc-status-pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.cc-status-active{background:#dcfce7;color:#166534}
.cc-status-paused{background:#fef3c7;color:#92400e}
.cc-status-draft{background:#f1f5f9;color:#475569}
.cc-status-done{background:#e0e7ff;color:#3730a3}
.cc-flags span{display:inline-block;margin-right:6px;font-size:11px;background:#f1f5f9;border-radius:6px;padding:1px 6px;color:#475569}

.cc-detail{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:18px}
.cc-detail-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:8px}
.cc-detail-title{display:flex;align-items:center;gap:10px;flex:1}
.cc-detail-title h2{margin:0;font-size:20px;color:#024550}
.cc-detail-actions{display:flex;gap:8px;flex-wrap:wrap}
.cc-detail-meta{color:#64748b;font-size:12px;margin-bottom:12px;display:flex;gap:14px;flex-wrap:wrap}
.cc-stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:14px}
.cc-stat{background:#f8fafc;border-radius:10px;padding:10px 12px}
.cc-stat strong{display:block;font-size:20px;color:#024550;font-variant-numeric:tabular-nums}
.cc-stat span{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.cc-subtabs{display:flex;gap:4px;border-bottom:1px solid #e5e7eb;margin-bottom:12px}
.cc-subtab{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;padding:8px 12px;font:inherit;font-size:13px;font-weight:600;color:#64748b;cursor:pointer}
.cc-subtab.active{color:#024550;border-bottom-color:#024550}

.cc-table-wrap{overflow-x:auto}
.cc-table-scroll{max-height:420px;overflow-y:auto}
.cc-table{width:100%;border-collapse:collapse;font-size:13px}
.cc-table th{text-align:left;font-size:11px;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:8px 10px;border-bottom:1px solid #e5e7eb;background:#fff;position:sticky;top:0}
.cc-table td{padding:9px 10px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.cc-table tr:hover td{background:#f8fafc}
.cc-lead-status{display:inline-block;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:600}
.cc-ls-new{background:#f1f5f9;color:#475569}.cc-ls-calling{background:#fef3c7;color:#92400e}.cc-ls-callback{background:#e0f2fe;color:#075985}
.cc-ls-booked{background:#dcfce7;color:#166534}.cc-ls-no_answer{background:#f1f5f9;color:#64748b}.cc-ls-not_interested{background:#fee2e2;color:#991b1b}
.cc-ls-wrong_number,.cc-ls-nix,.cc-ls-other{background:#fee2e2;color:#7f1d1d}.cc-ls-done{background:#e5e7eb;color:#374151}

.cc-dialer-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.cc-dialer-top .cc-input{width:auto;min-width:220px}
.cc-dialer-mode span,.cc-dialer-counters span{display:inline-block;margin-right:8px;font-size:12px;color:#475569;background:#f1f5f9;border-radius:6px;padding:3px 8px}
.cc-empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:30px;text-align:center;color:#64748b}
.cc-dialer-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1.2fr) minmax(260px,1fr);gap:14px}
@media (max-width:1100px){.cc-dialer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.cc-dialer-grid{grid-template-columns:1fr}}
.cc-box{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px}
.cc-box-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.cc-lead-name{font-size:18px;font-weight:700;color:#024550}
.cc-lead-phone{font-size:15px;color:#1f2937;margin-bottom:10px;font-variant-numeric:tabular-nums}
.cc-form{display:flex;flex-direction:column;gap:8px}
.cc-form label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#64748b;font-weight:600}
.cc-form .cc-input{font-weight:400;color:#1f2937}
.cc-script{white-space:pre-wrap;line-height:1.55;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:12px;min-height:120px;font-size:13.5px}
.cc-history{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow:auto}
.cc-history div{font-size:12px;background:#f8fafc;border-radius:8px;padding:6px 8px}
.cc-history b{color:#024550}
.cc-call-status{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;background:#f8fafc;border-radius:10px;padding:10px 12px;margin-bottom:12px}
.cc-dot{width:10px;height:10px;border-radius:50%;background:#94a3b8}
.cc-call-status.is-ringing .cc-dot{background:#f59e0b;animation:ccpulse 1s infinite}
.cc-call-status.is-live .cc-dot{background:#16a34a;animation:ccpulse 1.4s infinite}
.cc-call-status.is-ended .cc-dot{background:#64748b}
.cc-call-status.is-error .cc-dot{background:#dc2626}
@keyframes ccpulse{0%{opacity:1}50%{opacity:.35}100%{opacity:1}}
.cc-timer{margin-left:auto;font-variant-numeric:tabular-nums;color:#475569;font-weight:500}
.cc-call-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.cc-outcomes{display:grid;grid-template-columns:1fr 1fr;gap:6px}
@media (max-width:760px){.cc-box-call,.cc-dialer-grid .cc-box:first-child{padding-right:72px}}   /* Solar Assistant-knapparna ligger fast till höger på mobil */
.cc-oc{justify-content:center}
.cc-oc-booked{grid-column:1 / -1;background:#dcfce7;border-color:#86efac;color:#166534}
.cc-outcome-extra{margin-top:10px;background:#f8fafc;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}
.cc-outcome-extra label{font-size:11px;font-weight:600;color:#64748b;display:flex;flex-direction:column;gap:3px}

.cc-live-dot{width:8px;height:8px;border-radius:50%;background:#16a34a;display:inline-block;animation:ccpulse 1.4s infinite;margin-right:6px}
.cc-agent{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px;border-left:5px solid #cbd5e1}
.cc-agent.is-in_call{border-left-color:#16a34a}.cc-agent.is-ringing{border-left-color:#f59e0b}.cc-agent.is-wrapup{border-left-color:#0ea5e9}
.cc-agent h4{margin:0 0 4px;font-size:15px;color:#024550}
.cc-agent .cc-agent-state{font-size:12px;font-weight:600;margin-bottom:6px}
.cc-agent .cc-agent-nums{display:flex;gap:10px;font-size:12px;color:#475569;flex-wrap:wrap}
.cc-agent .cc-agent-nums b{color:#024550}
.cc-listen-bar{position:sticky;bottom:0;background:#024550;color:#fff;border-radius:12px;padding:12px 16px;display:flex;align-items:center;gap:12px;margin-top:14px}
.cc-listen-bar .cc-btn{background:#fff}

.cc-modal{position:fixed;inset:0;background:rgba(2,69,80,.45);z-index:9600;display:flex;align-items:center;justify-content:center;padding:16px}
.cc-modal-box{background:#fff;border-radius:14px;width:min(560px,96vw);max-height:92vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.cc-modal-wide{width:min(960px,96vw)}
.cc-modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e5e7eb}
.cc-modal-head h3{margin:0;font-size:17px;color:#024550}
.cc-x{background:none;border:none;font-size:24px;color:#94a3b8;cursor:pointer;line-height:1}
.cc-modal-body{padding:16px 20px;overflow:auto}
.cc-modal-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:12px 20px;border-top:1px solid #e5e7eb}
.cc-modal-foot .cc-muted{margin-right:auto}
.cc-two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:760px){.cc-two-col{grid-template-columns:1fr}}
.cc-label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;color:#64748b;margin-bottom:10px}
.cc-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.cc-check{display:flex;align-items:center;gap:8px;font-size:13px;color:#1f2937;margin:6px 0}
.cc-check input{width:auto;margin:0}
.cc-agent-list{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;max-height:200px;overflow:auto;border:1px solid #e5e7eb;border-radius:8px;padding:8px}
.cc-agent-list label{display:flex;align-items:center;gap:6px;font-size:13px}
.cc-agent-list input{width:auto;margin:0}
.cc-rec{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#7c3aed;cursor:pointer}
.cc-rec audio{height:28px}
