﻿.tele-users-page {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.tele-users-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(175,190,220,.8);
  box-shadow: 0 10px 30px rgba(27,58,112,.12);
}

.tele-users-kicker {
  font-size: 12px;
  font-weight: 950;
  color: #2f6ea7;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tele-users-head h2 {
  margin: 4px 0 4px;
  font-size: 28px;
  line-height: 1.05;
  color: #071b3a;
}

.tele-users-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #526784;
}

.tele-primary-btn,
.tele-btn,
.tele-action-btn,
.tele-modal-close {
  border: 0;
  cursor: pointer;
  font-weight: 950;
  border-radius: 12px;
}

.tele-primary-btn {
  background: #2477b8;
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 8px 18px rgba(36,119,184,.22);
}

.tele-users-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(205,215,235,.9);
}

.tele-search {
  width: min(520px, 100%);
  border: 1px solid #cbd8ee;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
  background: #fff;
}

.tele-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #18345e;
  white-space: nowrap;
}

.tele-user-list {
  display: grid;
  gap: 12px;
}

.tele-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(195,208,232,.9);
  box-shadow: 0 8px 22px rgba(27,58,112,.10);
}

.tele-user-main {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.tele-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: #1b4f91;
  font-size: 22px;
  flex: 0 0 auto;
}

.tele-user-info {
  min-width: 0;
  width: 100%;
}

.tele-user-name {
  font-size: 18px;
  font-weight: 950;
  color: #071b3a;
  margin-bottom: 4px;
}

.tele-user-phone {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 20px;
  font-weight: 950;
  color: #071b3a;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.tele-user-phone-icon {
  color: #db2777;
}

.tele-user-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tele-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  border: 1px solid transparent;
}

.tele-pill.online,
.tele-pill.active {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.tele-pill.offline,
.tele-pill.blocked {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.tele-pill.unknown {
  background: #e5e7eb;
  color: #374151;
  border-color: #cbd5e1;
}

.tele-phone-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tele-phone-input-wrap {
  position: relative;
  width: min(280px, 100%);
}

.tele-phone-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd8ee;
  border-radius: 12px;
  padding: 11px 36px 11px 12px;
  font-size: 14px;
  font-weight: 850;
  outline: none;
  background: #fff;
}

.tele-clear-phone {
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
}

.tele-btn-save {
  background: #2477b8;
  color: #fff;
  padding: 11px 14px;
}

.tele-user-actions {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  gap: 8px;
}

.tele-action-btn {
  min-height: 58px;
  background: #2477b8;
  color: #fff;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(36,119,184,.18);
}

.tele-action-btn span {
  font-size: 19px;
  line-height: 1;
}

.tele-action-btn small {
  font-size: 11px;
  font-weight: 950;
}

.tele-loading,
.tele-empty {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  border: 1px dashed #cbd8ee;
  font-weight: 900;
  color: #526784;
}

.tele-empty.bad {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.tele-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,23,42,.58);
  display: grid;
  place-items: center;
  padding: 24px;
}

.tele-modal {
  width: min(900px, 96vw);
  max-height: 86vh;
  overflow: hidden;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid #d7e2f3;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.tele-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #d7e2f3;
}

.tele-modal-title {
  font-size: 24px;
  font-weight: 950;
  color: #071b3a;
}

.tele-modal-sub {
  font-size: 13px;
  font-weight: 850;
  color: #526784;
}

.tele-modal-close {
  background: #dc2626;
  color: #fff;
  padding: 10px 16px;
}

.tele-modal-body {
  overflow: auto;
  padding: 16px;
}

.tele-log-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  font-weight: 700;
  color: #071b3a;
  background: #fff;
  border: 1px solid #d7e2f3;
  border-radius: 14px;
  padding: 14px;
}

@media (max-width: 920px) {
  .tele-user-row {
    grid-template-columns: 1fr;
  }

  .tele-user-actions {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
  }
}

@media (max-width: 620px) {
  .tele-users-head,
  .tele-users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tele-user-main {
    flex-direction: column;
  }

  .tele-user-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tele-btn-add-phone {
  background: #eaf2ff;
  color: #1b4f91;
  border: 1px solid #b8ccef;
  padding: 11px 14px;
}

.tele-btn-add-phone:hover {
  background: #dbeafe;
}


/* Tele Users row status colors */
.tele-user-row.row-online {
  background: #dcfce7;
  border-color: #86efac;
  box-shadow: inset 8px 0 0 #16a34a, 0 8px 22px rgba(22,163,74,.14);
}

.tele-user-row.row-offline {
  background: #fee2e2;
  border-color: #fca5a5;
  box-shadow: inset 8px 0 0 #dc2626, 0 8px 22px rgba(220,38,38,.12);
}

.tele-user-row.row-stale {
  background: #fff7cc;
  border-color: #facc15;
  box-shadow: inset 8px 0 0 #d97706, 0 8px 22px rgba(217,119,6,.12);
}

.tele-user-row.row-disabled {
  background: #e5e7eb;
  border-color: #cbd5e1;
  box-shadow: inset 8px 0 0 #64748b, 0 8px 22px rgba(100,116,139,.12);
  opacity: .92;
}

.tele-user-row.row-neutral {
  background: rgba(255,255,255,.94);
  border-color: rgba(195,208,232,.9);
  box-shadow: inset 8px 0 0 #94a3b8, 0 8px 22px rgba(27,58,112,.10);
}

.tele-pill.row-online {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
}

.tele-pill.row-offline {
  background: #dc2626;
  color: #ffffff;
  border-color: #991b1b;
}

.tele-pill.row-stale {
  background: #facc15;
  color: #78350f;
  border-color: #d97706;
}

.tele-pill.row-disabled {
  background: #64748b;
  color: #ffffff;
  border-color: #475569;
}

.tele-pill.row-neutral {
  background: #e5e7eb;
  color: #334155;
  border-color: #cbd5e1;
}

.tele-user-agentline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: -2px 0 10px;
  font-size: 12px;
  font-weight: 850;
  color: #334b6b;
}

.tele-user-row.row-online .tele-user-agentline {
  color: #14532d;
}

.tele-user-row.row-offline .tele-user-agentline {
  color: #7f1d1d;
}

.tele-user-row.row-stale .tele-user-agentline {
  color: #78350f;
}

.tele-action-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.2);
}

