table tbody>tr.selected input,
table tbody>tr.selected textarea,
table tbody>tr.selected span,
table tbody>tr.selected button {
  font-weight: 700;
  border-radius: unset;
}

tr.document-subdetail input {
  border-radius: unset;
}

.width-fit-content {
  width: fit-content;
}

.input-group-text.dropdown-toggle::after {
  content: unset;
}

#table-lookup-values td {
  white-space: break-spaces;
}

#lookupModal .modal-dialog {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

#lookupModal .modal-content,
.tariffConfigurator .modal-content {
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

#lookupModal .modal-body,
.tariffConfigurator .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  /* Prevent overflow outside the body */
}

.input-container {
  padding: 1rem;
  background: transparent;
  /* Light background for the input area */
  border-bottom: 1px solid #dee2e6;
  /* Border to separate from the table */
  flex-shrink: 0;
  /* Prevent shrinking */
}

.table-container {
  overflow-y: auto;
  flex: 1;
  /* Take up remaining space */
}

.nspy-progress-spinner {
  width: 100%;
  height: 5px;
  background-color: #e0e0e0;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.nspy-progress-bar {
  width: 30%;
  height: 100%;
  background-color: #007bff;
  position: absolute;
  top: 0;
  left: 0;
  animation: nspy-progress-back-and-forth 1.5s ease-in-out infinite;
}

@keyframes nspy-progress-back-and-forth {
  0% {
    left: 0;
  }

  50% {
    left: 70%;
  }

  100% {
    left: 0;
  }
}

#table-lookup-values thead,
.table-predefined-tariffs thead {
  position: sticky;
  top: 0;
  background: white;
}

.nested-table {
  margin-top: 10px;
  margin-left: 20px;
}

.label-new {
  display: flex;
  justify-content: start;
}

.grid-new {
  display: grid;
  grid-template-columns: auto 20rem;
  row-gap: 1rem;
  column-gap: 2.5rem;
  width: fit-content;
}

.grid-new div {
  align-items: center;
}

.flex-new {
  display: flex;
  gap: 0.5rem;
}

.gap-row {
  height: 1rem;
  /* Adjust height as needed */
}

.border-radius-0 {
  border-radius: 0;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.collapsing {
    transition: none !important;
    height: auto !important;
}