html,
body {
    height: 100%;
}

.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    padding: 1rem;
    padding-right: 0;
    padding-top: 0;
    padding-left: 70px;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 0;
    border-top: 1px solid #E5E5EA;
    transition: .5s bottom, .5s opacity;
    padding-bottom: env(safe-area-inset-bottom);
}

.footer.disabled {
    bottom: -50px;
    opacity: 0;
    pointer-events: none;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
}

.footer-card {
    position: relative;
    border: none;
    background-color: transparent;
    max-width: 75px;
    font-size: .85em;
    min-width: 70px;
    height: 100%;
    display: flex;
    color: #a0a6bf;
    justify-content: center;
    gap: 2px;
    align-items: center;
    flex-direction: column;
    padding: .25rem .5rem;
    border-radius: .75rem;
    transition: .5s all;
}

.footer-card>i {
    font-size: 1.5rem;
    margin-top: .5rem;
    transition: .25s all;
}

.footer-card>.footer-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    transition: .25s all;
    color: #222C70;
}

.footer-card.active {
    color: #2b97bf;
    align-items: center;
}

.footer-card.mobile-menu-btn {
    justify-content: center;
    color: #908a8a;
}

.footer-card.mobile-menu-btn:hover,
.footer-card.mobile-menu-btn:focus {
    color: #9e9e9e !important;
}

.footer-card.mobile-menu-btn>i {
    font-size: 2rem;
    margin: 0;
}

body.mobile-menu-open {
    overflow: hidden !important;
}

body.mobile-menu-open .footer {
    bottom: -100%;
    opacity: 0;
}

.mobile-menu-btn.mobile-menu-btn--more > img {
    padding-bottom: 20px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000061;
    z-index: 3000;
    /* backdrop-filter: blur(1px); */
    transition: .35s opacity;
}

.mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-content {
    position: absolute;
    bottom: 0;
    background-color: white;
    min-height: 64px;
    border-radius: 2.5rem 2.5rem 0 0;
    box-shadow: 0 0 5px 3px #0000000d;
    padding: 2rem 1rem 1rem 1rem;
    width: 100%;
    gap: .5rem;
    max-height: 75%;
    will-change: bottom, top;
    transition: .5s all;
}

.mobile-menu:not(.active) .mobile-menu-content {
    bottom: -100%;
    opacity: 0;
}

.mobile-menu-content::after {
    content: "";
    position: absolute;
    top: .5rem;
    left: calc(50% - 1.5rem);
    background-color: #dedede;
    height: 4px;
    width: 3rem;
    border-radius: 2px;
}

.mobile-menu-content-body {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(75px, 1fr));
    flex-wrap: wrap;
}

.mobile-menu-content-swipe {
    position: absolute;
    height: 2.5rem;
    background-color: transparent;
    z-index: 3001;
    left: 0;
    top: 0;
    width: 100%;
    cursor: pointer;
}

.mobile-menu-element {
    position: relative;
    width: 75px;
    background-color: transparent;
    border-radius: 1rem;
    padding: .75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #787c8b;
    border: none;
    transition: .25s background-color, 200ms ease transform;
}

.mobile-menu-element:hover {
    /* background-color: #f2f2f2; */
    color: var(--color-black);
}

.mobile-menu-element:active {
    transform: scale(0.95);
}

.mobile-menu-element>i {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    background-color: #f6f7fb;
    border-radius: 1rem;
    font-size: 1.5rem;
}

.mobile-menu-element-title {
    margin-top: .5rem;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
}

.mobile-menu-element.danger {
    color: #721c24;
}

.mobile-menu-element.danger>i {
    background-color: #ffe6e6;
}

.mobile-menu-element.info {
    color: #a905a9;
}

.mobile-menu-element.info > i {
    background-color: #f3dfff;
}

.mobile-menu-element.active {
    color: #158ebb;
}

.mobile-menu-element.active>i {
    background-color: #e0f7ff;
}

.mobile-menu-element.active>span {
    font-weight: 700;
}

.footer .footer-card:hover,
.footer .footer-card:focus,
.footer .footer-card:target {
    color: #2b97bf;
    /* background-color: #e5f8ff; */
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.site-count-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 0;
    background-color: #dc3545;
    height: 1.25rem;
    min-width: 1.25rem;
    color: white;
    border-radius: 1rem;
    padding: .15rem .5rem;
    font-weight: 700;
    font-size: .8rem;
    user-select: none;
    animation: site-count-badge-pulse 2s;
    transition: .35s all;
}

.site-count-badge:empty {
    display: none;
}

.mobile-menu-element .site-count-badge {
    right: .5rem;
}

.left-menu .menu-items li .site-count-badge {
    right: -.5rem;
    top: -.25rem;
    font-weight: 700;
    font-size: .75rem;
    padding: .1rem .5rem;
}

.footer-card .site-count-badge {
    font-size: .75rem;
    padding: .05rem .5rem;
    right: .5rem;
}


/* add sorting icons to gridview sort links */

a.asc:after,
a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: "Glyphicons Halflings";
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}


/* align the logout "link" (button in form) of the navbar */

.nav li>form>button.logout {
    padding: 15px;
    border: none;
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.login-form img {
    width: 50%;
}

.header {
    position: sticky;
    top: 0px;
    background: #fff;
    border-color: #E5E5EA;
    border-radius: 0 0 1rem 1rem;
    display: flex;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    margin-bottom: 1rem;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 2px 2px rgb(157 172 207 / 8%);
    transition: .35s box-shadow;
}

.header-logo-cont, .header-control {
    height: 100%;
    padding: 1rem;
}

.header-logo > img {
    max-height: 100%;
}

.header-control.header-control--home .header-back, .header-control.header-control--can-back .header-back {
    display: none;
}

@media (width <= 768px) {
    .header-control.header-control--can-back .header-logo {
        display: none;
    }

    .header-control.header-control--can-back .header-back {
        display: flex;
    }
}

.header-control .header-back {
    border-radius: 0.75rem;
    border: 1px solid #E5E5EA;
    height: 35px;
    width: 35px;
    padding: .5rem;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
}

.wrap-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content {
    /* overflow: hidden; */
    flex-grow: 1;
}

.content-overflow {
    overflow: hidden;
}

.user-info-cont {
    display: flex;
    border-radius: 0 0 1rem 0;
    height: 100%;
    padding: 1rem;
    transition: .35s all;
}

.user-info-cont:hover {
    background-color: #f3fcff;
}

.user-photo-cont {
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    transition: .15s all;
}

.user-photo-cont:hover {
    transform: scale(1.15);
}

.user-photo-cont.online {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #4caf50;
}

.user-photo-cont>img {
    display: block;
    height: 100%;
    aspect-ratio: 1/1;
    background-color: white;
    object-fit: cover;
    /* max-height: 35px; */
}

.user-info-group {
    background: #caf1ff;
    color: #0c6c90;
    padding: .15rem .5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    place-items: flex-end;
    margin-right: .5rem;
    gap: .25rem;
    padding: .25rem .5rem;
    justify-content: center;
    cursor: pointer;
    transition: .35s all;
}

.fixed-header {
    margin-bottom: 1.5rem;
    width: 100%;
    z-index: 1001;
}


/* --------------------------------------------------------------------- Ripple Effect ------------------------------------------------------------------------ */

.ripple {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    transform: translateZ(0);
    border-radius: inherit;
    pointer-events: none;
    will-change: transform;
}

.ripple-wave {
    backface-visibility: hidden;
    position: absolute;
    border-radius: 50%;
    transform: scale(0.5);
    background: #ffffff44;
    opacity: 1;
    animation: ripple 1.5s ease forwards;
}

@keyframes site-count-badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgb(204 44 77 / 40%);
    }
    70% {
        box-shadow: 0 0 0 10px rgb(204 44 48 / 0%);
    }
    100% {
        box-shadow: 0 0 0 0 rgb(204 44 69 / 0%);
    }
}

@keyframes ripple {
    to {
        transform: scale(25);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
    .wrap {
        padding: 0;
        padding-bottom: 50px;
        padding-top: 60px;
    }
    .content {
        padding-top: 1rem;
        padding-bottom: 1rem;
        overflow: hidden;
    }
    .wrap-container {
        padding: 0;
    }
    .header {
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 0;
    }
    .header.header--shadow {
        box-shadow: 0 3px 5px #0000000a;
    }
}

@media (min-width: 1340px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1360px;
    }
}
