/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.hidden {
  display: none !important;
}

.d-contents {
  display: contents !important;
}

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.float-right {
  float: right !important;
}

.select2-results__option[role=option][aria-selected=true] {
  background-color: #4383ff !important;
  color: #fff;
}

.select2-container--default .select2-results__option--highlighted:not([aria-selected=true]) {
  background-color: rgba(41, 143, 194, 0.08) !important;
  color: #4383ff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: rgba(41, 143, 194, 0.16) !important;
  color: #4383ff !important;
}

.select2-container--default .select2-results__option--highlighted:not([aria-selected=true]) {
  background-color: rgba(67, 131, 255, 0.08) !important;
  color: #4383ff !important;
}

.table-responsive {
  padding-bottom: 120px;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 10000 !important;
  top: 0;
  right: 0;
  background-color: #fff;
  overflow-x: hidden;
  padding-top: 30px;
  transition: 0.5s;
  -webkit-box-shadow: -6px 0px 24px 0px rgb(0 0 0 / 23%);
  -moz-box-shadow: -6px 0px 24px 0px rgba(0, 0, 0, 0.23);
  box-shadow: -6px 0px 24px 0px rgb(0 0 0 / 23%);
}

.dark-style .sidebar {
  background-color: #2f3349;
}

.border-left {
  border-left: 1px solid #ebe9f1 !important;
}

.pl-2, .px-2 {
  padding-left: 1.5rem !important;
}

.mr-1, .mx-1 {
  margin-right: 1rem !important;
}

/*.select2-container {
  z-index: 10000;
}*/

.daterangepicker {
  z-index: 10000 !important;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
  color: #4383ff !important;
}

.nav-tabs .nav-link:not(.active):hover, .nav-tabs .nav-link:not(.active):focus, .nav-pills .nav-link:not(.active):hover, .nav-pills .nav-link:not(.active):focus {
  color: #4383ff !important;
}

.nav-pills .nav-link.active, .nav-pills .nav-link.active:hover, .nav-pills .nav-link.active:focus {
  background-color: #4383ff;
  color: #fff;
}

.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
  color: #fff !important;
}

.location-field {
  margin-bottom: 1rem !important;
}

.location-field:hover {
  cursor: pointer;
}

.location-field .i-edit {
  margin-top: -6px;
  visibility: hidden;
}

.location-field:hover .i-edit {
  visibility: visible;
}

.location-field-inputs h6 {
  margin-bottom: 0 !important;
}

.ui-timepicker-list li:hover {
  background-color: rgba(67, 131, 255, 0.08) !important;
  color: #4383ff !important;
}

#map {
  display: block;
  height: 100%;
  width: 100%;
}

.jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group {
  z-index: unset !important;
}

.avatar {
  width: 1.375rem;
  height: 1.375rem;
}

.bg-menu-theme {
  background-color: #001532 !important;
  color: #fff;
}

.bg-menu-theme .menu-link, .bg-menu-theme .menu-horizontal-prev, .bg-menu-theme .menu-horizontal-next {
  color: #fff;
}

.bg-menu-theme .menu-header {
  color: #fff;
}

.layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .layout-menu.menu-vertical .menu-inner > .menu-header::before {
  color: #fff;
}

.layout-menu-toggle:hover,
.style-switcher-toggle:hover {
  color: #4383ff !important;
}

.app-brand-logo.demo svg {
  /* width: 50px; */
  height: 34px;
}

.auth-cover-bg {
  height:100vh !important;
  width: 100% !important;
  background-position:center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  margin: 0 !important;
  border-radius: 0 !important;
}

.flatpickr-calendar.open {
  z-index: 10001 !important;
}

.spinner-border {
  --bs-spinner-border-width: 0.15em;
}

.page-item.active .page-link, .pagination li.active > a:not(.page-link) {
  border-color: #001532;
  background-color: #001532;
  color: #fff;
}

.bg-label-waahi {
  background-color: #e7f4fd !important;
  color: #4383ff !important;
}

.dark-style .bg-label-waahi {
  background-color: #12147f !important;
  color: #fff !important;
}

.dataTables_length select {
  width: auto;
  display: inline-block;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  z-index: 10;
}

/* Logo */
.logo-container img.logo-img {
  max-height: 100px;
  height: auto;
}

/* En modo oscuro el logo (PNG navy) quedaría invisible: lo volvemos blanco con filtro */
.dark-style .logo-container img.logo-img {
  filter: brightness(0) invert(1);
}

/* Selector de idioma */
.language-switcher {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.language-switcher .lang-link {
  text-decoration: none;
  color: #333;
  margin: 0 0.25rem;
}

.language-switcher .lang-active {
  font-weight: bold;
  color: #000;
}

/* Selector de idioma en modo oscuro: caja sutil translúcida y texto claro */
.dark-style .language-switcher {
  background: rgba(255, 255, 255, 0.08);
}

.dark-style .language-switcher .lang-link {
  color: #b6bee3;
}

.dark-style .language-switcher .lang-active {
  color: #fff;
}

/* Responsive */
@media (max-width: 576px) {
  .top-bar {
    padding: 0.5rem;
    margin-top: -8rem;
  }

  .logo-container img.logo-img {
    max-height: 32px;
  }

  .language-switcher {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }

  .content {
    margin-top: 4rem;
  }
}

/* Tagify Typography Customization */
.tagify,
.tagify__input,
.tagify__tag,
.tagify__dropdown__item {
  font-size: 15px;
  font-weight: 400;
  line-height: 22.05px;
}

.img-cover-center {
  height: 200px;
  object-fit: cover;
  object-position: center;
}
