:root {
    --topbar-height: 54px;
}

.reversible:not(.reversible-revertido) .reversible-out {
    display: none;
}

.reversible-revertido .reversible-in {
    display: none;
}

.card-foreground {
    z-index: 1050;
}

#alert-container:not(:empty) {
    z-index: 9999;
}

#alert-container.fixed-top:not(:empty) + #topbar {
    margin-top: 50px;
}

#topbar.fixed-top + main {
    margin-top: var(--topbar-height);
}

#alert-container.fixed-top:not(:empty) + #topbar.fixed-top + main {
    margin-top: calc(50px + var(--topbar-height));
}

#topbar.fixed-top + main .position-sticky {
    top: var(--topbar-height);
}

.btn:not([disabled]) .spinner-ajax {
    display: none;
}

.btn:not([data-disabled]).spinner-load .spinner-border {
    display: none;
}

.btn.spinner-load[data-disabled] svg {
    display: none;
}

.split-content > * {
    display: none;
}

.split-content.split-1 > :first-child,
.split-content.split-2 > :nth-child(2),
.split-content.split-3 > :nth-child(3),
.split-content.split-4 > :nth-child(4) {
    display: initial;
}

.list-stepper {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.list-stepper > *:not(.active) {
    display: none;
}

.cursor-help {
    cursor: help;
}

.debug .list-stepper {
    list-style-type: decimal;
}

.debug .list-stepper > *:nth-child(even) {
    background: #ccc;
}

.debug .list-stepper > * {
    display: list-item;
    padding: 5px;
}

.debug .list-stepper > .active {
    border: 5px solid yellow;
}

.debug [data-stepper]::after {
    content: " [" attr(data-stepper) "]";
}

.debug .list-stepper > *:nth-child(odd) {
    background: #f1f1f1;
}

.loading-disabled:not([disabled]) .spinner-border {
    display: none;
}

.loading-disabled:disabled [data-fa-i2svg] {
    display: none;
}

.backdrop-superior {
    z-index: 1050;
}

.custom-file-label::after {
    content: "Selecciona" !important;
}

.loading-submit [data-fa-i2svg] {
    display: none;
}

.loading-submit .spinner-border {
    display: inline-block !important;
    height: 1.25em;
    width: 1.25em;
}

.navbar .popover {
    min-width: calc(100% - 10px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

@media (min-width: 576px) {
    .navbar .popover {
        min-width: 450px;
    }
}

.navbar .popover-header {
    color: var(--dark);
}

.navbar .popover-body > * {
    overflow: auto;
    max-height: 50vh;
}

#changelog h1 {
    display: none;
}

#changelog h2 {
    margin-top: 1rem;
}

#changelog h1 + h2 {
    margin-top: 0;
}

#changelog img {
    max-width: 100%;
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.nav-item:has(.popover) .nav-link {
    color: var(--light) !important;
}

.horario-label {
    width: calc(100% / 5);
}

.horario-label:first-child {
    margin-left: -1px;
    border-bottom-left-radius: 0 !important;
}

.horario-label:last-child {
    border-top-right-radius: 0 !important;
}

.horario-label:nth-child(5) {
    border-top-right-radius: 0.2rem !important;
}

.horario-label:nth-child(16) {
    border-bottom-left-radius: 0.2rem !important;
}

@keyframes flicker {
    0% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.animate-flicker {
    animation: flicker 2s infinite;
}