/* Horizontal layout */
@media screen and (max-width: 12000px){
    .mobile{
        display: none;
    }
    
    .desktop{
        display: unset;
    }

    table .desktop{
        display: table-cell;
    }



    .bottom-header.desktop{
        display: block;
    }
    
}

@media screen and (max-width: 1300px) {    

    .tablet{
        display: unset;
    }

    table .tablet{
        display: table-cell;
    }


    .mobile{
        display: none;
    }

    table .mobile{
        display: none;
    }

    table .desktop{
        display: table-cell;
    }

    .desktop{
        display: unset;
    }

    .bottom-header.desktop{
        display: block;
    }

    table .tablet{
        display: table-cell;
    }

    .scheduler {
        top: unset;
    }
    /* .wrap {
        width: 96%;
        position: static;
        left: 0;
        margin-left: 0;
        margin: auto;
    }

    
    .top-header .user {
        display: inline;
    } */

    /* .wrap {
        width: 100vw;
        position: relative;
        left: unset;
        margin-left: unset;
        padding: 0 10px;
    } */
    .planning{
        padding-left: unset;
    }

    .planning h1 .grid,
    .planning h1 form {
        float: unset;
    }

    .top-header {
        height: 60px;
        background-color: #007F39;
        padding: 0;
    }

}

/* Vertical layout */
@media screen and (max-width: 1024px) {

    .tablet{
        display: unset;
    }

    .mobile{
        display: unset;
    }

    .bottom-header.mobile{
        display: block;
        position: fixed;
        width: 100vw;
    }


    table .mobile{
        display: table-cell;
    }

    .desktop{
        display: none;
    }

    .bottom-header.desktop{
        display: none;
    }


    table .desktop{
        display: none;
    }

    table .tablet{
        display: table-cell;
    }


    input[type="submit"]{
        margin-top: 16px;
    }

    .listing td,
    .listing th {
        font-size: 11px;
    }

 
    .form-mask .form-row{
        flex-direction: column;
        align-items: center;
        display: flex!important;

    }


    .calendars-folder-container{
        height: fit-content;
        /* display: grid; */
        /* gap: 10px; */
        padding: 1px 20px;
        position: absolute;
        top: 42px;
        left: 9px;
        /* transform: translate(-50%, -50%); */
        background: #fff;
        z-index: 99;
        overflow-y: auto;
    }
    
    .calendars-folder-container.h-500{
        /* height: 500px; */
        min-width: 68vw;
        border: 2px solid green;
    }
   
}



@media screen and (max-width: 768px) {

    .reports-sheets input[type="text"],
    .reports-sheets input[type="date"],
    .reports-sheets input[type="submit"],
    .reports-sheets select {
        max-width: 130px !important;
        margin: 10px 8px;
    }

    .flex-column{
        display: flex;
        flex-direction: column;
    }

    .wrap {
        width: 100vw;
        /* position: relative; */
        left: unset;
        margin-left: unset;
    }

    .top-header .wrap{
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
    }

    
    .w-100vw{
        width: 100vw;
    }
    
    .plan-h1 > *{
        width: 100%;

    }

    .calendars-folder-container{
        height: fit-content;
        display: grid;
        /* gap: 10px; */
        padding: 1px 20px;
        position: absolute;
        top: 42px;
        left: 9px;
        /* transform: translate(-50%, -50%); */
        background: #fff;
        
        z-index: 99;
        
        overflow-y: auto;
    }

    .calendars-folder-container.h-500{
        height: 500px;
        min-width: fit-content;
        border: 2px solid green;
    }





   
}

@media screen and (max-width: 560px) {

    .tablet{
        display: none;
    }

    table .tablet{
        display: none;
    }


    .mobile{
        display: unset;
    }

    table .mobile{
        display: table-cell;
    }

    .desktop{
        display: none;
    }

    .bottom-header.desktop{
        display: none;
    }

    table .desktop{
        display: none;
    }




    .listing td,
    .listing th {
        font-size: 11px;
    }

    .mobile{
        display: unset;
    }

    table .mobile{
        display: table-cell;
    }

    .tablet{
        display: none;
    }


    .desktop{
        display: none;
    }

    /* width */
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    
    /* Track */
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    /* Handle */
    ::-webkit-scrollbar-thumb {
        background: #007F39;
    }
    
    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .wrap {
        /* width: 96%; */
        /* position: static; */
        left: 0;
        margin-left: 0;
        margin: auto;
    }
   
    
    .top-header {
        position: fixed;
        width: 100vw;
        top: 0;
        z-index: 100;
    }
    
    .top-header .user {
        display: none;
    }
    .bottom-header.mobile {
        width: 100%;
        position: fixed;
        top: 60px;
    }

    .bottom-header.mobile nav{
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    } 

    .bottom-header.mobile nav.tools{
        overflow-y: unset;
    } 

    
    .bottom-header.mobile .nowrap{
        overflow-y: auto;
        height: calc(100vh - 60px);
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
    }
        
    
    .bottom-header.mobile nav div p{
        display: none;
    }

    main{
        margin-top: 60px;
    }

    .form-mask{
        width: unset;
        margin: unset!important;
    }

    .form-mask .form-row{
        flex-direction: column;
        align-items: center;


    }

    .home.repeat-sheet {
       margin-top: unset;
    }

    input{
        margin: 10px 0;
    }

    /* planning */
    .planning h1 .grid{
        float: unset;
    }

    .planning h1 form{
        float: unset;
    }

    .planning input{
        margin-left: unset!important;
    }

    .scheduler{
        padding: unset;

       
    }

    .scheduler form{
        width: 80%;
        margin: 0 auto;
       text-align: center;
    }

    .scheduler select,
    .scheduler input,
    .scheduler input[type="submit"]{
        width: 100%;
        margin: 20px auto!important;

    }


    .calendars{
        width: calc(100vw - 52px);
    }

    .calendars .fa-angle-right,
    .calendars .fa-angle-left{
        color: #007F39;
        position: absolute;
        margin: 7px -27px 0 -27px;
        font-size: 28px;
    }

    .calendars .fa-angle-right{
        right: 0;
    }

    .calendars .fa-angle-left{
        left: 0;
    }


    .calendars > div {
        /* margin: 0 44px; */
        position: relative;
    }

    .selectors{
        display: flex;
        justify-content: center;
        flex-direction: column-reverse;
        align-items: center;
    }

    

    #create-appointment, #edit-appointment, #recurring-appointment{
        margin-top: 60px;
        width: 100vw;
        left: 0;
        margin-left: unset;
        height: 94%;
        overflow-y: auto;
    }

    #edit-appointment .buttons{
        display: flex;
        flex-direction: column;
    }
    
    /* appointments search hostory */
    #app-search-history table{
        font-size: 10px;
    }

    #app-search-history .form-row > *{
        width: 80%!important;
        margin: 20px auto!important;
        display: block;
    }

    #app-search-history .form-row label{
        margin-bottom: 7px!important;
    }

    #app-search-history .search-appointments .deleted-app {
        margin-left: unset;
    }

    /* reports-sheets */

    .reports-sheets input[type="text"],
    .reports-sheets input[type="date"],
    .reports-sheets input[type="submit"],
    .reports-sheets select {
        max-width: 80%!important;
        margin: 10px auto;
    }

    .reports-sheets .form-row.check{
        flex-direction: row;
    }

    .reports-sheets .form-row.check > div{
        width: 100%;
    }

    /* reports-sheet */
    .reports h1{
        display: flex;
        flex-direction: column;
    }

    .reports h1 button{
        margin-right: 0;
    }

    /* items */
    
}

@media screen and (max-width: 375px) {

    
}