/***
 * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 *
 * Copyright (C) Kraptix SPA. All rights reserved.
 *
 * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 *
 * For related information - https://salumatix.kraptix.com/
 * 
 * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
****/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    list-style-type: none;
    touch-action: manipulation;
    border: none;
    user-select: none;
    -webkit-user-drag: none;
}

body{
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #fff;
    background-image: url(../images/system/bg-screen.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

main, html, body{
    height: 100%;
}

::-webkit-scrollbar-track{
    background-color: transparent;
}

::-webkit-scrollbar{
    width: 2px;
    height: 2px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb{
    border-radius: 0.5rem;
    background-color: #c9c8c8;
}

::-webkit-scrollbar-thumb:hover{
    background-color: #b3b2b2;
}

.top-right-icon-container svg{
    width: 2rem;
    height: 2rem;
    fill: #00489a;
    stroke: #00489a;
    transition: all 0.3s ease-in-out;
}


.top-right-icon-container svg:active{
    transform: scale(.9);
}

.top-right-icon-container{
    position: absolute;
    background-color: transparent;
    cursor: pointer;
    border-radius: .18rem;
    font-weight: 550;
    top: 2rem;
    right: 2rem;
}

main{
    display: flex;
    padding: 1rem 0;
    justify-content: center;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#cesfamLogoContainer,
#pfCheckinImageContainer{
    padding: 1rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cesfamLogo,
#pfCheckinImage{
    width: 300px;
}

#numberContainer{
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

#numberContainerHeaderTitle{
    color: #969696;
    text-transform: uppercase;
    font-size: .95rem;
}


#attentionNumber{
    color: #00489a;
    font-weight: 600;
    font-size: 18rem;
    line-height: 18rem;
}

.brand-btn{
    cursor: pointer;
    background-color: #e53449;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    padding: .7rem 1.8rem;
    border-radius: 24px;
    transition: all 0.3s ease-in-out;
    will-change: transform;
}

.brand-btn.cursor-normal{
    cursor: default;
}

.brand-btn:hover{
    opacity: .9;
}

.brand-btn:disabled{
    opacity: .7;
    transform: scale(.97);
}

#blueRectangleContainer{
    background-color: #00489a;
    position: absolute;
    top: 0;
    height: 10px;
    width: 100%;
}

#grayRectangleContainer{
    background-color: #dadada;
    position: absolute;
    bottom: 0;
    height: 10px;
    width: 100%;
}

#networkAlertContainer{
    position: absolute;
    bottom: 2rem;
    width: 100%;
    display: none;
    backdrop-filter: blur(3px);
    justify-content: center;
    height: 100%;
    align-items: flex-end;
}

#networkAlertContent{
    background-color: #e53449;
    color: #FFFFFF;
    padding: .5rem 1rem;
    border-radius: .25rem;
    display: flex;
    width: 600px;
    flex-direction: column;
    gap: .3rem;
}

#networkAlertTitle{
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

#adminPanelHeaderContainer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#closeAdminPanelIconContainer{
    width: 1rem;
    cursor: pointer;
}

#networkAlertMessage{
    font-size: .9rem;
}

.admin-panel-btn.text{
    background-color: transparent;
    color: #FFFFFF;
    outline: 1px solid #FFFFFF;
    flex-direction: row-reverse;
}

.admin-panel-btn.text path{
    fill: #FFFFFF;
}

#adminPanelContainer{
    position: absolute;
    z-index: 100;
    bottom: 0;
    display: none;
    right: 0;
    border-top-left-radius: 24px;
    height: auto;
    width: 450px;
    background-color: #e53449;
    color: #FFFFFF;
}

#adminPanel{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#attentionNumberHelperText{
    font-size: .95rem;
}

.admin-item-wrapper{
    width: 46%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-item-wrapper .admin-item-container{
    width: 100%;
}

.admin-panel-btn{
    cursor: pointer;
    background-color: #FFFFFF;
    padding: .6rem 1.5rem;
    border-radius: 16px;
    color: #e53449;
    text-transform: uppercase;
    letter-spacing: 0.09rem;
    font-weight: 550;
    display: flex;
    gap: 1rem;
    font-size: .85rem;
}

.admin-panel-btn path{
    fill: #e53449;
}
    
#adminPanelContainer{
    padding: 2rem;
}

#adminPanelHeaderTitle{
    font-size: 1.3rem;
}

#attentionNumberOptionsBtnContainer{
    display: flex;
    justify-content: space-between;
}

#adminPanelBodyContainer{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#adminPanelBodyContainer #attentionNumberContainer{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#adminPanelBodyContainer #attentionNumberItemContainer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-item-container{
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: .5rem;
    width: 46%;
    padding: 1rem;
    border-radius: 20px;
}

.admin-item-container .admin-item-title{
    color: #00489a;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1rem;
    font-size: .8rem;
}

#attentionNumberInfo{
    font-size: .85rem;
    color: #FFFFFF;
    margin-top: .5rem;
}

.admin-item-container .admin-item-value{
    color: #00489a;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 3.5rem;
}

#loader-wrap{
    display: flex;
}

#loading{
    background-color: #224fef;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 2;
    margin-top: 0px;
    top: 0px;
}

#loading-center{
    width: 100%;
    height: 100%;
    position: relative;
}

#loading-center-absolute{
    position: absolute;
    left: 50%;
    top: 50%;
    height: 200px;
    width: 200px;
    margin-top: -100px;
    margin-left: -100px;
}

#loader{
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -50px;
    width: 100px;
    height: 3px;
    overflow: hidden;
}

#loader:before, #loader:after{
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 3px;
    transform: translate(-100%, 0);
}

#loader:before{
    background-color: #cbcbcb;
    animation: loading 3400ms cubic-bezier(0.23, 1, 0.32, 1);
}

#loader:after{
    background-color: #fff;
    animation: loading 2500ms 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

#attentionNumberItemContainer .admin-item-container:last-child,
#totemAttentionNumberItemContainer .admin-item-wrapper:first-child .admin-item-container{
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.admin-item-wrapper:last-child .admin-item-icon:not(.admin-item-icon.outline),
.admin-item-icon.contained{
    background-color: #FFFFFF;
    border: unset;
}

.admin-item-wrapper:last-child .admin-item-icon svg path:not(.admin-item-icon.outline svg path),
.admin-item-icon.contained svg path{
    fill: #e53449;
}

.admin-footer-helper-text{
    font-size: .8rem;
    color: #FFFFFF;
}

.admin-footer-helper-text.bold{
    font-weight: 500;
}

#adminPanelFooterContainer{
    display: flex;
    gap: .5rem;
    flex-direction: column;
}

.admin-item-bottom{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.admin-item-bottom svg path{
    fill: #FFFFFF;
}

.admin-item-icon{
    cursor: pointer;
    border-radius: 16px;
    border: 1px solid #FFFFFF;
    background-color: transparent;
    padding: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-item-bottom svg{
    width: .8rem;
    height: .8rem;
}

#attentionNumberItemContainer .admin-item-container:last-child .admin-item-title,
#attentionNumberItemContainer .admin-item-container:last-child .admin-item-value,
#totemAttentionNumberItemContainer .admin-item-wrapper:first-child .admin-item-title,
#totemAttentionNumberItemContainer .admin-item-wrapper:first-child .admin-item-value{
    color: #FFFFFF;
}

#totemAttentionNumberItemContainer{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

@keyframes loading{
    75%{
        transform: translate(0, 0);
    }
    
    100%{
        transform: translate(100%, 0);
    }
}

@media screen and (max-width: 768px){
    #adminPanel{
        gap: 1rem;
        padding-bottom: 2rem;
    }

    #adminPanelContainer{
        top: unset;
        bottom: 0;
        transform: unset;
        height: auto;
        width: 100%;
        max-height: 80%;
        overflow-y: scroll;
        border-bottom-left-radius: 0;
        border-top-right-radius: 24px;
        z-index: 100;
        padding: 2rem 2rem 0;
    }

    .admin-footer-helper-text{
        font-size: .7rem;
    }

    #adminPanelFooterContainer{
        gap: 1rem;
    }

    #attentionNumber{
        font-size: 43vw;
        line-height: 43vw;
    }

    .admin-item-container .admin-item-title{
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #networkAlertContent{
        width: 100%;
        border-radius: 0;
    }
    
    #networkAlertContainer{
        bottom: 0;
    }   

    #closeAdminPanelIconContainer{
        width: .95rem;
    }

    .top-right-icon-container svg{
        width: 1.5rem;
        height: 1.5rem;
    }

    .top-right-icon-container{
        top: 2rem;
        right: 1rem;
    }

    #cesfamLogo,
    #pfCheckinImage{
        width: 50%;
        height: auto;
    }

    .brand-btn{
        font-size: .78rem;
        padding: .6rem 1.8rem;
    }

    #numberContainer{
        gap: 1rem;
    }

    #numberContainerHeaderTitle{
        font-size: .85rem;
    }

    main, html, body{
        height: 100%;
    }
}

@media screen and (max-width: 380px){
    .admin-panel-btn{
        padding: .6rem 1rem;
    }
}