/* ============================================================
   Navigator v8 — korekty stylu wg makiet HTML (bez zbędnych kolorów)
   ============================================================ */

/* ── Typografia globalna — Montserrat ── */
* { font-family: 'Montserrat', -apple-system, sans-serif !important; }

/* ── Topbar / nagłówki sekcji ── */
.view-header h1,
.view-header .section-title {
  font-size: 11px !important;
  font-weight: 300 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: #9196a8 !important;
}

/* ── KPI karty — dokładnie jak w makiecie ── */
.kpi-card { border-radius: 12px !important; border: 1px solid #e8eaf0 !important; padding: 14px 16px !important; }
.kpi-value { font-size: 28px !important; font-weight: 200 !important; letter-spacing: -0.02em !important; line-height: 1 !important; }
.kpi-label { font-size: 10px !important; font-weight: 500 !important; color: #9196a8 !important; letter-spacing: .1em !important; text-transform: uppercase !important; margin-top: 6px !important; }

/* Kolory KPI per karta */
.kpi-card.kpi-blue   .kpi-value { color: #4f7fff !important; }
.kpi-card.kpi-orange .kpi-value { color: #f0a843 !important; }
.kpi-card.kpi-red    .kpi-value { color: #e05252 !important; }
.kpi-card.kpi-green  .kpi-value { color: #34c97e !important; }

/* ── Zegar — bez emoji ── */
#globalClock { gap: 6px; }

/* ── Listy zgłoszeń — styl z makiety ── */
.litem, .lead-card {
  padding: 11px 16px !important;
  border-bottom: 1px solid #f8fafc !important;
  border-radius: 0 !important;
}
.litem:hover { background: #f8fafc !important; }

/* Badge czasu (pomarańczowy pill) */
.lead-age, .lage {
  font-size: 10px !important; font-weight: 500 !important;
  color: #f0a843 !important; background: #fff8ec !important;
  border-radius: 20px !important; padding: 2px 8px !important;
  border: none !important; white-space: nowrap !important;
}

/* ── Przyciski Zadzwoń/Oddzwoń — czarne ── */
.btn-callback-call,
.lc-btn-call,
.lcall,
button[onclick*="initiateCall"],
.btn-call-dark {
  background: #111827 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 5px 12px !important;
}
.btn-callback-call:hover,
.lc-btn-call:hover { background: #1f2937 !important; }

/* ── Tabela połączeń ── */
.calls-table th {
  font-size: 9px !important; font-weight: 600 !important;
  letter-spacing: .1em !important; text-transform: uppercase !important;
  color: #9196a8 !important; padding: 9px 14px !important;
}
.calls-table td { font-size: 11px !important; font-weight: 300 !important; padding: 10px 14px !important; }
.calls-table tbody tr:hover td { background: #f8fafc !important; }

/* Kierunek połączeń */
.dir-in   { color: #4f7fff !important; display: flex; align-items: center; gap: 4px; }
.dir-out  { color: #34c97e !important; display: flex; align-items: center; gap: 4px; }
.dir-miss { color: #9196a8 !important; display: flex; align-items: center; gap: 4px; }
.dir-badge { font-size: 11px !important; font-weight: 400 !important; }

/* Status dot */
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ── Mail — aktywna pozycja ── */
.mail-item.active {
  border-left: 2px solid #4f7fff !important;
  padding-left: 14px !important;
  background: #f4f6f9 !important;
}
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: #4f7fff; flex-shrink: 0; }

/* Reply textarea + button */
#mail-reply-text { background: #f4f6f9 !important; border: 1px solid #e8eaf0 !important; }

/* ── Sidebar — etykiety zarządzane przez JS (hover-expand) ── */

/* ── Tabela zakładki filtrów (połączenia) ── */
.call-filter-btn, .tab-filter {
  font-size: 11px !important; font-weight: 400 !important;
  padding: 5px 14px !important; border-radius: 6px !important;
  border: none !important; background: none !important;
  color: #9196a8 !important; cursor: pointer !important;
  font-family: 'Montserrat', sans-serif !important;
}
.call-filter-btn.active, .tab-filter.active {
  background: #f4f6f9 !important; color: #1a2033 !important;
  font-weight: 500 !important; border: 1px solid #e8eaf0 !important;
}

/* ── Usunięcie nadmiarowych tła/cieni ── */
.kpi-card { box-shadow: none !important; }
.panel, .card-section { box-shadow: none !important; }


/* ── Odtwarzacz nagrań — interaktywny ── */
.rec-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f4f6f9;
  border-radius: 10px;
  border: 1px solid #e5e8f0;
  min-width: 180px;
  transition: background .15s;
}
.rec-player.playing { background: #eef3ff; border-color: #c7d7ff; }

.rec-play-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 1.5px solid #e5e8f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.rec-play-btn:hover { background: #eef3ff; border-color: #4f7fff; }
.rec-player.playing .rec-play-btn { background: #eef3ff; border-color: #4f7fff; }

.rec-waveform {
  display: flex; align-items: center; gap: 2px;
  height: 20px; flex: 1;
}
.rec-waveform span {
  display: block; width: 2.5px; border-radius: 2px;
  background: #b5d4f4; transition: background .1s;
}
@keyframes wfAnim {
  from { transform: scaleY(0.5); }
  to   { transform: scaleY(1.4); }
}

.rec-time {
  font-size: 10px; font-weight: 300; color: #9196a8;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  min-width: 50px; text-align: right;
}

/* Przycisk transkryptu */
.transcript-btn {
  display: flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 500; color: #9196a8;
  padding: 3px 6px; border-radius: 5px;
  border: 1px solid #e5e8f0; background: #fff;
  text-decoration: none; white-space: nowrap;
  transition: all .15s; flex-shrink: 0;
}
.transcript-btn:hover { color: #4f7fff; border-color: #4f7fff; background: #eef3ff; }

/* Age badge — bez emoji, z kolorowym lewym borderem */
.lead-age {
  font-size: 10px; font-weight: 500;
  border-radius: 20px; padding: 2px 8px;
  background: #fff8ec; color: #f0a843;
  white-space: nowrap;
}
.lead-age.age-ok       { background: #edf9f3; color: #1a7a4a; }
.lead-age.age-warn     { background: #fff8ec; color: #a05f10; }
.lead-age.age-critical { background: #fef2f2; color: #c0392b; }

/* Lead card — clean style bez kolorowych awatarów */
.lead-card-v2 {
  background: #fff !important;
  border: 1px solid #e8eaf0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 8px !important;
  box-shadow: none !important;
}
.lc-avatar {
  width: 34px !important; height: 34px !important;
  border-radius: 50% !important;
  font-size: 12px !important; font-weight: 400 !important;
}
.lc-name { font-size: 13px !important; font-weight: 400 !important; color: #1a2033 !important; }
.lc-phone { font-size: 11px !important; font-weight: 300 !important; color: #9196a8 !important; }
.lc-btn-call {
  background: #111827 !important; color: #fff !important;
  border-radius: 6px !important; font-size: 11px !important;
  font-weight: 400 !important; padding: 5px 12px !important;
  border: none !important;
}
.lc-btn-report, .lc-btn-delete {
  background: none !important;
  border: 1px solid #e8eaf0 !important;
  color: #5c6070 !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  padding: 4px 10px !important;
}

