@import url("https://fonts.googleapis.com/css2?family=Nunito&amp;display=swap");

:root {
  --menu-width: 250px;
  --filter-width: 300px;
  --header-height: 60px;
  --color-azsign-primary: #6f9937;
}

* {
  font-family: "Nunito", sans-serif;
}

.header__navbar {
  position: sticky;
  top: 0;
  flex-wrap: nowrap;
  height: var(--header-height);
  width: 100%;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.header__navbar .header--menu-button {
  width: 34px;
  height: 34px;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: none;
  background: none;
}

.header__navbar .header--menu-button:hover {
  color: rgba(0, 0, 0, 0.7);
}

.header__navbar .dropdown-menu.show {
  position: absolute;
  inset: 0px 0px auto auto;
  margin: 0px;
  transform: translate(0px, 34px);
}

.iti {
  width: 100%;
}

.nav-tabs .header--nav-link {
  background-color: #edecec;
  border-color: #dee2e6 #dee2e6 #fff;
  color: #18181b;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-azsign-primary);
  z-index: 1099;
  display: block;
}

.overlay .spinner-border {
  position: relative;
  top: calc(50% - 16px);
  left: calc(50% - 16px);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  color: var(--color-azsign-primary);
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1099;
}

#overlay .spinner-border {
  position: absolute;
  top: calc(50% - 16px);
  left: calc(50% - 16px);
}

.card {
  border-color: #cdd5d2;
  border-radius: 0.5rem;
}

.card-body .col-12 {
  padding: 0px;
}

.form-control[readonly] {
  background-color: inherit;
  border: 1px dashed #c8c8c8;
}

.form-control[readonly].is-invalid {
  border: 1px dashed #dc3545;
}

div[id^="readonly_"] {
  display: none !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: var(--color-azsign-primary);
  background-color: var(--color-azsign-primary);
}

.btn-primary {
  color: #fff;
  background-color: var(--color-azsign-primary);
  border-color: var(--color-azsign-primary);
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: #597d2b;
  border-color: #597d2b;
}

.btn-primary.focus,
.btn-primary:focus {
  color: #fff;
  background-color: var(--color-azsign-primary);
  border-color: var(--color-azsign-primary);
  box-shadow: 0 0 0 0.2rem rgba(89, 255, 38, 0.5);
}

.btn-primary:hover {
  color: #fff;
  background-color: #597d2b;
  border-color: #597d2b;
}

.btn.btn-outline-primary {
  color: var(--color-azsign-primary);
  border-color: var(--color-azsign-primary);
}

.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--color-azsign-primary);
  border-color: var(--color-azsign-primary);
}

.btn-outline-primary.focus,
.btn-outline-primary:focus {
  color: var(--color-azsign-primary);
  background-color: #fff;
  border-color: var(--color-azsign-primary);
  box-shadow: 0 0 0 0.2rem rgba(111, 153, 55, 0.5);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--color-azsign-primary);
  border-color: var(--color-azsign-primary);
}

.bd-highlight {
  background-color: rgba(86, 61, 124, 0.15);
  border: 1px solid rgba(86, 61, 124, 0.15);
}

body::-webkit-scrollbar {
  width: 0px;
  display: none;
}

.scrollbar::-webkit-scrollbar {
  width: 10px;
  display: block;
}

.scrollbar-x-hidden {
  overflow-x: hidden !important;
}

::-webkit-scrollbar-thumb {
  background: #8b8b8b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #636363;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:active {
  background-color: #636363;
}

.btn--filtro {
  position: absolute;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  top: 50px;
  background-color: #ffffff73;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn--mostrar-filtro em {
  transform: rotate(180deg);
}

.btn--filtro:hover {
  background-color: #ffffff;
}

.relative {
  position: relative;
  width: 100%;
}

.bd-gutter {
  --bs-gutter-x: 3rem;
}

#iframe_contenido {
  width: 100%;
  min-height: calc(100vh - 70px);
  border: none;
}

.aside--filter {
  position: relative;
  width: var(--filter-width);
  height: calc(100vh - var(--header-height));
  background-color: #fff;
  transition: left 0.3s ease;
}

body.sidebar-sm .aside--filter.hidden {
  width: 0;
  padding: 0;
  border: none;
}

body:not(.sidebar-sm) .aside--filter.hidden {
  left: -50px;
  background-color: transparent;
  pointer-events: none; /* Esto evita que el filtro interfiera con la interacción */
}
body:not(.sidebar-sm) .aside--filter.hidden .btn--filtro {
  pointer-events: auto; /* Asegura que el botón sea interactivo */
  z-index: 1 !important; /* Asegura que el botón esté encima de otros elementos si es necesario */
}
.aside--filter.open {
  width: 300px;
}

.bd-img {
  width: 200px;
  text-align: center;
}

.bd-img img {
  height: 60px;
}

.bd-links-link {
  width: 90%;
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.125rem;
  color: var(--bs-body-color);
  text-decoration: none;
}

.bd-links-link:hover,
.bd-links-link:focus,
.bd-links-link.active {
  color: var(--bs-emphasis-color);
  background-color: var(--bs-success-bg-subtle);
  border-color: #a3cfbb;
  width: 90%;
  border: 1px solid #a3cfbb;
}

.bd-links-link {
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.125rem;
  color: var(--bs-body-color);
  text-decoration: none;
}

li.nav-item button {
  width: 100%;
}

.bd-main {
  position: relative;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.bd-sidebar {
  width: var(--menu-width);
  grid-area: sidebar;
  display: block;
  height: calc(100vh - var(--header-height));
  background-color: #fff;
  overflow-y: auto;
}

.bd-sidebar nav.bd-links {
  width: var(--menu-width);
}

.container-xxl.bd-layout {
  padding: 0;
}

body.filter-active ~ .bd-main {
  margin-left: 383px !important;
}

body.sidebar-sm .bd-sidebar {
  width: 50px;
  min-width: 50px;
}

body.sidebar-sm .bd-sidebar button span,
body.sidebar-sm .bd-sidebar .collapse.show {
  display: none;
}

body.sidebar-sm .bd-sidebar:hover {
  width: 250px;
  min-width: 250px;
}

body.sidebar-sm .bd-sidebar:hover button span,
body.sidebar-sm .bd-sidebar:hover .collapse.show {
  display: block;
}

@media (max-width: 992px) {
  body.sidebar-sm .bd-layout {
    position: relative;
  }

  body.sidebar-sm .bd-layout .bd-sidebar,
  .aside--filter {
    position: absolute;
    z-index: 1;
  }

  body.sidebar-sm .aside--filter,
  body.sidebar-sm .btn--filtro {
    display: none !important;
  }

  .btn--filtro {
    left: var(--filter-width);
  }

  .btn--filtro.btn--mostrar-filtro {
    left: 0;
  }

  .bd-img {
    display: none;
  }

  .bd-main {
    margin-left: 0px;
  }

  body.sidebar-hidden .bd-sidebar {
    display: none !important;
  }

  body:not(.sidebar-sm) .bd-sidebar {
    display: none;
  }

  body.sidebar-sm .bd-sidebar {
    display: block;
    width: 250px;
  }

  body.sidebar-sm .bd-sidebar button span,
  body.sidebar-sm .bd-sidebar .collapse.show {
    display: block;
  }

  body.sidebar-hidden .aside--filter {
    left: 0px !important;
  }

  body.sidebar-sm button span {
    display: block;
  }

  .aside--filter {
    position: absolute;
    z-index: 1;
    background-color: #fff;
  }

  .aside--filter.hidden {
    width: 0;
    padding: 0;
    border: none;
  }
}

@media (prefers-color-scheme: s_dark) {
  * {
    color: #ffffff7a;
  }

  body,
  aside,
  .aside--filter {
    background-color: #18181b !important;
  }

  .disabled {
    background-color: #ffffff00;
  }

  header {
    background-color: #25252a !important;
  }

  #overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .card {
    border-color: gray;
    background-color: #25252a;
  }

  .nav-tabs .nav-link {
    border-color: #dee2e6 #dee2e6 #fff;
  }

  select,
  textarea,
  input,
  .dd-options,
  label.custom-file-label {
    background-color: #ffffff00 !important;
    border-color: #4d7c0f;
    color: #ffffff7a !important;
  }

  optgroup,
  option {
    background-color: #25252a !important;
  }

  thead tr th {
    background-color: #25252a;
  }

  tbody tr,
  .modal-content,
  .dd-option-selected,
  .dd-option:hover,
  .list-group-item,
  .bg-white,
  .iti__country-list,
  .dropdown-menu {
    background-color: #25252a !important;
  }

  .btn--filtro {
    background-color: #25252a;
    border-color: #fff;
    border: 1px solid;
  }

  .drag-and-drop:hover,
  .dropdown-item:focus,
  .dropdown-item:hover {
    background-color: #4d7c0f !important;
  }

  tbody tr:hover {
    background-color: #e4e4e7;
  }

  a.dropdown-item,
  a.bd-links-link,
  a.nav-link,
  tbody a {
    font-weight: bold;
    color: #ffffff7a !important;
  }

  .dd-selected {
    color: #ffffff7a;
    background-color: gray;
  }

  .input-group-text {
    background-color: #4d7c0f;
    border-color: #4d7c0f;
  }

  .nav-link.active {
    background-color: #4d7c0f !important;
  }

  .bd-links-link:hover,
  .bd-links-link:focus,
  .bd-links-link.active {
    background-color: #6c757d !important;
  }

  .bd-img img {
    filter: drop-shadow(0px 0px 0px #fff);
  }
}

.select2-container {
  width: 100% !important;
}

.select2-selection,
.select2-container--default .select2-selection--single {
  border: 1px solid #ced4da;
}

.select2-container .select2-selection--single,
.select2-selection__rendered,
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 31px;
  padding-top: 1px;
}

.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border: 1px #80bdff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

select.select2-hidden-accessible {
  width: 100% !important;
}

.select2-selection.is-valid {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.select2-selection.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.custom-checkbox > label,
.custom-checkbox > input {
  cursor: pointer;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 1020;
}

.grecaptcha-logo {
  position: fixed;
  z-index: 999999;
}
