body {
    overflow-y: hidden;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

.alert {
    margin: 20px;
}

.app-header {
    width: 100%;
    /*position: fixed;*/
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #fff;
}

.app-header .navbar {
    height: 60px;
    min-height: 60px;
    padding: 0;
}

.body-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0;
}

.body-wrapper-inner {
    flex: 1 1 auto;
    /*margin-top: 60px;*/
    /*padding: 20px;*/
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

/*
.body-wrapper .body-wrapper-inner .container-fluid.d-print-none {
    padding: 0 0 20px
}
*/

.body-wrapper .container-fluid,
.body-wrapper .container-sm,
.body-wrapper .container-md,
.body-wrapper .container-lg,
.body-wrapper .container-xl,
.body-wrapper .container-xxl {
    max-width: none;
    margin: 0;
    padding: 20px;
    transition: 0.2s ease-in;
}

.card.shadow {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.form-control {
    height: auto;
}

.left-sidebar.bg-dark {
    background-color: #1e1e2f;
    color: #f8f9fa;
}

.left-sidebar .sidebar-link {
    color: #cfd8dc;
    background-color: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.left-sidebar .sidebar-link:hover,
.left-sidebar .sidebar-link:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.left-sidebar .sidebar-link.active,
.left-sidebar .sidebar-item.selected > .sidebar-link {
    background-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
}

.left-sidebar .sidebar-link i,
.left-sidebar .sidebar-link svg {
    color: inherit;
}

.left-sidebar .nav-small-cap {
    color: #9aa0ac;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem;
}

.left-sidebar .collapse .sidebar-item .sidebar-link {
    padding-left: 2.5rem;
}

.left-sidebar {
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-item.sidebar-link-title.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: #facc15 !important;
    font-weight: 600;
}

.sidebar-link:hover svg-inline--fa,
.sidebar-link:hover .menu-icon,
.sidebar-link:hover .menu-title {
    color: #fde68a;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.sidebar-link.active .menu-icon,
.sidebar-link.active .menu-title {
    color: #facc15 !important;
    font-weight: 600;
}

.logo-link {
    text-decoration: none !important;
    box-shadow: none !important;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

/*.logo-text {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}*/

.logo-link:hover .logo-text {
    color: #f0f0f0;
}

.nav-pills .nav-link.active {
    background-color: #facc15;
    color: #212529;
    font-weight: 500;
}

.nav-tabs .nav-link .badge {
    line-height: 1;
    padding: 0.25em 0.5em;
    vertical-align: middle;
}

/*
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    border-radius: 6px;
    background-color: #e7e7e7;
    border: 1px solid #cacaca;
    !*box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);*!
}
::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: #bdc3cd;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a97f5;
}*/

/* custom scrollbar */
::-webkit-scrollbar {
    width: 13px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 13px;
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
}

/*Custom */
#cart.card.border-secondary.shadow-sm {
    background-color: #f9f9f9;
    border-width: 2px;
    max-height: calc(100vh - 110px);
}


/* Custom ítems del navbar */
.app-header .navbar-nav > .nav-item.dropdown {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

/* Ajusta el botón para parecerse a un ícono de barra superior */
.app-header .nav-link.pointer {
    color: #fff; /* o el color que uses en tu navbar */
    padding: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

/* Estilo adicional para el ícono de campana */
.app-header #notificationsIcon .fa-bell {
    font-size: 1.2rem;
}

/* Posiciona el circulito rojo correctamente */
.app-header #notificationsIcon .fa-circle {
    position: absolute;
    bottom: 20px;
    font-size: 0.6rem;
}

.fs-line {
    padding-top: 0 !important;
    padding-bottom: .25rem !important;
}

/* ===== Select2 x Bootstrap 4 (simple, sin blur) ===== */

/* Base */
.select2-container.select2-container--bootstrap4 { font: inherit; }

.select2-container--bootstrap4 .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--multiple {
  border: var(--bs-border-width,1px) solid var(--bs-border-color, #ced4da) !important;
  border-radius: var(--bs-border-radius, .375rem) !important;
  background-color: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  min-height: calc(1.5em + .75rem + 2px);
  display: flex; align-items: center;
  padding: .375rem .75rem;
}

/* Texto renderizado */
.select2-container--bootstrap4 .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.5 !important;
  color: inherit !important;
}

/* Placeholder */
.select2-container--bootstrap4 .select2-selection__placeholder {
  color: var(--bs-secondary-color, #6c757d);
}

/* Flecha */
.select2-container--bootstrap4 .select2-selection__arrow {
  position: absolute; right: .75rem; top: 0; bottom: 0; width: 1.25rem;
  pointer-events: none;
}
.select2-container--bootstrap4 .select2-selection__arrow b {
  border: 0 !important; width: 100%; height: 100%; display: block;
  background: center / 16px 12px no-repeat;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
}

.select2-container--bootstrap4 .select2-selection__arrow {
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
}


/* Hover y focus: SIN blur */
.select2-container--bootstrap4 .select2-selection--single:hover,
.select2-container--bootstrap4 .select2-selection--multiple:hover {
  border-color: var(--bs-secondary-border-subtle, #b3b7bb);
}
.select2-container--bootstrap4.select2-container--focus .select2-selection--single,
.select2-container--bootstrap4.select2-container--focus .select2-selection--multiple,
.select2-container--bootstrap4.select2-container--open .select2-selection--single,
.select2-container--bootstrap4.select2-container--open .select2-selection--multiple {
  border-color: var(--bs-primary, #0d6efd) !important;
  outline: 0;
  box-shadow: none !important; /* sin blur */
}

/* Disabled */
.select2-container--bootstrap4.select2-container--disabled .select2-selection--single,
.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple {
  background-color: var(--bs-secondary-bg, #e9ecef) !important;
  color: var(--bs-secondary-color, #6c757d) !important;
  cursor: not-allowed;
}

/* Multiple (chips) */
.select2-container--bootstrap4 .select2-selection--multiple {
  padding: .25rem .375rem .125rem .375rem; gap: .25rem; flex-wrap: wrap;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
  background-color: var(--bs-primary-bg-subtle, #e7f1ff);
  border: 1px solid var(--bs-primary-border-subtle, #9ec5fe);
  color: var(--bs-primary, #0d6efd);
  border-radius: var(--bs-border-radius, .375rem);
  padding: .125rem .5rem; margin-top: .125rem;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: .25rem; color: inherit;
}

/* Dropdown */
.select2-container--bootstrap4 .select2-dropdown {
  border: 1px solid var(--bs-border-color, #ced4da);
  border-radius: var(--bs-border-radius, .375rem);
  background-color: var(--bs-body-bg, #fff);
  overflow: hidden;
}
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--bs-border-color, #ced4da);
  border-radius: var(--bs-border-radius, .375rem);
  padding: .375rem .5rem; width: 100%; outline: 0;
}
.select2-container--bootstrap4 .select2-results__option {
  padding: .5rem .75rem; line-height: 1.5;
}
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
  background-color: var(--bs-primary, #0d6efd); color: #fff;
}
.select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
  background-color: var(--bs-primary-bg-subtle, #e7f1ff); color: var(--bs-primary, #0d6efd);
}

/* (Opcional) Modo oscuro de tu tema */
[data-bs-theme="dark"] .select2-container--bootstrap4 .select2-selection--single,
[data-bs-theme="dark"] .select2-container--bootstrap4 .select2-selection--multiple {
  background-color: var(--bs-body-bg, #1e1e1e);
  color: var(--bs-body-color, #e9ecef);
  border-color: var(--bs-border-color, #495057) !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap4 .select2-dropdown {
  background-color: var(--bs-body-bg, #1e1e1e);
  border-color: var(--bs-border-color, #495057);
}

/* Corrige el solapamiento de la flecha con el texto */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  padding-right: 2rem !important; /* deja espacio para la flecha */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Select2 estilo Bootstrap === */
/*
.select2-container--bootstrap4 .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--multiple {
  display: flex; align-items: center;
  min-height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  border: 1px solid #ced4da !important;
  border-radius: .375rem !important;
  background-color: #fff;
  color: #212529;
}*/

/* Hover / Focus
.select2-container--bootstrap4.select2-container--focus .select2-selection--single,
.select2-container--bootstrap4.select2-container--focus .select2-selection--multiple,
.select2-container--bootstrap4.select2-container--open .select2-selection--single,
.select2-container--bootstrap4.select2-container--open .select2-selection--multiple {
  border-color: #0d6efd !important;
  box-shadow: none !important;
}

/* Texto y flecha
.select2-container--bootstrap4 .select2-selection__rendered {
  flex: 1;
  padding-right: 1.5rem !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.select2-container--bootstrap4 .select2-selection__arrow {
  position: absolute; right: .75rem; top: 50%;
  transform: translateY(-50%);
}

/* Dropdown
.select2-container--bootstrap4 .select2-dropdown {
  border: 1px solid #ced4da; border-radius: .375rem;
  background: #fff;
}
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
  background: #0d6efd; color: #fff;
}*/
