@charset "UTF-8";

:root {
    --main-content-padding-y: 24px;
    --main-content-backcolor: #1c1c1e;
    --top-bar-height: 56px;
    --bottom-bar-height: 60px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

    .menu-item img {
        height: 30px;
        width: 30px;
        display: block;
    }

    .menu-item label {
        font-weight: bold;
        display: block;
    }

.menu-item-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding-bottom: 0px;
}

    .menu-item-vertical img {
        height: 30px;
        width: 30px;
        display: block;
        margin-top: 20px;
        margin-bottom: 5px; /* Espacio entre la imagen y el label */

        font-weight: normal;
        font-size: small;
    }

    .menu-item-vertical label {
        color: white;
        font-weight: normal;
        font-size: small;
    }

.menu-item label {
    color: white;
    font-weight: normal;
    font-size: small;
}

.menu-item-vertical-group-separator {
    padding: 10px
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

    .menu-item img {
        height: 30px;
        width: 30px;
        display: block;
        margin-bottom: 1px; /* Espacio entre la imagen y el label */
    }

    .menu-item label {
        font-weight: bold;
        display: block;
    }

.menu-item-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding-bottom: 0px;
}

    .menu-item-vertical img {
        height: 30px;
        width: 30px;
        display: block;
        margin-top: 20px;
        margin-bottom: 5px;
        font-weight: normal;
        font-size: small;
    }

    .menu-item-vertical label {
        color: white;
        font-weight: normal;
        font-size: small;
    }

.menu-item label {
    color: white;
    font-weight: normal;
    font-size: small;
}

.menu-item-vertical-group-separator {
    padding: 10px
}

/*fix autocomplete style for dark theme*/
input:-webkit-autofill,
input:-internal-autofill-selected {
    -webkit-text-fill-color: rgb(173, 181, 189);
    transition: background-color 5000s ease-in-out 0s;
}


.sidenav-menu-heading {
    padding: 1.75rem 1rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}


#sidebarToggle:hover {
    opacity: 0.75;
}

#nav-side-menu img:hover {
    transform: scale(1.2);
}


/*datatables.net*/
.table td li {
    white-space: normal !important; /*otherwise it defautls to nowrap*/
}

.dtr-title:empty {
    display: none !important; /*to hide empty titles*/
}

.dtr-title:not(:empty)::after {
    content: ':'
}
/*end datatables.net*/


#sideNav {
    height: 100dvh;
    padding-bottom: 12px;
    width: 175px;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: none;
}

    #sideNav:hover {
        border-right-style: none;
        scrollbar-width: revert;
        /*width: 180px;*/
    }

    #sideNav:not(:hover) {
        border-right-style: solid;
        border-right-width: 0.5px;
        border-right-color: darkgray;
        /*box-shadow: inset -0.5px 0 0 0 white;*/
    }

    #sideNav::-webkit-scrollbar {
        /*scrollbar-width: none;*/
        /*width: 0;
         height: 0;*/
    }

    #sideNav:hover::-webkit-scrollbar {
        width: 3px !important;
    }

    #sideNav::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    #sideNav::-webkit-scrollbar-thumb {
        background: darkgray;
        border-radius: 10px;
    }

#loading-panel {
    height: calc(100dvh - var(--top-bar-height) - var(--main-content-padding-y) * 2);
}

.logged-user-menu-item-img {
    width: 25px;
    height: auto;
    margin-right: 10px;
}

.btn-image {
    width: 20px;
    height: 20px;
}

.h-image {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    margin-right: 10px;
}

.tab-image {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/*begin SWITCH*/

.switch {
    height: 24px;
    display: block;
    position: relative;
    cursor: pointer;
}

    .switch input {
        display: none;
    }

        .switch input + span {
            padding-left: 50px;
            min-height: 24px;
            line-height: 24px;
            display: block;
            color: #99A3BA;
            position: relative;
            vertical-align: middle;
            white-space: nowrap;
            transition: color 0.3s ease;
        }

            .switch input + span:before, .switch input + span:after {
                content: "";
                display: block;
                position: absolute;
                border-radius: 12px;
            }

            .switch input + span:before {
                top: 0;
                left: 0;
                width: 42px;
                height: 24px;
                background: #E4ECFA;
                transition: all 0.3s ease;
            }

            .switch input + span:after {
                width: 18px;
                height: 18px;
                background: #fff;
                top: 3px;
                left: 3px;
                box-shadow: 0 1px 3px rgba(18, 22, 33, 0.1);
                transition: all 0.45s ease;
            }

            .switch input + span em {
                width: 8px;
                height: 7px;
                background: #99A3BA;
                position: absolute;
                left: 8px;
                bottom: 7px;
                border-radius: 2px;
                display: block;
                z-index: 1;
                transition: all 0.45s ease;
            }

                .switch input + span em:before {
                    content: "";
                    width: 2px;
                    height: 2px;
                    border-radius: 1px;
                    background: #fff;
                    position: absolute;
                    display: block;
                    left: 50%;
                    top: 50%;
                    margin: -1px 0 0 -1px;
                }

                .switch input + span em:after {
                    content: "";
                    display: block;
                    border-top-left-radius: 4px;
                    border-top-right-radius: 4px;
                    border: 1px solid #99A3BA;
                    border-bottom: 0;
                    width: 6px;
                    height: 4px;
                    left: 1px;
                    bottom: 6px;
                    position: absolute;
                    z-index: 1;
                    transform-origin: 0 100%;
                    transition: all 0.45s ease;
                    transform: rotate(-35deg) translate(0, 1px);
                }

        .switch input:checked + span:before {
            background: rgba(86, 40, 238, 0.35);
        }

        .switch input:checked + span:after {
            background: #fff;
            transform: translate(18px, 0);
        }

        .switch input:checked + span em {
            transform: translate(18px, 0);
            background: #5628EE;
        }

            .switch input:checked + span em:after {
                border-color: #5628EE;
                transform: rotate(0deg) translate(0, 0);
            }

body .switch {
    display: table;
    min-width: 118px;
}

body .dribbble {
    position: fixed;
    display: block;
    right: 20px;
    bottom: 20px;
}

    body .dribbble img {
        display: block;
        height: 28px;
    }

/*end SWITCH*/

main.invisible {
    opacity: 0;
    transition: opacity 1.3s ease;
    visibility: hidden;
}

main {
    opacity: 1;
    transition: opacity 0.3s ease;
    visibility: visible;
}

.collapse {
    transition: width 0.15s ease;
}

.collapsing {
    width: 0 !important;
    transition: width 0.15s ease;
}

.validation-summary-valid {
    display: none;
}

#middleArea {
    padding-top: var(--top-bar-height);
}

#main-content {
    background: var(--main-content-backcolor);
    border-left: none !important;
    height: calc(100dvh - var(--top-bar-height));
}


#divXpBag {
    width: 600px;
    z-index: 1046
}

#topNavBar {
    height: var(--top-bar-height);
    z-index: 1000;
}


.fullpage-message {
    margin: auto;
    text-align: center;
}

.table-empty tbody:not(:has(tr))::after {
    content: attr(data-empty-message);
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    color: #999;
    word-wrap: anywhere;
    hyphens: auto;
}

.table-empty tbody:not(:has(tr)) {
    display: block;
}

.hr-separator {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 6px rgba(255,255,255,0.05);
    border-radius: 1px;
    margin: 2.5rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

    .hr-separator:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient( to right, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0) );
    }

#bottomArea {
    background-color: var(--main-content-backcolor);
    height: var(--bottom-bar-height);
}

#bottom-nav-bar {
    width: 95%;
    height: calc(var(--bottom-bar-height) - 0px);
    align-self: center;
}

    #bottom-nav-bar .bi {
        color: #dfd3fa;
        font-size: 1.7em;
    }

        #bottom-nav-bar .bi:hover {
            color: #9287ac;
            font-size: 1.7em;
        }


#fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

    #fab-main:hover {
        transform: translate(-50%, -60%);
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(111, 66, 193, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0);
    }
}

.appBottomMenuButtonSheet {
    z-index: 1029 !important;
}

    .appBottomMenuButtonSheet .offcanvas-body .menu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, 100px);
        grid-template-rows: repeat(3, 1fr);
        gap: 16px;
        padding: 10px;
        bottom: var(--bottom-bar-height);
        justify-content: center;
        align-content: safe center;
    }

    .appBottomMenuButtonSheet.offcanvas-bottom {
        bottom: var(--bottom-bar-height);
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
        overflow: auto;
    }

.bottom-navbar-icon {
    font-size: 12px;
}

.bottom-navbar-label {
    font-size: 11px;
}

#encryption-status-indicator {
    cursor: pointer;
}

.encryption-badge {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.encryption-badge-icon {
    font-size: 1.1rem;
}

.encryption-badge-text {
    line-height: 1;
    margin-left: 5px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .encryption-badge {
        padding: 0.75rem !important;
        border-radius: 50% !important;
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
    }

    .encryption-badge-text {
        display: none;
    }

    .encryption-badge-icon {
        font-size: 1.3rem;
    }
}

.help-cursor {
    cursor: help;
}

.hm-toast {
    z-index: 99999 !important;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    #main-content {
        height: calc(100dvh - var(--top-bar-height) - var(--bottom-bar-height));
    }
}

@media (max-width:576px) {
    #sidebar-menu {
        width: 60px;
    }
}

@media (max-width:578px) {
    #appLogo {
        display: none;
    }

    #main-content {
        height: calc(100dvh - var(--top-bar-height) - var(--bottom-bar-height));
    }

    .hm-toast {
        bottom: calc(var(--bottom-bar-height) + 10px)
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1000px !important; /* xl */
    }
}
/*
.tag-badge {
    line-height: 1.5 !important;
}*/

spoiler-span {
    pointer-events: none;
}

.encrypted-placeholder {
}
