/* DANGYLSIRL ADMIN PHONE V1 */

.phone-live-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}

.phone-live-card{
  position:relative;
  padding:17px;
  min-height:150px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0,rgba(221,0,22,.10),transparent 40%),
    linear-gradient(145deg,#121720,#0d1118);
  box-shadow:var(--shadow);
}

.phone-live-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:#667285;
}

.phone-live-card.is-queued::before{
  background:var(--amber);
}

.phone-live-card.is-answered::before{
  background:var(--green);
}

.phone-live-card.is-ivr::before,
.phone-live-card.is-automated::before{
  background:var(--accent2);
}

.phone-live-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.phone-number{
  font-size:18px;
  font-weight:850;
  letter-spacing:-.3px;
  word-break:break-all;
}

.phone-topic{
  margin-top:5px;
  color:#d6dce6;
  font-size:12px;
  font-weight:750;
}

.phone-live-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}

.phone-meta{
  padding:10px;
  border:1px solid rgba(37,45,58,.85);
  border-radius:10px;
  background:#0a0e14;
}

.phone-meta span{
  display:block;
  margin-bottom:4px;
  color:var(--muted2);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.phone-meta b{
  font-size:12px;
}

.phone-section-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:15px;
  margin-bottom:15px;
}

.phone-summary-list{
  padding:4px 15px 10px;
}

.phone-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:48px;
  border-bottom:1px solid rgba(37,45,58,.75);
}

.phone-summary-row:last-child{
  border-bottom:0;
}

.phone-summary-row span{
  color:var(--muted);
  font-size:11px;
}

.phone-summary-row b{
  font-size:12px;
}

.phone-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-bottom:12px;
}

.phone-toolbar input{
  width:min(360px,100%);
  margin:0;
}

.phone-toolbar select{
  width:auto;
  min-width:165px;
  margin:0;
}

.phone-history-number{
  font-weight:800;
  font-size:12px;
}

.phone-history-topic{
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
}

.phone-table-time{
  line-height:1.4;
}

.phone-table-time small{
  display:block;
  color:var(--muted2);
}

.phone-pagination{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin-top:12px;
}

.phone-pagination-info{
  color:var(--muted);
  font-size:10px;
}

.phone-live-empty{
  grid-column:1/-1;
  padding:35px 20px;
  border:1px dashed var(--line2);
  border-radius:14px;
  color:var(--muted);
  text-align:center;
  background:rgba(255,255,255,.01);
}

.phone-pulse{
  width:7px;
  height:7px;
  display:inline-block;
  margin-right:6px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 0 rgba(50,213,131,.5);
  animation:phonePulse 1.8s infinite;
}

@keyframes phonePulse{
  0%{box-shadow:0 0 0 0 rgba(50,213,131,.4)}
  70%{box-shadow:0 0 0 7px rgba(50,213,131,0)}
  100%{box-shadow:0 0 0 0 rgba(50,213,131,0)}
}

.phone-status-line{
  color:var(--muted);
  font-size:10px;
}

.phone-status-line.error{
  color:#ff9eaa;
}

.phone-topic-bars{
  padding:8px 15px 14px;
}

.phone-topic-bar{
  margin:12px 0;
}

.phone-topic-bar-head{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-bottom:6px;
  font-size:11px;
}

.phone-topic-bar-head span{
  color:var(--muted);
}

.phone-topic-track{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#080b10;
  border:1px solid var(--line);
}

.phone-topic-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
}

@media(max-width:1050px){
  .phone-live-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .phone-section-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:650px){
  .phone-live-grid{
    grid-template-columns:1fr;
  }

  .phone-live-meta{
    grid-template-columns:1fr 1fr;
  }

  .phone-toolbar{
    flex-direction:column;
  }

  .phone-toolbar input,
  .phone-toolbar select{
    width:100%;
    max-width:none;
  }

  .phone-pagination{
    justify-content:space-between;
  }
}
