/* Стили для информационной секции клиента */

/* Стили для телефонных номеров */
.phone-info {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.phone-number {
  font-size: 0.85em !important;
  font-weight: bold !important;
}

.phone-type {
  font-size: 0.7em !important;
  white-space: nowrap !important;
  color: #f8f9fa !important;
}

/* Показ/скрытие телефонов */
.toggle_phones {
  padding: 2px 8px !important;
  font-size: 0.7rem !important;
}

.phone-numbers:not(.visible) {
  display: none !important;
}

.phone-numbers.visible {
  display: table-row-group !important;
}

.phone-numbers td {
  padding-top: 0 !important;
  padding-bottom: 2px !important;
}

/* Таблица информации о клиенте */
.table-responsive td {
  white-space: nowrap !important;
  padding: 4px 15px 4px 0 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  vertical-align: middle !important;
}

.table-responsive td:first-child {
  padding-left: 0 !important;
  width: 200px !important;
}

.table-responsive table {
  margin-bottom: 0.5rem !important;
}

.table-responsive tr {
  line-height: 1.2 !important;
}

.table-responsive tbody tr {
  margin-bottom: 0 !important;
}

.table-responsive .fa-solid {
  /* margin-right: 8px !important; */
  width: 16px !important;
  text-align: center !important;
}


/* Прогресс-бар */
.progress {
  height: 12px !important;
  border-radius: 6px !important;
  margin-top: 10px !important;
  overflow: hidden !important;
}

.progress-bar {
  font-size: 10px !important;
  line-height: 12px !important;
}

/* Стиль для бейджа долга */
.badge.rounded-pill {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.7rem !important;
}

/* Стили для иконок */
.fa-credit-card.text-primary {
  color: #007bff !important;
}

.fa-exclamation-circle.text-danger {
  color: #dc3545 !important;
}

.fa-times-circle.text-danger {
  color: #dc3545 !important;
}

.fa-check-circle.text-success {
  color: #28a745 !important;
}

/* Адаптивные стили */
@media (max-width: 576px) {
  .phone-info {
    flex-direction: row !important;
  }

  .phone-number {
    margin-bottom: 5px !important;
  }

  .phone-type {
    margin-top: 0 !important;
  }
  
  .table-responsive td:first-child {
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .card-body h5 {
    font-size: 1.1em !important;
  }

  .btn-sm {
    font-size: 10px !important;
  }

  .table-responsive {
    margin-bottom: 10px !important;
  }

  .table td {
    padding: 3px 10px 3px 0 !important;
  }

  .phone-type {
    margin-top: 5px !important;
  }

  .phone-info {
    flex-direction: column !important;
  }

  .phone-number {
    margin-bottom: 5px !important;
  }
} 