html {
  font-size: 14px;
}

.modal-header {
  background-color: #337ab7;
  padding: 10px 10px;
  color: #fff;
  border-bottom: 2px dashed #337ab7;
  height: 44px;
}
.close {
  color: #ffffff;
}
.close:hover {
  color: red;
}
.dropdown > .dropdown-item:hover {
  background: lightblue;
  color: white;
}
.dropdown-menu {
  left: -180px;
}
input:invalid {
  border: solid red;
  border-width: 1px;
}
select:invalid {
  border: solid red;
  border-width: 1px;
}
.input-error ~ .select2-container .select2-selection {
  border-color: red;
}
.input-group .validation-message {
  display: block;
  position: absolute;
  top: 100%; /* Esto colocaría el mensaje justo debajo del input */
  left: 0; /* Alinear al borde izquierdo del input */
}
.input-group {
  position: relative;
}
.modal-backdrop {
  opacity: 0.6 !important;
}
.modal:nth-of-type(even) {
  z-index: 1052 !important;
}
.modal-backdrop.show:nth-of-type(even) {
  z-index: 1051 !important;
}
.modal.fade {
  z-index: 10000000 !important;
}

.swall-overlay {
  z-index: 100005;
}
.swal2-container {
  z-index: 100000000 !important;
}
.td_right {
  text-align: right;
}
tr {
  border-bottom: 1pt solid #d3d3d3;
}
.nsi-card-header {
  background-color: #b7e2f0;
}
.nsi-card-body {
  background-color: #ffffff;
}
.nsi-card-footer {
  background-color: #b8ccdf;
}
.crud-table tbody tr {
  cursor: pointer;
}

.cards tbody tr {
  float: left;
  width: 19rem;
  margin: 0.5rem;
  border: 0.0625rem solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
  border-top: 3px solid #007bff;
}

.cards tbody td {
  border: none;
  display: block;
  background-color: white;
}

.cards thead {
  display: none;
}

.cards td:before {
  content: attr(data-label);
  position: relative;
  float: left;
  color: #808080;
  min-width: 4rem;
  margin-left: 0;
  margin-right: 1rem;
  text-align: left;
}

.cards td:empty::before {
  content: " ";
}

tr.selected td:before {
  color: #ccc;
}

.table .avatar {
  width: 50px;
}

.cards .avatar {
  width: 150px;
  height: 150px;
  margin: 15px;
}

.dataTables_wrapper .dataTable {
  transition: opacity 0.3s ease;
}

.iframe-mode .navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
  border-top: 5px solid #007bff;
  border-left: 0.5px solid #cccccc;
  border-right: 0.5px solid #cccccc;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-left-radius: -10px;
  border-bottom-right-radius: -10px;
  transform: translateY(-2px);
}

.dropdown-menu .dropdown-item:hover {
  background-color: #0062cc;
  color: #fff;
}

tr.is-dragging {
  background-color: #f2f2f2;
  color: blue;
  cursor: move;
}

.etBtnDragDrop {
  -webkit-user-drag: none;
}

body {
  -webkit-user-drag: none;
}

.select2-container--default.select2-container--error
  .select2-selection--single {
  border-color: red;
}

.input-error {
  border-color: red;
}

.table-hover tbody tr {
  transition: box-shadow 0.3s;
}

.table-hover tbody tr:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#overlay {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

#spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

tr.editable {
  border: 1px solid lightblue;
}

.__tr-editing-tpm input.no-editable + .__span-td-tpm {
  display: inline-block;
  vertical-align: middle;
}

th {
  background-color: #1c84c6;
  color: white;
  text-align: center;
}

.fc-col-header-cell-cushion {
  color: #e8eded !important;
}

.selected-option {
  background-color: #e8eded !important;
}

.separator {
  width: 5px;
  background-color: #ccc;
  height: 100%;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

fc-col-header-cell {
  background-color: #ffffff;
}

fc-col-header-cell {
  color: #000000;
}

/* Chrome, Safari, Edge, Opera */
.number-no-arrows::-webkit-outer-spin-button,
.number-no-arrows::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox 
.number-no-arrows {
  -moz-appearance: textfield;
}
*/

input[type="number"].spinless::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"].spinless {
  -moz-appearance: textfield;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
  .modal-dialog {
    overflow-y: auto; /* Habilita el desplazamiento en el modal */
    max-height: 90%; /* Limita la altura máxima del modal */
  }

  .modal-content {
    overflow-y: auto; /* Permite desplazamiento dentro del contenido del modal */
  }

  .modal-body {
    max-height: 300px; /* Altura máxima del cuerpo del modal para permitir desplazamiento */
    overflow-y: auto; /* Habilita el desplazamiento vertical si el contenido excede la altura máxima */
  }
}
