

/*У всіх браузерах прибираю стрілки в input type="number"
треба перенести в main.css
*/
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; 
}

input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    -moz-appearance: textfield;
}

input[type='number']{
    border: 1px solid gray;
}

.page.mobile #bodies::-webkit-scrollbar{ 
    display:none;  
 }

@font-face {
    font-family: mainfont;
    src: url(fonts/gothic.ttf);
}

html {
    min-height: 100%;
    position: relative;
}

body {
    margin: 0 auto;
    font-family: 'mainfont';
    font-size: 14px;
    margin-bottom: 140px;
    max-width: 1024px;
}

/*стиль відображення кнопки more як три крапки &bull; */
.more {
    display: inline;
    float: right;
    letter-spacing: -4px;
    font-size: 18px;
    color: gray;
    line-height: 32px;
    cursor: pointer;
    padding-top: 5px;
    height: 6px;
    margin-right: 5px;
}

.order.empty .more.left {
    color:silver
}


#teacher .order.empty .day{
    color:black;
    cursor: pointer;
}

.more.left {
    float: left;
}

/*стиль відображення кнопки мобільного меню як три горизонтальні лінії*/
.mobMenu {
    width: 30px;
    margin-top: 8px;
    margin-right: 20px;
    padding: 0;
    height: 16px;
    border: none;
    color: white;
    background-image: linear-gradient(currentColor 50%, transparent 50%);
    background-size: 100% 6px;
    cursor: pointer;
    float: right;
}

.page{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    max-width: 1024px;
    width: 100%;
}
#bodies{
    text-align: center;
    padding: 5px 5px;
    overflow-y: auto;
    width: 100%;
    flex-grow: 1;
    margin-bottom: 40px;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #ffffffb8;
}
#preloader #progressbar{
    display: none;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 30px;
    margin-top: calc(50vh - 30px);
    margin-left: calc(50vw - 30px);
    z-index: 1;
    position: absolute;
    text-align: center;
    font-size: 16px;
    background-color: #fcfcfad6;
    font-weight: bold;
}
#logo-loader {
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    /*filter: drop-shadow(40px 40px 40px gray);*/
    filter: drop-shadow(2px 0px 0px black);
}

#logo-loader img {
    position: absolute;
    width: 50%;
    height: 50%;
    -webkit-animation: padding 2s cubic-bezier(0.56,-0.24, 0.5, 1.35) infinite;
    animation: padding 2s cubic-bezier(0.56,-0.24, 0.5, 1.35) infinite;
}

#logo1 {
    top: 0%;
    left: calc(0% + 19px);
}

#logo2 {
    top: calc(0% + 18px);
    left: 50%;
}

#logo3 {
    top: calc(50% - 18px);
    left: calc(0% + 1px);
}

#logo4 {
    top: calc(50% + 10px);
    left: calc(50% + 4px);
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #9370DB;
    /* -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite; */
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #BA55D3;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #FF00FF;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

@-webkit-keyframes padding {
    0% {
        transform: scale(1);
        transform: rotate(0deg);
    }

    5% {
        transform: scale(1);
        transform: rotate(0deg);
    }

    50% {
        transform: scale(0.5);
        transform: rotate(180deg);
    }

    90% {
        transform: scale(1);
        transform: rotate(360deg);
    }

    100% {
        transform: scale(1);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    50% {
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

span.found {
    background-color:yellow;
    color: black;
}


/***************************/

.fog {
    position: fixed;
    top:0;
    left:0;
    bottom: 0;
    width: 100%;
    background-color:#c0c0c0b3;
    z-index:10; 
    display: flex;
    align-items: center;
    justify-content: center;      

}

.mobile .fog{
    background-color: #9e9e9ecc;
    position: fixed;
}

.popup{
    max-width: 700px;
    background-color: #0f0f4a;
    color: white;
    font-size: 14px;
    z-index: 1;
    text-align: left;
    position: fixed;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 7px 7px 4px 4px grey;
    font-size: 15px;
    width: 470px;
    position: relative;
    max-height: 100%;
    min-height: 25%;
}


.mobile .popup{
    max-height: 100%;
    width: 100%;
    left: 0;
    box-shadow: none;
}

.mobile .popup.cancel{
    padding-top: 20%
}

.mobile .popup.cancel .editBlock button{
    width: 100px;
    margin-left: 20px;
    margin-right: 20px;
}


.popupScroll{
    position: relative;
    overflow-y: auto;
    left: 0;
    width: 100%;
    flex-grow: 1;
    text-align: left;
    padding: 10px;
    background-color: #36363c;
    border-bottom: 1px solid silver;
    border-top: 1px solid silver;
    clear: both;
}

.popup .editBlock button{
    background-color: orange;
    color: black;
}

.popup .buttonBlock span{
    color: silver;
    text-decoration: underline;
    cursor: pointer;
    float: right;
    display: block;
    clear: both;
    font-size: 13px;
    margin: 10px; 
}

.popup .buttonBlock button{
    padding: 5px;
    font-size: 14;
    display: block;
    width: fit-content;
    float: right;
    margin: 0;
}

    
.popup .noEdit{    
    width: 200px;
    position: absolute;
    bottom: 25px;
    left: 250px;
    color: red;
}

.popupHeader .name{
    font-size: 16px;
    color: white;
    margin: 0;
}
.popupHeader p{
    margin: 0 0 0 0;
    color:silver;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.popupHeader li{
    line-height: 20px;
    margin-left: 20px;
    color:white;
    cursor: pointer;
}

.popupHeader .price{
    margin: 0 20px;
    color: white
     }

.closePopup:hover{
        color:white
}

.closePopup{
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-image: url(/img/button-left.png);
    background-repeat: no-repeat;
    background-position: center;
    float: right;
}    



.popupScroll .text{
    text-align: left;
    font-size: 15;
    width: 100%;
}

.popupScroll .textFull{
    text-align: center;
    width: 100%;
    font-size: 15;
}


.popupScroll ul{
    margin-left: -40px;
    margin-bottom: 5px;
    color: #fbbe4d;
    text-align: left;
}

.popupScroll ul span{
    float:right
}

.popupScroll .name span{
    margin-left: 10px;
}
.popupScroll li{
    font-size: 15px;
    margin-left: 30px;
    color: silver;
    line-height: 15px;
}

.popupScroll li div{
    display: inline-block;
    text-overflow: ellipsis;
    width: 280px;
    overflow: hidden;
    white-space: nowrap;  
}

.popupScroll p{
    text-align: left;
    font-size: 15px;
    color: #fbbe4d;
    margin: 0;
}
.popupScroll .bottom {
    color: orange;
    width: 100%;
    text-align: right;
    margin-top: 20px;
}


.popupScroll .bottom td:last-child{
    width: 110px;
}


.popupTotal{
    border-bottom: 1px solid silver;
    font-size: 15px;
    text-align: right;
    padding: 10px;
}

.popupTotal table{
    width: 100%;
    color: #fbbe4d;
}
.popupTotal td{
    line-height: 18px;
}
.popupTotal td:last-child{
    width: 120px;
}

.popupHeader .blocked{
    background-color: red;
    padding: 4px 5px;
    width: inherit;
    text-align: center;
    margin: 15px -10px -25px -10px;
    color: white;
    line-height: 17px;
    display: inline-block;
}

.popupHeader{
  /*  border-bottom: 1px solid;*/
    text-align: left;
    font-size: 15px;
    color: silver;
    line-height: 20px;
    padding: 10px;
    /*min-height: 55px;*/
    margin-bottom: 10px;
}


.popupFooter{
    padding: 10px;
    /*margin: auto;*/
}

.redLine{
    background-color: red;
    color: white;
    text-align: center;
    padding: 5px;
    line-height: 16px;
    margin: 0;
}

.orangeLine{
    background-color: orange;
    color: black;
    text-align: center;
    padding: 5px;
    line-height: 16px;
    margin: 0;
}


.greenLine{
    background-color: green;
    color: white;
    text-align: center;
    padding: 5px;
    line-height: 16px;
    margin: 0;
}
.popupButton{
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #efeeee;
    margin: 20px 20px;
    background-color: orange;
    color: black;
    font-size: 14px;
    min-width: 70px;
}
.popupButton.impersonDelete{
    background-color: transparent;
    color: gray;
    text-decoration: underline;
} 
.cancelOrderDialog p{
    /*line-height: 10px;*/
    color:silver;
}
.cancelOrderDialog input{
    width: 100%;
    margin-bottom: 20px;
}
.showDetalePopup  .more{
    margin: 15px;
    position:absolute;
}

#errorNet.fog, #errorMessage.fog{
    background-color: #c0c0c0b3;
    z-index: 200;
}

.errorContent{
    width: calc(100% - 40px);
}

.mobile .alertPopup{
    left: 0;
    bottom:0;
    top:unset;
    box-shadow: none;
    width: 100%;
    padding: 20px 20px;
}

.alertPopup{
    position: absolute;
    color: silver;
    background-color: #680707;
    left: calc((100% - 300px)/2);
    top: calc((100% - 300px)/2);
    box-shadow: 0px 0px 9px 6px grey;
    width: 300px;
    height: auto;
    font-size: 15px;
    padding: 80px 20px;
    cursor: pointer;
    text-align: left;
}
.alertPopup a{
    float: right;
    position: absolute;
    color: #ffcc33;
    bottom: 20px;
    right: 20px;
}
 
.alertPopup .closePopup{
    position: absolute;
    top: 20px;
    right: 20px;
}