#app-nav-main {
    overflow: auto;
}

body:not(.collapsed) .app-nav {
    overflow-y: auto;
}

.main-div {
    padding-top: 55px;
}

body .app-nav .submenu .navbar-text {
    display: none;
}

.app-nav.dark .nav-item.has-submenu .nav-link.active, body:not(.collapsed) .app-nav.dark .submenu-link.active {
    color: white;
}

body:not(.collapsed) .app-nav.dark .submenu-link:not(.active), .app-nav.dark .submenu-arrow, .app-nav.dark .nav-link:not(.active) {
    color: #fafafa;
}

@media(min-width:1200px) {
    #app-sidepanel {
        top: 55px;
    }

    body:not(.collapsed) #app-sidepanel {
        min-width: 250px;
    }

    body.collapsed #app-sidepanel {
        width: 250px;

    }

    .sidebar {
        height: calc(100vh - 56px);
        flex-direction: column;
        transition: max-width 0.1s ease-in-out;
    }

    body.collapsed .sidebar {
        max-width: 65px;
        min-width: 65px;
        display: flex;
    }

    /*? search wrapper */
    .search__wrapper {
        position: relative;
    }

    .search__wrapper input {
        background-color: #fafafa;
    }

    body.collapsed .search__wrapper input {
        display: none;
    }

    body.collapsed .search__wrapper .btn {
        display: none;
    }

    body .search__wrapper .input-group-text {
        display: none;
    }

    body.collapsed .search__wrapper .input-group-text {
        display: block;
    }

    /*? sidebar top */

    body.collapsed nav.app-nav .has-submenu {
        position: relative;
    }

    body.collapsed nav.app-nav .submenu-arrow {
        right: 7px;
    }

    body.collapsed nav.app-nav .submenu-link {
        margin-left: 0;
    }

    body.collapsed nav.app-nav .submenu .navbar-text {
        display: block;
    }

    body.collapsed nav.app-nav .submenu {
        position: absolute;
        z-index: 999;
        margin-left: 65px;
        border: 1px solid #ccc;
        top: 0;
        background: white;
        white-space: nowrap;
        width: 220px;
    }

    .sidebar-top-wrapper {
        display: flex;
    }

    .sidebar-top {
        position: relative;
        display: flex;
        align-items: start;
        justify-content: center;
        flex-direction: column;
        overflow: hidden;
        height: 64px;
        padding-bottom: 16px;
    }

    body.collapsed .sidebar-top {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /*? menu links */
    body.collapsed #menu-accordion .nav-link .nav-link-text::after {
        content: " ";
        position: absolute;
        top: 50%;
        right: 100%;
        /* To the left of the tooltip */
        margin-top: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent black transparent transparent;
    }

    body.collapsed #menu-accordion .nav-link .nav-link-text {
        padding: 5px 10px;
        text-align: center;
        position: absolute;
        background-color: #444;
        top: 25%;
        left: 75px;
        border-radius: 6px;
        color: white;
        white-space: nowrap;
    }

    body.collapsed #menu-accordion .nav-link:hover .nav-link-text {
        display: block;
    }

    body.collapsed #menu-accordion .nav-link-text {
        display: none;
    }

    body.collapsed #menu-accordion .nav-icon>i {
        font-size: 1.2rem
    }

    /*? Expand button */

    .expand-btn {
        position: absolute;
        display: grid;
        place-items: center;
        cursor: pointer;
        background-color: black;
        z-index: 2;
        right: -26px;
        width: 40px;
        height: 40px;
        top: 4px;
        border-radius: 50%;
    }

    .expand-btn i {
        transform: rotate(-180deg);
        color: white;
        font-size: 1.2rem;
    }

    body.collapsed .expand-btn i {
        transform: rotate(-360deg);
    }
}

table:not(.table-sm) tbody tr td,
table:not(.table-sm) thead tr th {
    font-size: 0.9rem;
}

table.table-sm tbody tr td,
table.table-sm thead tr th {
    font-size: 0.9rem;
}

.navbar-expand-xl .offcanvas .offcanvas-body {
    height: calc(100vh - 60px)
}

.navbar-expand-xl .offcanvas-body {
    display: block
}

.ajax.btn-estado[data-st="1"]::after {
    content: " Activo";
}

.ajax.btn-estado[data-st="0"]::after {
    content: " Inactivo";
}

.ahref-max {
    position: relative;
    display: block;
    min-height: 140px;
    height: 30vh
}

.thumb-max {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    max-height: 90%;
    max-width: 90%;
    z-index: 3
}

.ajax.btn-destacado[data-st="1"]::after {
    content: "\f005";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.ajax.btn-destacado[data-st="0"]::after {
    content: "\f005";
    font-weight: normal;
    font-family: "Font Awesome 5 Free"
}

.ajax.btn-destacado[data-st="2"]::after {
    content: "\f005";
    font-weight: normal;
    font-family: "Font Awesome 5 Free"
}

#ui-datepicker-div {
    z-index: 9999 !important;
}

.ui-datepicker-title select {
    color: black;
}


.input-group .validationMessage {
    position: absolute;
    top: 37px;
    z-index: 1;
    right: 0;
    max-width: 250px;
    box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.3) !important;
}

.validationMessage:empty {
    display: none;
}

.validationMessage {
    background-color: #dc3545 !important;
    font-size: 12px;
    padding: 4px 7px;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: 0.25rem;
}

.btn-group>.btn input {
    display: none;
}

.cards tbody tr {
    position: relative;
    float: left;
    width: 16.66666667%;
    margin-bottom: 10px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.cards tbody tr td:first-child {
    padding: 0;
}

.cards tbody tr td:last-child {}

.cards tbody td .img-block {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    height: 140px;
}

.cards tbody td {
    min-height: 24px;
    display: block;
    border: 0;
}

.cards thead {
    display: none;
}

.cards .td-nombre a {
    font-size: 11px;
    overflow: hidden;
    height: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.cards .btn-group .btn {
    width: 32px;
}


.custom-control.teleport-switch {
    --color: #4cd964;
    padding-left: 0;
}

.custom-control.teleport-switch .teleport-switch-control-input {
    display: none;
}

.custom-control.teleport-switch .teleport-switch-control-input:checked~.teleport-switch-control-indicator {
    border-color: var(--color);
}

.custom-control.teleport-switch .teleport-switch-control-input:checked~.teleport-switch-control-indicator::after {
    left: -14px;
}

.custom-control.teleport-switch .teleport-switch-control-input:checked~.teleport-switch-control-indicator::before {
    right: 2px;
    background-color: var(--color);
}

.custom-control.teleport-switch .teleport-switch-control-input:disabled~.teleport-switch-control-indicator {
    opacity: .4;
}

.custom-control.teleport-switch .teleport-switch-control-indicator {
    display: inline-block;
    position: relative;
    margin: 0 10px;
    top: 4px;
    width: 32px;
    height: 20px;
    background: #fff;
    border-radius: 16px;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    border: 2px solid #ccc;
    overflow: hidden;
}

.custom-control.teleport-switch .teleport-switch-control-indicator::after {
    content: '';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    top: 2px;
    left: 2px;
    background: #ccc;
}

.custom-control.teleport-switch .teleport-switch-control-indicator::before {
    content: '';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    top: 2px;
    right: -14px;
    background: #ccc;
}

.list-group-item.show-destacado .destacado {
    display: inline;
}

.list-group-item:not(.show-destacado) .destacado {
    display: none;
}

.table-cards tbody tr {
    margin: 0;
}

.table-cards tbody tr td:first-child {
    padding: 0;
    border: 0;
}

.table-cards thead {
    display: none;
}

.table-cards.list-group tbody tr {
    display: grid
}

div.mce-fullscreen {
    z-index: 9999;
}

#myTabContent .nav-item .nav-link {
    color: #333;
    font-size: 12px;
}

#myTabContent .dropdown-menu>.active>a {
    color: #fff;
}

#myTabContent .nav-item .nav-link:hover {
    color: #999;
}

#myTabContent .navbar .navbar-nav {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
}

#myTabContent .navbar-nav>li.active>a,
#myTabContent .navbar-nav>li>a.active {
    font-weight: bold;
}

#myTabContent .navbar-nav>li>a {
    padding: 0;
    align-items: center;
    text-align: center;
    width: 90px;
    font-size: 11px;
    margin-top: 10px;
    display: block;
}

#myTabContent .navbar .navbar-nav>li>a i {
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    display: flex;
    font-size: 32px;
    position: relative;
    border-radius: 50% !important;
    width: 50px;
    margin: 0 auto;
    padding: 8px;
    color: white;
}

#myTabContent .navbar .badge {
    position: absolute;
    right: -10px;
    top: 0px;
    font-size: 10px;
}

@media(min-width:780px) {
    div.dataTables_wrapper div.dataTables_info {
        padding-top: 0.85em;
        float: left;
        font-size: 0.8em;
    }
}