/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

@import "../../dashboard.component.scss";
@import "../../section-style";
@import "../../button-style";

.subsection-grid-container {
  min-width: 100%;
  width: 100%;
  min-height: 100%;
  height: 100%;
}

.memory-selection,
.cpu-selection,
.gpu-selection {
  width: 100%;
}

.jvm-memory-slider {
  width: 100%;
  margin: 10px 0;
}

.memory-warning {
  margin-top: 10px;
  font-size: 0.9em;
}

.create-compute-unit-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-content: start;
  align-items: center;
}

.select-unit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
}

.select-unit.name-field {
  grid-column: span 2;
}

.unit-name-input {
  width: 100%;
}

.shared-memory-group {
  width: 100%;

  .shm-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  .shm-size-input {
    width: 60px;
    min-width: 50px;
    flex-shrink: 0;
  }

  .shm-unit-select {
    width: 80px;
    min-width: 70px;
    flex-shrink: 0;
  }

  .shm-warning {
    margin-top: 4px;
    font-size: 12px;
    color: #faad14;
    white-space: nowrap;
  }
}
