/* Importar la fuente desde Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap");

/* Aplicar la fuente globalmente */
body {
  background-color: #eee;
  font-family: "Roboto Slab", "Times New Roman", serif;
}

.bore-family {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Loading */

.spinner {
  height: 100px;
  margin: 250px auto;
  position: relative;
  width: 100px;
}

.container1 > div,
.container2 > div,
.container3 > div {
  -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  -webkit-animation-fill-mode: both;
  animation: bouncedelay 1.2s infinite ease-in-out;
  animation-fill-mode: both;
  background-color: #00bfff;
  border-radius: 100%;
  height: 30px;
  position: absolute;
  width: 30px;
}

.spinner .spinner-container {
  height: 100%;
  position: absolute;
  width: 100%;
}

.container2 {
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}

.container3 {
  -webkit-transform: rotateZ(90deg);
  transform: rotateZ(90deg);
}

.circle1 {
  left: 0;
  top: 0;
}

.circle2 {
  right: 0;
  top: 0;
}

.circle3 {
  bottom: 0;
  right: 0;
}

.circle4 {
  bottom: 0;
  left: 0;
}

.container2 .circle1 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.container3 .circle1 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.container1 .circle2 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.container2 .circle2 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

.container3 .circle2 {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}

.container1 .circle3 {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}

.container2 .circle3 {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}

.container3 .circle3 {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}

.container1 .circle4 {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}

.container2 .circle4 {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}

.container3 .circle4 {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}

@-webkit-keyframes bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.modal-loading {
  background-color: transparent;
  height: 100%;
  width: 100%;
  border: none;
  box-shadow: none;
  border-radius: initial;
}

#myLoadingModal {
  overflow: hidden;
}

/* end of the component loading */

/* Pagination*/

.dataTables_wrapper .dataTables_info {
  margin-top: 16px;
}

/* Contenedor principal del paginador */
.dataTables_paginate {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
#data_table .dataTables_empty {
  text-align: center;
  padding: 8px 10px;
  background-color: #f9f9f9;
}

/* Estilo para los botones del paginador */
.dataTables_paginate .paginate_button {
  display: inline-block;
  color: #0456a0; /* Color de texto azul de Bootstrap */
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  margin-right: 0.125rem; /* Margen horizontal entre botones */
  text-decoration: none;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* Estilo para el botón actual */
.dataTables_paginate .paginate_button.current {
  color: #fff;
  background-color: #0d6efd; /* Fondo azul de Bootstrap */
  border-color: #0d6efd;
}

/* Estilo para botones deshabilitados */
.dataTables_paginate .paginate_button.disabled {
  color: #6c757d; /* Color gris de Bootstrap */
  background-color: #fff;
  border-color: #dee2e6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Estilo para el botón de "Previous" y "Next" */
.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
  font-weight: bold;
}

/* Estilo para hover en los botones */
.dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
  color: #0a58ca; /* Azul más oscuro al hacer hover */
  background-color: #e9ecef; /* Fondo gris claro al hacer hover */
  border-color: #dee2e6;
}

/* Estilo para la elipsis */
.dataTables_paginate .ellipsis {
  padding: 0.375rem 0.75rem;
  color: #6c757d;
  margin: 0 0.125rem;
}

/* End Pagination*/

/* Menu */

.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu a:active,
.dropdown-menu a:focus,
.dropdown-menu a:hover {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14),
    0 7px 10px -5px rgba(156, 39, 176, 0.4);
  background-color: #016ac5;
  color: #fff !important;
  font-weight: bold !important;
}

/*End Menu*/

/* Login*/
.brand h1 {
  font-size: 4.2rem;
}

.header-filter:before,
.header-filter:after {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: inherit;
  display: block;
  left: 0;
  top: 71px;
  content: "";
}
.header-filter::before {
  background: rgba(0, 0, 0, 0.5);
}
.card .card-header {
  background: linear-gradient(60deg, #016ac5, #002a4e);
}
.card-login .card-header {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: -40px;
  padding: 20px 0;
  margin-bottom: 15px;
}
.btn-login {
  background-color: #016ac5 !important;
}
.header-filter {
  height: 78vh;
}

@media (min-width: 1200px) {
  .header-filter {
    height: 78vh;
  }
}
@media (max-width: 575.98px) {
  .page-header {
    height: 75vh;
  }
}
/*End Login*/

/* Project */

/* Ajuste general para que se vea como el select nativo */

/* General settings for bore-select */
.bore-select .bootstrap-select .dropdown-toggle {
  padding: 0.25rem 2.25rem 0.25rem 0.75rem; /* Igual que el select nativo */
  font-size: 0.875rem; /* Tamaño de fuente de form-select-sm */
  line-height: 1.5;
  border: 1px solid #ced4da; /* Borde igual al nativo */
  border-radius: 0.25rem;
  background-color: #fff;
  color: #495057;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 12px;
  height: 31px;
  box-shadow: none; /* Sin sombra por defecto */
  outline: none; /* Sin outline */
}
.bore-select .bootstrap-select .dropdown-toggle.disabled {
  background-color: var(--bs-secondary-bg) !important;
  opacity: 1;
}
.form-control:disabled {
  cursor: not-allowed;
}

.bore-select.project-select .dropdown-menu.show.showing {
  min-width: 246px !important;
}

/* Remover el caret del botón */
.bore-select .bootstrap-select .dropdown-toggle::after,
.bore-select .bootstrap-select .dropdown-toggle .caret {
  display: none;
}

/* Estilos de la opción seleccionada */
.bore-select .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
  color: #212529;
}

/* Dropdown general settings */
.bore-select .bootstrap-select .dropdown-menu {
  width: 100%;
  max-width: 100%; /* Evita que el dropdown exceda el ancho del select */
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Sombra típica de Bootstrap */
  border: none;
  overflow-x: hidden; /* Elimina el scroll horizontal */
}

/* Limita las opciones internas a un ancho fijo y elipsis en texto largo */
.bore-select .bootstrap-select .dropdown-menu.inner {
  padding: 0;
  overflow-x: hidden;
  width: 100% !important; /* Asegura que tome todo el ancho disponible */
  max-width: none; /* No limite el ancho máximo */
}
.bore-select .bootstrap-select .dropdown-menu.show {
  width: 100% !important; /* Asegura que el ancho sea del 100% */
  min-width: 0; /* Previene que el dropdown tenga un ancho mínimo mayor */
  max-width: none; /* No limite el ancho máximo */
}

/* Aplica ellipsis a las opciones que excedan el ancho disponible */
.bore-select .bootstrap-select .dropdown-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ajuste de los items dentro del dropdown */
.bore-select .bootstrap-select .dropdown-menu li a {
  padding: 0.25rem 0.75rem; /* Padding ajustado igual al nativo */
  font-size: 0.875rem;
}

/* Ajuste para el input de búsqueda */
.bore-select .bootstrap-select .bs-searchbox input {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
}

/* Estilo de focus similar al select nativo */
.bore-select .bootstrap-select .dropdown-toggle:focus,
.bore-select .bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
  border-color: #86b7fe; /* Color de borde de focus */
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Sombra azul alrededor */
  outline: none !important;
  outline-offset: 0 !important;
}

/* Ajustar caret en dropdown cuando esté visible */
.bore-select .bootstrap-select .dropdown-toggle .caret {
  margin-top: -0.25rem;
}

/* Remover el borde negro interno al hacer focus */
.bore-select .bootstrap-select .dropdown-toggle:focus-visible {
  outline: none;
}

/* Evitar que el scroll horizontal aparezca en dropdowns */
.bore-select .dropdown-menu.show {
  width: 100% !important;
  overflow-x: hidden;
}

.bore-select .bootstrap-select .dropdown-menu li a span.text {
  display: inline !important;
}

.create-button {
  background-color: #0c66e4;
}

.btn-bore:hover {
  background-color: #0c66e4;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.05rem rgba(0, 54, 100, 1);
}

.badge.badge-status.badge-done {
  color: #006644;
  background-color: #e3fcef;
}
.badge.badge-status.badge-review {
  color: #0747a6;
  background-color: #deebff;
}
.badge.badge-status.badge-progress {
  color: #0747a6;
  background-color: #deebff;
}
.badge.badge-status.badge-inspection {
  color: #4e380a;
  background-color: #f3ed9cc9;
}
.badge.badge-status.badge-attention {
  color: #bf2600;
  background-color: #ffebe6;
}
.badge.badge-status.badge-ready {
  color: #42526e;
  background-color: #dfe1e6;
}

.form-select.select2-hidden-accessible {
  font-size: 0.875rem;
  height: 31px; /* Tamaño pequeño del select */
  padding: 0.25rem 0.5rem;
}

.card-img-top {
  width: 50%;
}

.table_bore_25 {
  width: 25%;
}
.table_bore_40 {
  width: 40%;
}
.table_bore_75 {
  width: 75%;
}
.bore-image_10 {
  width: 10%;
}
.bore-image_15 {
  width: 15%;
}
.bore-image_20 {
  width: 20%;
}
.bore-image_30 {
  width: 23%;
}
.bore-image_40 {
  width: 40%;
}
.bore-image_50 {
  width: 50%;
}

.invisible-full {
  display: none;
}
.invisible {
  display: none !important;
}
.missing {
  color: red;
  font-size: 14px;
}

.bore-container-fluid {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}
.bore-text-14 {
  font-size: 14px !important;
}
.print-container {
  display: none;
}
@media (max-width: 360px) {
  .header-filter:before,
  .header-filter:after {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: inherit;
    display: block;
    left: 0;
    top: 68px;
    content: "";
  }
  .brand h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 575.98px) {
  .badge-status {
    position: absolute !important;
    right: 0;
    margin-right: 5px;
    margin-top: 3px;
  }
  .create-button {
    font-size: 12px;
    padding: 5px 10px;
  }
  .btn-bore-sm {
    font-size: 12px;
    padding: 5px 10px;
  }
  .card-img-top {
    width: 25%;
  }
  .table_bore {
    width: 100%;
  }
  .table_bore_sm_100 {
    width: 100%;
  }
  .bore-image_sm_10 {
    width: 10%;
  }
  .bore-image_sm_15 {
    width: 15%;
  }
  .bore-image_sm_20 {
    width: 20%;
  }
  .bore-image_sm_30 {
    width: 23%;
  }
  .bore-image_sm_40 {
    width: 40%;
  }
  .bore-image_sm_50 {
    width: 50%;
  }

  .bore-container-fluid {
    padding-right: calc(var(--bs-gutter-x) * 0);
    padding-left: calc(var(--bs-gutter-x) * 0);
  }
}

/* End Project */
@media print {
  footer,
  .bore-pagination,
  .download-link,
  .bore-print-not-show,
  .navbar-toggler {
    display: none !important;
  }

  .navbar {
    /* margin-top: 20px; */
    display: none;
  }
  .navbar-brand.print-inspection {
    position: fixed;
    z-index: 1000;
    width: auto;
    top: 20px;
  }
  body {
    background-color: #fff;
  }
  .bore-print + .bore-print {
    page-break-before: always !important;
    break-before: page !important;
    margin-top: 90px;
  }
  .bore-print.driller-print {
    margin-top: 60px;
  }

  .card {
    border: none;
  }
  .card-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .bore-print-text {
    color: #000;
    font-weight: 700;
  }
  .bore-print-text-no-show {
    display: none;
  }
  .col-md-3 {
    width: auto;
  }
  .print-container {
    display: block;
  }
  .bore-bg-print {
    background-color: #fbbf2c !important;
  }

  .card-header:first-child {
    border-radius: 0;
  }
  .bore-print-text-color {
    color: #000 !important;
  }
  .bore-print-padding-y {
    padding-top: 0.25rem !important;
    padding-bottom: 0.5rem !important;
  }
  .body-print {
    border: 2px solid black;
  }
  .bore-border-top-print {
    border-top: 2px solid black;
  }
}
