﻿html {
    height: 100%;
    width: 100%;
    overflow-y: hidden;
}

body {
    height: 100%;
    width: 100%;
}

.big-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.custom-nav {
    width: 100%;
    max-height: 130px;
    display: flex;
    flex-direction: column;
}

.custom-nav-invisible {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    z-index : 1000;
}

.custom-nav-invisible.active {
    display: none;
}

    .custom-nav.is-full-screen {
        display: none;
    }

.top-nav {
    display: flex;
    flex-direction: row;
    height: 50px;
    align-content: center;
    align-items: center;
    padding: 0px 10px 0px 0px;
    font-weight: 500;
}

.top-nav-content {
    padding: 0px 20px;
    height: 100%;
    font-size: 16px;
    line-height: 16px;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

    .top-nav-content span {
        position: relative;
    }

    .top-nav-content a:hover {
        cursor: pointer;
    }

.top-nav-right {
    margin-left: auto;
    display: flex;
    flex-direction: row;
}

.top-nav-full-screen {
    margin-right: 20px;
}

.un-hide-custom-nav {
    position: absolute;
    top: 0;
    right: 9px;
    display: none;
    font-size: 20px;
}

    .un-hide-custom-nav i:hover {
        cursor: pointer;
    }

.bottom-nav {
    height: 50px;
    flex-grow: 1;
    font-size: 14px;
    line-height: 16px;
}

.bottom-nav-reduce {
    position: relative;
    width: 100%;
    height: 0px;
}

    .bottom-nav-reduce i {
        position: absolute;
        right: 9px;
        top: -25px;
        font-size: 20px;
    }

        .bottom-nav-reduce i:hover {
            cursor: pointer;
        }

.bottom-nav-content {
    display: none;
    flex-direction: row;
    height: 100%;
}

    .bottom-nav-content.active {
        display: flex;
        height: 100%;
    }

.bottom-nav-sub-content {
    display: flex;
    flex-direction: row;
    padding: 5px;
    justify-content: space-between;
    position: relative;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    align-self: center;
    height: 100%;
}

    .bottom-nav-sub-content > div {
        margin-right: 45px;
    }

#bottom-nav-datepicker .custom-flex-row {
    align-items: center;
}


.bottom-nav-planning-name {
    flex-grow: 1;
    padding: 0px 5px;
    text-align: center;
    font-weight : bold;
}

.bottom-nav-planning-version-number {
    padding-left: 5px;
    opacity: 0.5;
    line-height : 12px;
    font-size: 10px;
}

.filter-nav {
    display: flex;
    flex-direction: row;
    height: 30px;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px 0px 10px;
    font-weight: 500;
}

.filter-nav-content.left {
    display: flex;
    flex-direction: row;
}

.filter-nav-content.right {
    
}

.upper-content {
    position: relative;
    /*width: 100%;*/
    padding: 0px 9px;
    padding-top: 9px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.content {
    position: relative;
    /*width: 100%;*/
    padding: 0px 9px;
    padding-top: 9px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    transition: margin-left .5s;
}

.bottom-row {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-grow: 0;
    flex-shrink : 0;
    height: 20px;
    padding: 0px 9px;
}

    .bottom-row.is-full-screen {
        display: none;
    }

.planning-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    height: 50px;
    width: 100%;
    overflow-y: scroll;
}

.bottom-row-resize,
.item-header,
.planning-header-title {
    /*flex-basis: 25%;*/
    width: 25%;
    /*resize: horizontal;*/
    flex-grow: 1;
    flex-shrink: 1;
}

.planning-header-title {
    position : relative;
}

.resize-helper{
    position : absolute;
    top : 2px;
    right : -5px;
}

.search-block {
    width: 100%;
    padding-right: 15px;
}

.item-header {
    position: relative;
    margin: auto 0;
    /*padding-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;*/
    display: flex;
    flex-direction: row;
}

    .item-header > span {
        padding-left: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-grow: 1;
        /*width : 25%;*/
    }

.bottom-row-scroll,
.item-planning,
.planning-ruler {
    /*flex-basis: 75%;*/
    width: 85%;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    z-index: 20;
    padding-left: 15px;
    flex-grow: 1;
    flex-shrink: 1;
}

    /*.planning-ruler{
        overflow-y: scroll;
    }*/

.bottom-row-scroll {
    overflow-x: auto;
    overflow-y: scroll;
}

.bottom-row-scroll table{ /*cause planning always feet inside planning */
    display : none;
}

.planning-footer-content {
    overflow-x: scroll;
}

.bottom-planning-ruler,
.top-planning-ruler {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.footer-case,
.pr-case,
.pr-group-case,
.item-planning-case {
    position: relative;
    /*min-width: 30px;*/
    /*width:2%;*/
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
    font-size: 11px;
    line-height: 13px;
    flex-grow: 0;
}

.pr-case a:hover {
    text-decoration : none;
}

.pr-group-case{
    height : 25px;
    vertical-align : top;
}

.ruler-date {
    position: absolute;
    top: -10px;
    left: -7px;
    text-align: center;

}

.planning-content {
    position: relative;
    overflow-y: hidden;
    display : flex;
    flex-direction : column;
    flex-grow : 1;
    overflow-y:scroll;
}

.group-item {
    margin-bottom: 10px;
    display : flex;
    flex-direction : column;
}

.group-item .group-item-content {
    overflow-y: hidden;
}

#group-item-cigi {
    flex-shrink: 0;
    flex-grow: 0;
}

#group-item-mngi {
    flex-shrink: 1;
    flex-grow: 0;
    max-height : 25%;
    flex-basis : 1px;
}

    #group-item-mngi.reduced {
        flex-shrink: 1;
        flex-grow: 0;
    }

#group-item-mgi {
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 1px;
}

    #group-item-mgi.reduced {
        flex-shrink: 1;
        flex-grow: 0;
    }

    #group-item-mgi .group-item-content {
        flex-basis : 1px;
        flex-grow : 1;
    }

.group-item-header {
    padding-left: 5px;
    height: 20px;
    font-size : 12px;
    background-color: #C8C8C8;
}

.group-item-icon {
    padding-right: 5px;
}

.group-clickable-item-icon{
    padding-left : 10px;
}

.group-item-content {
    position: relative;
}

.group-item-action{
    margin-left : 10px;
}

.item {
    min-height: 20px;
    display: flex;
    flex-direction: row;
    line-height: 20px;
}

    .item.reconizer-0 .item-planning-table {
        visibility : hidden;
    }

    .item.reconizer-0 {
        position: sticky;
        width: 100%;
        top: 0;
        z-index : 1000;
    }

.item-header {
    font-weight: 400;
    font-size : 12px;
    line-height : 14px;
    height : 100%;
}

.add-button{
    visibility : hidden;
}

.item-planning-case:hover .add-button {
    visibility: visible;
}

.custom-flex-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 10px 0px;
}

.custom-flex-row {
    display: flex;
    flex-direction: row;
}

.custom-datepicker {
    text-align: center;
    background-color: transparent;
    border-radius: 3px;
    border: 1px solid #3E3C3C;
}

.planning-ruler-table,
.item-planning-table {
    height: 100%;
    width: 100%;
    table-layout : fixed;
}

.planning-content-ruler-column-define {
    visibility: hidden;
    height: 1px;
}

    .planning-content-ruler-column-define td {
        visibility: hidden;
        height: 1px;
    }

.society-name {
    height: 100%;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 3.78px;
}

.side-schedule,
.deplacement-schedule,
.schedule {
    display: flex;
    align-items: center;
    vertical-align: middle;
    padding: 0px 3px;
    margin: auto 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 2000;
    border-radius: 10px;
    font-weight: bold;
    background-size: 56.57px 56.57px;
}

.deplacement-schedule {
    padding: 0px;
}

.deplacement-schedule:hover,
.side-schedule:hover,
.schedule.editable:hover {
    cursor : pointer;
}

.schedule {
    position: absolute;
    top: 2px;
    height: calc(100% - 4px);
    width: 300%;
}

.deplacement-schedule,
.side-schedule {
    position: relative;
    width: 100%;
}
    .deplacement-schedule .schedule-name,
    .side-schedule .side-schedule-name {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width : 85%;
    }

    .schedule.cut,
    .schedule.copy {
        border: 2px dashed black;
    }


    .schedule.anchor-left {
        border-bottom-left-radius: 0px;
        border-top-left-radius: 0px;
    }

    .schedule.anchor-right {
        border-bottom-right-radius: 0px;
        border-top-right-radius: 0px;
    }

.schedule-name {
    flex-grow: 1;
    flex-shrink: 1;
    margin: auto 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-icon {
    flex-shrink: 0;
    float: right;
    margin: auto 0px;
    margin-right: 4px;
}

.ui-datepicker {
    z-index: 1000;
}

.right-info {
    float: right;
    padding-right: 15px;
}

.reduce,
.expand{
    float : right;
    padding-right : 5px;
}

.reduce:hover,
.expand:hover {
    cursor : pointer;
}

.visbility-state{
    display : none;
}

    .visbility-state.is-visible{
        display : inline;
    }

.close {
    color: #aaaaaa;
    float: right;
    padding-right: 3px;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

.span-button,
.filter-button{
    margin-left : 5px;
    padding : 3px 15px; 
    font-size : 12px;
}

/*.for-2-2{
    display : none;
}*/

.for-2-3 {
    display: none;
}

/*Loader */
.spinner{
    visibility : hidden;
    float:right;
    display : block;
    position : absolute;
    bottom : 16px;
    right : 20px;
}

.spinner.active{
    visibility : visible;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 30px;
}

    .lds-ring div {
        box-sizing: border-box;
        display: block;
        position: absolute;
        width: 26px;
        height: 26px;
        margin: 8px;
        border-radius: 50%;
        animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    }

        .lds-ring div:nth-child(1) {
            animation-delay: -0.45s;
        }

        .lds-ring div:nth-child(2) {
            animation-delay: -0.3s;
        }

        .lds-ring div:nth-child(3) {
            animation-delay: -0.15s;
        }

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*****************************Toast CSS*******************************/

#snackbar-bad,
#snackbar-good {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: absolute;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#snackbar-bad.show,
#snackbar-good.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/*Pagination*/

.page-link{
    border:none;
    padding : 0px 2px;
    font-size : 14px;
}

.pagination{
    align-self : flex-end;
    line-height : 24px;
    margin : 0px;
}

.schedule-icon{
    margin-right : 5px;
}