.dialog-content {
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.action-container {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  padding: 1.5em;
}

.select-container {
  margin-top: 20px;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.client-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;

  &:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
  }
}

.button-row {
  display: flex;
  padding-right: 1em;
}

.action-button {
  margin-top: 10px;
  margin-bottom: 10px;
}

.client-item {
  position: relative;
}

.mat-expansion-panel-header-description {
  justify-content: space-between;
  align-items: center;
}

.selected-client {
  background-color: #a0c2e5 !important;
  color: white !important;
}

.loading-spinner {
  display: block;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.client-details {
  margin-top: 4px;
}

.client-name {
  font-size: 0.9em;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  display: inline-block;
}

.client-ip {
  display: block;
  font-size: 0.9em;
  color: #666;
}


.mat-elevation-z8 {
  box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .form-field {
    width: 100%;
  }

  .dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
    margin-left: 0;
    margin-bottom: 8px;
  }
}
