* {
    box-sizing: border-box;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
}

.logo {
    height: 40%;
}

.logo-brand {
    height: 40px;
}

.dropdown-menu > li > a {
    cursor: pointer !important;
}
/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    min-height: calc(100vh - 160px);
    padding-left: 15px;
    padding-right: 15px;
}

.footer {
    border-top: 1px solid #DDD !important;
    height: 40px;
    padding: 15px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

textarea {
    resize: none;
}

.message {
    font-size: 2rem;
    color: cadetblue;
}

.message-item {
    color: firebrick;
    font-size: 2rem;
    font-weight: bold;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

.container {
    width: 100%;
}

.data-block {
    display: flex;
    flex-direction: column;
    max-width: 960px;
}

.table-container {
    min-width: 800px;
    overflow: auto;
    max-height: 400px;
}

.sortable, .sortable:hover, .sortable:active, .sortable:visited {
    color: #000;
    display: block;
    text-decoration: none;
}

.inventory p {
    display: inline-block;
}

.sortable-in {
    display: grid;
    grid-template-columns: 85% 15%;
}

    .sortable-in .glyphicon {
        font-size: 17px;
        text-align: right;
        opacity: 0.5;
    }

    .sortable-in .inactive {
        opacity: 0.2;
    }
/*--------- Product & Simulation --------*/
.axis-table-scroll {
    overflow: hidden;
    width: 100%;
}

    .axis-table-scroll table {
        table-layout: fixed;
        display: block;
        width: 100%;
        margin-bottom: 0;
        border-collapse: collapse;
        overflow-x: scroll;
    }

        .axis-table-scroll table > thead, .axis-table-scroll table > tbody {
            display: block;
        }

        .axis-table-scroll table thead {
            border-bottom: 1px #000 solid;
            border-top: 1px #DDD solid;
            background-color: #4472C4;
        }

            .axis-table-scroll table thead th {
                color: #f8f8f8;
                border-bottom: 1px rgba(255, 255, 255, 0.1) solid;
            }

        .axis-table-scroll table tbody {
            overflow-y: scroll;
            overflow-x: hidden;
            max-height: 400px;
        }


.y-table-legend table th,
.pp-table-data table th, .sp-table-data table th {
    height: 60px;
    border-left: 1px #DDD solid;
}

.y-table-legend table td,
.pp-table-data table td, .sp-table-data table td {
    height: 70px;
    text-align: left;
    border-left: 1px #DDD solid;
}

.y-table-legend table td, .y-table-legend table th {
    min-width: 130px;
}

.pp-table-data table td, .pp-table-data table th {
    min-width: 120px;
}

.sp-table-data table td, .sp-table-data table th {
    min-width: 155px;
}

.table-legend {
    box-shadow: 8px 0 8px -8px rgba(0, 0, 0, 0.2);
}

.table-data {
    background: #FEFEFE;
    color: #555;
}

.y-table-legend {
    width: 450px;
    position: absolute;
}

    .y-table-legend th, .y-table-legend td {
        text-align: left;
    }

.pp-table-data, .sp-table-data {
    width: calc(100% - $legend-width);
    margin-left: 450px;
}

/*--------------------- Arrival Table --------------------------*/

.arrival-table-scroll {
    overflow: hidden;
    width: 100%;
}

    .arrival-table-scroll table {
        table-layout: fixed;
        display: block;
        width: 100%;
        margin-bottom: 0;
        border-collapse: collapse;
        overflow-x: scroll;
    }

        .arrival-table-scroll table > thead, .arrival-table-scroll table > tbody {
            display: block;
        }

        .arrival-table-scroll table thead {
            border-top: 1px #DDD solid;
            border-bottom: 1px #000 solid;
        }

            .arrival-table-scroll table thead th {
                color: #000;
                border-bottom: 1px;
            }

        .arrival-table-scroll table tbody {
            overflow-y: scroll;
            overflow-x: hidden;
            max-height: 400px;
        }

.arrival-table-legend table td, .arrival-table-legend table th {
    min-width: 150px;
    text-align: left;
    border: 1px #DDD solid;
}

.arrival-table-data table td, .arrival-table-data table th {
    text-align: center;
    border: 1px #DDD solid;
}

.need {
    min-width: 100px;
    max-width: 100px;
}

.arrival-table-legend {
    width: 450px;
    position: absolute;
}

.arrival-table-data {
    width: calc(100% - $legend-width);
    margin-left: 450px;
}

    .arrival-table-legend tbody tr, .arrival-table-data tbody tr {
        height: 80px;
    }


/*------------ Intermediate Table -----------------------*/
.y-table-legend-main table td, .y-table-legend-main table th,
.axis-table-data-main table td, .axis-table-data-main table th {
    min-width: 120px;
    /*padding: 8px;*/
    text-align: center;
    border: 1px #DDD solid;
}

.y-table-legend-main table th, .axis-table-data-main table th {
    height: 60px;
}

.y-table-legend-main {
    width: 122px;
    position: absolute;
}

    .y-table-legend-main th, .y-table-legend-main td {
        text-align: left;
    }

.axis-table-data-main {
    width: calc(100% - $legend-width);
    margin-left: 122px;
}

/*---------------------------------------------------------------------*/

.priority {
    width: 80px !important;
    text-align: center !important;
    min-width: 80px !important;
    max-width: 80px !important;
}

.sim-tbody p {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.invisible {
    display: none;
}

.editable:hover {
    cursor: pointer;
}

.headers {
    height: 40px;
}

.subheader {
    height: 25px;
}

.pb {
    position: absolute;
    top: 300px;
    left: 50px;
    height: 50px;
    background-color: #00e444;
}

.mv {
    font-size: 50px;
    color: white;
    text-align: center;
    background-color: #00944f;
}

.er {
    font-size: 50px;
    color: white;
    text-align: center;
    background-color: #c40808;
}

#loader {
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    z-index: 1000;
    width: 80px;
    height: 80px;
    margin: -75px 0 0 -75px;
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    background-color: transparent;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.axis-table-scroll input[type="number"] {
    border: 1px solid #ccc;
    width: 100px;
    max-width: 150px;
}

.pointer {
    cursor: pointer;
}

.sim-ed {
    display: inline-block !important;
}

.ok {
    background-color: #C6EFCE;
    color: #006100;
}

.futureok {
    background-color: #FFEB9C;
    color: #9C5700;
}

.notok {
    background-color: #FFC7CE;
    color: #9C0006;
}

.prod-info {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
}

.loading-wait {
    cursor: wait;
}


@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }

    .btn-sheli {
        display: block;
    }
}

@media screen and (min-width: 992px) {
    /*.btn-show {
        position: relative;
        top: 25px;
    }*/

    .btn-sheli {
        display: inline-block;
    }
}

@media screen and (min-width: 1200px) {
    .container {
        width: 97% !important;
    }
}

/* The class that exists in the initial state */
.modal-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.73);
    display: flex;
    justify-content: center;
    /* Opacity to zero*/
    opacity: 0;
    /* Cannot interact with the modal elements*/
    pointer-events: none;
}

.modal-box {
    align-self: center;
    height: 60%;
    width: 60%;
    /*background-color: white;*/
    display: flex;
    flex-direction: column;
}

.title-modal {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
}

    .title-modal h3 {
        padding: 0;
        margin-top: -15px;
        font-weight: 400;
    }

.levels-modal {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 60%;
    color: #fff;
    margin-top: 30px;
}

    .levels-modal span {
        background-color: #263c62;
        height: 64%;
        width: 18%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 20px 10px 20px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

        .levels-modal span:hover {
            background: #fff;
            color: #263c62;
            border: 1px solid #263c62;
        }

    .levels-modal img {
        height: 30%;
        width: 50%;
        margin: 0;
        padding-top: 15px;
    }

.continue-btn {
    display: flex;
    justify-content: center;
    align-self: center;
    width: 22%;
    height: 10%;
    margin-bottom: 20px;
}

    .continue-btn a {
        width: 100%;
        padding: 15px 20px 15px 20px;
        margin: 0;
        border: none;
        background-color: #3dcb35;
        color: #fff;
        text-decoration: none;
        text-align: center;
        align-self: center;
        transition: all 0.2s ease-out;
        font-size: 1.3em;
    }

        .continue-btn a:hover {
            background-color: #fff;
            color: #3dcb35;
            border: 1px solid #3dcb35;
        }

/* The class that triggers when the link is clicked */
.modal-open {
    display: block;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
    z-index: 999;
    /* Can interact with the modal elements*/
    pointer-events: all;
}

.sub-table {
    overflow-y: auto;
}

    .sub-table > thead {
        font-weight: bold;
        background-color: white;
        position: sticky;
        top: 0;
        z-index: 1;
    }

.app-loginform {
    margin-top: 100px;
    padding: 15px;
    background-color: #d9d9d9;
    max-width: 500px;
    border-radius: 28px;
}

    .app-loginform h1 {
        font-weight: bolder;
    }

.product-planning pp-left > thead {
    background-color: #4472C4;
    color: #ffffff;
}
