:root{
    --maincolor: #afb9c0;
    --maincolorLight: #ddd;
    --maincolorSuperLight: rgba(221, 221, 221, 0.6);
    --maincolorStrong: #5e676d;
}
html, body{
    height: 100%;
}
body{
    display: flex;
    flex-direction: column;
}
.navbar-collapse{
    max-height: 82vh!important;
}
.alert-default{
    background-color: #f1f1f1;
    border:1px solid #ccc;
}
a {
    color: black;
    text-decoration: none;
}
a:hover{
    color:var(--maincolorStrong);
}
.wrapper {
    flex: 1 0 auto;
}
.menuhome li{
    padding:8px;
    border-bottom:1px solid #dadada;
    margin:8px 0;
}
.menuhome li a{
    color:#666;
    font-size:20px;
}

.jumbotron h1{
    text-shadow: 2px 2px 1px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
}

.jumbotron.jumboBig{
    padding-top: 70px;
    padding-bottom: 70px;
}
.tdprezzo{
    text-align:center;
    white-space: nowrap;
}

.fixvallista{
    position:fixed;
    bottom:30px;
    right:20px;
    background-image: linear-gradient(to bottom, #5cb85c 0px, #419641 100%);
    border-color: #3e8f3e;
    background-repeat: repeat-x;
    border-radius:5px;
    border:2px solid #fff;
    padding:15px;
    color:#fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    max-width: 220px;
}

.selezionata td{
    background-color: rgba(255, 78, 9, 0.16)!important;
}

#tabprodinlista tbody td{
    line-height: 36px;
}

.jumbotron{
    background-color: var(--maincolor) !important;
    color:#fff;
    /*background-image: url("../img/bg-top.png");
    background-position: right bottom;
    background-size: auto 100%;
    background-repeat: no-repeat;*/
    position: relative;
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
}
.jumbotron::after{
    position: absolute;
    display: block;
    top:0;
    right: 0;
    height: 100%;
    width: 100%;
    content:'';
    opacity: 0.4;
    background-image: url("../img/bg-top.png");
    background-position: right bottom;
    background-size: auto 120%;
    background-repeat: no-repeat;
}


.jumbotron small{
    color:rgba(255,255,255,1);
}

.navbar-brand strong{
    font-size: 120%;
    color:#fff;
}

.btnDashboard{
    display: block;
    background-color: var(--maincolorLight);
    border: 3px solid var(--maincolorLight);
    border-radius: 10px;
    text-align: center;
    position: relative;
    margin:20px 0;
}
.btnDashboard:hover{
    text-decoration: none;
    background-color: var(--maincolorSuperLight);
    border-color:var(--maincolorStrong);
}
.btnDashboard h2 i{
    text-shadow: 0 0 5px #fff, 0 0 2px #fff, 0 0 2px #fff, 0 0 1px #fff ;
}
.btnDashboard p{
    font-size: 18px;
    line-height: 22px;
    position:relative;
}
.m40btn {
    display: block;
    transition: all 0.3s ease-in-out;
    border-radius: 0;
    overflow: hidden;
    border:4px solid rgba(255,255,255,0.7);
}
.m40btn img{
    position: relative;
    z-index: -2;
}
.m40btn:hover{
    border-radius: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3), inset 0 0 50px rgba(91, 143, 212, 1);

}

.labelTitle{
    position:relative;
    z-index:1;
    margin:30px 0;
}
.labelTitle:before{
    content:'';
    position:absolute;
    width:100%;
    top:49%;
    border-top:1px solid #999;
    left:0;
    z-index: 2;
}
.labelTitle span{
    position:relative;
    background-color: #fff;
    z-index:3;
    padding: 0 15px;
}

label{
    margin-top:20px;
}
.barcode{
    font-family: Code39AzaleaFont;
    font-size:120%;
}
.barcode a{
    color: #000000!important;
    font-size:150%;
}

.barcode h1{
    font-size:76px;
}

.boxsubmit{
    margin:35px 0 200px;
}

.linkdash{
    color:#fff;
    font-size: 55px;
}
.linkdash:hover{
    color:#fff;
    text-decoration: underline;
}
.jumbotron small{
    font-size: 35px;
    margin-left: 20px;
}
.bs-wizard {margin-top: 40px;}

.boxSteps ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.boxSteps li {
    counter-increment: item;
}

.itemStazioneProcesso{
    padding: 10px;
    margin: 10px 0 10px 10px;
    position: relative;
    text-align: left;

}

.segnaStato span{
    font-weight: bold;
    text-transform: uppercase;
    padding: 6px;
    margin-bottom:-18px;
    border:1px solid rgba(0,0,0,0.2);
    border-radius: 5px;
}

/*Form Wizard*/
.bs-wizard {border-bottom: solid 1px #e0e0e0; padding: 0 0 10px 0;}
.bs-wizard > .bs-wizard-step {padding: 0; position: relative;}
.bs-wizard > .bs-wizard-step + .bs-wizard-step {}
.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {color: #595959; font-size: 16px; margin-bottom: 5px;}
.bs-wizard > .bs-wizard-step .bs-wizard-info {color: #999; font-size: 14px;}
.bs-wizard > .bs-wizard-step > .bs-wizard-dot {position: absolute; width: 30px; height: 30px; display: block; background: var(--maincolorLight); top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%;}
.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {content: ' '; width: 14px; height: 14px; background: var(--maincolor); border-radius: 50px; position: absolute; top: 8px; left: 8px; }
.bs-wizard > .bs-wizard-step > .progress {position: relative; border-radius: 0px; height: 8px; box-shadow: none; margin: 20px 0;}
.bs-wizard > .bs-wizard-step > .progress > .progress-bar {width:0px; box-shadow: none; background: var(--maincolorLight);}
.bs-wizard > .bs-wizard-step.complete > .progress > .progress-bar {width:100%;}
.bs-wizard > .bs-wizard-step.active > .progress > .progress-bar {width:50%;}
.bs-wizard > .bs-wizard-step:first-child.active > .progress > .progress-bar {width:0%;}
.bs-wizard > .bs-wizard-step:last-child.active > .progress > .progress-bar {width: 100%;}
.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot {background-color: #f5f5f5;}
.bs-wizard > .bs-wizard-step.disabled > .bs-wizard-dot:after {opacity: 0;}
.bs-wizard > .bs-wizard-step:first-child  > .progress {left: 50%; width: 50%;}
.bs-wizard > .bs-wizard-step:last-child  > .progress {width: 50%;}
.bs-wizard > .bs-wizard-step.disabled a.bs-wizard-dot{ pointer-events: none; }
.bs-wizard .progress-bar{
    -webkit-transition: none;
    transition: none;
}


.table.table-striped td{
    white-space: nowrap;
}


#sortable1, #sortable2{
    min-height: 60px;
    width: 100%;
    background-color: #fcfafa;
    border: 1px solid #dadada;
    padding: 8px;
}
.connectedSortable li{
    list-style: none;
    padding:4px;
    margin:4px 0;
    cursor: move!important;
}
#sortable2{
    background-color: #dff8d9;
    border: 1px solid #84e341;
}

#sortable2 .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border: 1px solid #d3d3d3;
    background-color: #a1e4a0;
    font-weight: normal;
    color: #555555;
}

.quantita{
    height: 60px;
    font-size: 24px;
    line-height: 60px;
    max-width: 130px;
    text-align: center;
    margin: 10px auto;
}

.table-centered th, .table-centered td{
    text-align: center;
}
.dettricetta{
    border: 1px solid #ddd;
    text-transform: capitalize;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    padding:20px;
}
.dettricetta h4, .dettricetta h2{
    text-align: center;
    margin-bottom: 15px;
}
.dettricetta strong{
    text-transform: uppercase;
}
.dettricetta strong span{
    text-transform: none;
}


footer{
    /*position: absolute;
    bottom:0;
    width: 100%;
    background-color: #fff;
    padding:20px;*/
    background-color: #fff;
    margin-top:40px;
    flex-shrink: 0;

}


.mygrid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.mygrid div {
    flex-grow: 0;
    flex-basis: 20%;
    padding: 11px;
    position: relative;
    z-index: 1;
}

.mygrid div a img{
    transition: all 0.2s ease-in-out;
    border-radius: 24%;
    overflow: hidden;
    border: 3px solid var(--maincolor);
    padding: 0;
    background-color: #f3f2f2;
}

.mygrid div a:hover img{
    filter: contrast(122.8%) hue-rotate(300deg);
    border-color:var(--maincolorStrong);
}


.mygridselect {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.mygridselect div {
    flex-grow: 0;
    flex-basis: 12%;
    padding: 11px;
    position: relative;
    z-index: 1;
}
.mygridselect div label input[type=checkbox]{
    display: none;
}
.mygridselect div label{
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.mygridselect div label:hover img{
    filter: brightness(110%);
}
.mygridselect div label.labelcheckbox::after{
    content:'\f10c';
    font-family: FontAwesome;
    font-size: 32px;
    color: var(--maincolor);
    position: absolute;
    right: -6px;
    top: 2px;
    z-index: 2;
    background-color: white;
    border-radius: 9px;
    padding: 0;
    line-height: 16px;
}
.mygridselect div label.labelcheckbox.selected::after{
    content:'\f058';
    color:green;
}


.mygridselect div label img{
    transition: all 0.2s ease-in-out;
    border-radius: 24%;
    overflow: hidden;
    border: 3px solid var(--maincolor);
    padding: 0;
}

.mygridselect div label.selected img{
    border-color:green;
}

.removeStazioneFromDrop{
    position: absolute;
    right: -11px;
    top: -2px;
    background-color: white;
    padding: 2px 6px;
    color: black;
    border-radius: 50%;
    border: 1px solid black;
    z-index: 4;
}

.stationLabel{
    position: absolute;
    padding: 10px;
    border-radius: 50%;
    top: 7px;
    right: 4px;
    z-index: 2;
    background-color: darkgreen;
}

.itemStazioneProcesso.success .segnaStato span, .itemStazioneProcesso.success::before{
    background-color:green;
    color:white;
}
.itemStazioneProcesso.warning .segnaStato span, .itemStazioneProcesso.warning::before{
    background-color:darkorange;
    color:white;
}
.itemStazioneProcesso.danger .segnaStato span, .itemStazioneProcesso.danger::before{
    background-color:darkred;
    color:white;
}
.itemStazioneProcesso.info .segnaStato span, .itemStazioneProcesso.info::before{
    background-color:cornflowerblue;
    color:white;
}

.itemstationart{
    position: relative;
    z-index: 1;
}
.handlemove{
    display: block;
    background-color: white;
    border-radius: 4px;
    border:1px solid grey;
    position: absolute;
    top: 123px;
    left: 8px;
    z-index: 3;
    padding: 2px;
}
.handlemove i{
    font-size: 23px;
    line-height: 23px;
}

.worktimeOK{
    background-color: #b8f0b8!important;
}
.worktimeKO{
    background-color: #f0b8b8!important;
}

.iconTargetTimeInProgress img{
    background-color: #f3f2f2!important;
    border-radius: 24%;
}
.iconTargetTimeOK img{
    /*filter: sepia(8.5%) hue-rotate(77deg) saturate(699%);*/
    background-color: #b8f0b8!important;
    border-radius: 24%;
}
.iconTargetTimeKO img{
    /*filter: sepia(16.5%) hue-rotate(-46deg) saturate(54) contrast(200%);*/
    background-color: #f0b8b8!important;
    border-radius: 24%;
}


@media (max-width: 900px) {
    #sortable1, #sortable2{
        width:85%!important;
        margin:0 auto;
    }
    .barcode h1{
        font-size:10vw;
    }
}


@media (min-width: 990px) {
    .boxSteps ol {
        padding-left: 50px;
    }
    .itemStazioneProcesso{
        margin: 20px 0 10px 60px;
    }
    .boxSteps li:before {
        margin-right: 10px;
        content: counter(item);
        background: #676767;
        border-radius: 100%;
        color: #fff;
        padding:10px 0;
        width:60px;
        font-size: 200%;
        text-align: center;
        display: inline-block;
        position: absolute;
        left:-100px;
        top:30px;
    }
    .segnaStato{
        /*text-align: right;
        margin-bottom: -35px;*/
    }
    .rowcentered{
        text-align: center;
    }
    .rowcentered div[class^='col-md-']{
        margin: 0 auto !important;
        float: none !important;
        display: inline-block !important;
    }
}



@media (min-width: 600px) {
    .campovallista {
        margin: 10px 20%;
    }
}


@media (max-width: 700px) {
    .mygrid div {
        flex-grow: 0;
        flex-basis: 30%;
    }
}
@media (max-width: 540px) {
    .mygrid div {
        flex-grow: 0;
        flex-basis: 50%;
    }
}
@media (max-width: 390px) {
    .mygrid div {
        flex-grow: 0;
        flex-basis: 100%;
    }
}