div.modal-dialog.modal-default {
  margin-top: 20vh;
  margin-left: auto;
  margin-right: auto;

  width: auto;
  height: auto;
  max-height: 80vh;
}

div.modal-dialog.modal-sm {
  width: 400px;
}

div.modal-dialog.modal-lg {
  margin-top: 10vh;
}

div.modal-dialog.modal-xl {
  margin-top: 5vh;
}

@media (min-width: 768px) {
  div.modal-dialog.modal-default {
    width: 30vw;
  }

  div.modal-dialog.modal-sm {
    width: 400px;
  }

  div.modal-dialog.modal-lg {
    width: 60vw;
  }

  div.modal-dialog.modal-xl {
    width: 80vw;
  }
}

div#async_loading_bar div.modal-dialog div.modal-content {
  overflow: inherit;
}

div.modal-content {
  overflow: hidden;
}

/* POL-12690 - Async task loading bar modal*/
#async_loading_bar {
  .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 18px;
    font-weight: bold;
    color: white;

    .loading_container {
      width: 100%;
      height: 30px;
      border: 3px solid white;
      border-radius: 25px;
      margin: 5px 0;
      .loading_bar {
        background-color: rgb(0, 158, 232);
        margin: 3px;
        height: calc(100% - 6px);
        max-width: calc(100% - 6px);
        border-radius: 25px;
        transition: width 1s ease-in-out;
      }
    }

    .loading_cancel {
      position: absolute;
      right: 15px;
      background: transparent;
      border: none;
    }
    .loading_cancel:hover {
      filter: brightness(0.9);
    }
  }
}



/*https://manifold.atlassian.net/browse/POL-15318 define an area to input the minimum and maximum */
/* style.css */

/* The Modal Backdrop (hidden by default) */
.range-modal-backdrop {
  display: none; /* Changed to 'flex' via JS to show */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
  backdrop-filter: blur(4px); /* Modern blur effect */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Keeps it on top of everything */
}

/* Container now acts as the modal box */
.numeric-range-div {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
  gap: 5px;
  text-align:left;
  padding: 2px;
  overflow-x: visible;
  position:relative;
  box-sizing: border-box; width: 100%;
}

.range-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.numeric-range-container label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  font-family: sans-serif;
}

.numeric-range-container input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.numeric-range-container input[type="number"]:focus {
  border-color: #0066cc;
}

/* A simple close button inside the modal */
.range-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  margin-left: 8px;
}

.range-modal-close:hover {
  color: #333;
}