/* ==========================================================================
   Телефония (S7): карточка звонка, плеер записи и экран #/telephony.
   ========================================================================== */

.screenpop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  animation: screenpop-in 0.18s ease-out;
}

@keyframes screenpop-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.screenpop-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
}

.screenpop-head .muted {
  color: #cbd5e1;
}

.screenpop-head .icon-btn {
  margin-left: auto;
  color: #fff;
}

.screenpop-direction {
  font-weight: 600;
}

.screenpop-body {
  padding: 12px;
}

.screenpop-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.screenpop-history {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: #475569;
}

.screenpop-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;
  flex-wrap: wrap;
}

.call-recording {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.tel-audio {
  width: 100%;
  margin-top: 6px;
}

.tel-recording-cell {
  min-width: 220px;
}

.tel-recording-cell .tel-audio {
  min-width: 200px;
}

.tel-extension {
  width: 80px;
  text-align: center;
}

@media (max-width: 768px) {
  .screenpop {
    right: 8px;
    left: 8px;
    bottom: 70px;
    width: auto;
    max-width: none;
  }
}
