.dashboard-settings {
  width: 1000px;
  max-width: 1200px;
  min-height: 300px;
  padding: 2rem 1rem 0 1rem;
  margin: 0 auto;

  @media (max-width: 768px) {
    width: 100%;
    max-width: 100%;
    padding: 3rem 1rem 0 1rem;
    box-sizing: border-box;
  }
}

.scroller-item {
  border: var(--card-border);
  transition: all 0.2s;
  border-color: var(--p-content-border-color);
  background: var(--p-content-background);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.375rem;

  @media (max-width: 768px) {
    padding: 0.75rem !important;
  }
}

.scroller-content {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

.scroller-controls-left {
  display: flex;
  align-items: center;
  padding-bottom: 0.65rem;

  @media (max-width: 768px) {
    padding-bottom: 0;
    align-self: flex-start;
  }
}

.scroller-controls-right {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.25rem;

  @media (max-width: 768px) {
    padding-bottom: 0;
    align-self: flex-end;
  }
}

.scroller-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--p-content-border-color);

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.scroller-fields {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(100px, 1fr) 90px;
  gap: 0.75rem;
  flex: 1;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  @media (max-width: 640px) {
    gap: 0.5rem;
  }
}

.scroller-field {
  label {
    display: block;
    margin-bottom: 0.5rem;
  }
}

label {
  color: var(--text-color-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--p-content-border-color);

  @media (max-width: 768px) {
    flex-wrap: wrap;
    justify-content: stretch;

    ::ng-deep button {
      flex: 1;
    }
  }
}

.settings-info {
  border: 1px solid var(--p-primary-300);
  margin-bottom: 2rem;
  padding: 0.75rem;
  border-radius: 0.375rem;

  @media (max-width: 768px) {
    padding: 0.75rem !important;
  }
}

.settings-info-title {
  color: var(--p-primary-600);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;

  i {
    margin-right: 0.25rem;
  }

  @media (max-width: 768px) {
    font-size: 1rem;
  }
}

.settings-info-text {
  margin: 0;
  line-height: 1.5;
  font-size: 0.875rem;
  color: var(--text-color-secondary);

  @media (max-width: 768px) {
    font-size: 0.813rem;
  }
}

.add-scroller-wrapper {
  margin-bottom: 1rem;
}
