/* modal */
.modal {
  color: #fff;
  background-color: rgba(152, 166, 173, 0.7);
}
.modal-dialog {
  margin-top: 150px;
}
.modal-content {
  background-color: var(--me-background);
}
.modal-content.profile {
  width: 620px;
  border: var(--me-darkgray) 1px solid;
}
.modal-header,
.modal-footer {
  border: 0;
}
.modal-footer > button {
  min-width: 120px;
  height: 40px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}
.modal-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  background-color: #158AE1;
  margin-bottom: 4px;
  margin-right: 9px;
  margin-left: 5px;
}

.modal-body {
  font-weight: 300;
  padding: 0px var(--bs-modal-padding);
}

.modal-body > form > .modal-item {
  min-height: 50px;
  background-color: var(--me-charcoal);
  margin-bottom: 5px;
}

.modal-body > form > .modal-item > label {
  display: inline-block;
  color: #fff;
  min-width: 24%;
  font-weight: 500;
  font-size: 16px;
  padding: 13px 0px 13px 16px; 
}

.modal-body > form > .modal-item > input,
.modal-body > form > .modal-item > textarea,
.modal-body > form > .modal-item > .form-select {
  display: inline-block;
  width: 75%;
  background-color: #303437;
  border-color: #43494E;
  color: var(--me-white);
  margin-top: 5px;
}

.modal-body > form > .modal-item > .form-select {
  width: 50% !important;
}

.modal-body > form > .modal-item > input,
.modal-body > form > .modal-item > .form-select {
  height: 40px;
}

.modal-body > form > .modal-item > .form-select:disabled {
  cursor: not-allowed !important;
}

.modal-body > form > .modal-item > input.password {
  width: calc(75% / 2 - .25rem);
}

.modal-body > form > .modal-item > input:disabled {
  background-color: #43494E;
  cursor: not-allowed;
}

.modal-body-emphasis {
  color: var(--me-primary);
}
.btn.btn-secondary,
.btn-common.btn-secondary {
  background-color: #303437;
  color: var(--me-white);
}
.btn-common.btn-secondary {
  text-shadow: none;
}
.btn.btn-secondary:hover,
.btn-common.btn-secondary:hover {
  background-color: #2b2f31;
}
.modal-header .btn-close {
  opacity: 1;
  background: url(../images/ico-close.svg) center center no-repeat;
}
.color-red {
  color: #ff7792;
}
.mb-3 label {
  display: inline-block;
  color: #fff;
  min-width: 24%;
}
.mb-3 label i {
  color: #ff7792;
  font-size: 18px;
}
.mb-3 input,
.form-select {
  display: inline-block;
  width: 75%;
  background-color: transparent;
  border-color: #98a6ad;
  color: #fff;
}
.mb-3 input::placeholder {
  color: #98a6ad;
}
.form-control:disabled {
  background-color: var(--me-background);
  border: none;
  color: var(--me-darkgray);
}
.form-select {
  cursor: pointer;
  padding: 0.375rem 1.2rem 0.375rem 0.75rem;
  background: url("../images/ico-arrow-bottom2.svg") no-repeat right;
  background-position: 97% 50%;
  color: var(--me-darkgray);
}
.form-select option {
  background-color: var(--me-background);
}
.copy-text {
  background-color: var(--me-background);
  padding: 8px;
  margin-top: 16px;
  color: #fff;
  height: 100px;
  word-break: break-all;
  font-size: 14px;
  font-weight: 300;
}

.form-check {
  line-height: 1.7rem;
}
.form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-color: var(--me-white);
}
.form-check-input:checked {
  background-color: var(--me-primary);
  border-color: var(--me-primary);
}
.modal-body-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.modal-body-header:first-child {
  margin-left: 5%;
}
.modal-body-header .form-dropdown-wrapper {
  margin: 0;
}
.modal-body-header .form-dropdown-wrapper .form-dropdown:last-child {
  margin: 0;
}
.yaml-read-file {
  background-color: var(--me-primary);
  color: #fff;
  padding: 4px 8px;
  font-size: 14px;
  text-shadow: 0 0 3px #333;
}
.LN_area {
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  height: 300px;
  line-height: 24px;
  margin-bottom: 16px;
}
.modal-body-read {
  background-color: var(--me-background);
  width: 95%;
  min-height: 300px;
  margin-left: 1%;
  padding: 6px 8px;
  color: #fff;
  font-weight: 300;
  outline: none;
  border: none;
}
.modal-body-read-error {
  background-color: var(--me-background);
  width: 95%;
  min-height: 60px;
  margin-left: 5%;
  padding: 6px 8px;
  color: var(--me-red);
  font-weight: 300;
  text-align: left;
  outline: none;
  border: none;
}
.hidden {
  visibility: hidden;
  width: 1px;
}
.mb-3.password input {
  width: 285px;
}

.modal-lg-custom label {
  min-width: 15%;
  vertical-align: top;
}
.modal-lg-custom input,
.hardware-wrapper {
  display: inline-block;
  width: 84%;
}
.modal-lg-custom .half {
  width: 37%;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}
.hardware-wrapper {
  display: flex;
  align-items: center;
  margin: 5px;
  width: 100%;
}
.hardware-group {
  height: 180px;
  border: 1px solid #43494E;
  border-radius: 0.375rem;
  color: var(--me-darkgray);
  line-height: 24px;
  width: calc((100% - 50px) / 2);
}

.hardware-group .hardware-list-title {
  color: #B0B8BE;
  background-color: #303437;
  font-size: 16px;
  border-radius: 0.375rem 0.375rem 0px 0px;
  border-bottom: 1px solid #43494E;
  height: 40px;
  padding: 8px 10px;
}

.hardware-group-arrow {
  display: flex;
  flex-direction: column;
  width: 40px;
  margin: 0 5px;
}

.hardware-group-arrow button {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 0.375rem;
  margin-bottom: 5px;
  border: 1px solid #43494E;
  background-color: #303437;
}

.hardware-group-arrow button:hover {
  background-color: #43494E;
}

.hardware-group-arrow button:disabled {
  background-color: #303437 !important;
  cursor: not-allowed !important;
}

ul.hardware-list {
  height: 130px;
  overflow-y: auto;
  margin: 5px;
}

ul.hardware-list li {
  color: var(--me-white);
  cursor: pointer;
  padding: 3px 10px;
  margin-bottom: 3px;
}

ul.hardware-list li:hover,
ul.hardware-list li.hardware-active {
  background-color: #43494E;
}

.hardware-group.disabled > ul.hardware-list li {
  cursor: not-allowed !important;
  color: var(--me-text) !important;
  background-color: transparent !important;
}

#errorModal, #messageModal {
  z-index: 1056;
}