/*Display the Modal from here and hide it in the jQuery in order to show it in the right way to the customer.*/
.modal{
    display: block;
}
#controls{
    width: 500px;
    float: left;
}
.paperWrapper{
    width: 382px;
    background: #FFF;
    position: relative;
    display: block;
    float: left;
    z-index: 9999999;
    top: 30px;
}
.paperWidth{
    width: 100%;
    height: 35px;
    position: absolute;
    text-align: center;
    background: #FFF;
}
.paperHeight{
    height: 632px;
    float: left;
    position: absolute;
    padding-top: 316px;
    box-sizing: border-box;
    background: #FFF;
}
.paperHeight span{
    display: block;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
#cutting-wrapper , #perforating-wrapper , #scoring-wrapper{
    margin: 20px 0px 0px 20px;
    border: 1px solid green;
    position: relative;
    width: 342px;
    height: 632px;
    display: none;
}
.viewer{
    background: #FFF;
    width: 500px;
    height: 924px;
    margin:0 auto;
    position: relative;
}
#TextIndex{
    background: #FFF;
    font-size: 12px;
    padding: 10px;
    text-align: center;
    display: none;
}
#overlay {
    z-index: 1000;
    background: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    position: absolute;
    display: none;
    overflow: hidden;
}

#cutting-wrapper.active , #perforating-wrapper.active , #scoring-wrapper.active ,  #viewer.active, #overlay.active , #TextIndex.active{
    display: block;
}

.removeLine{
    color: #F00;
    background: none;
    border: none;
    font-style: italic;
    font-weight: bolder;
    cursor: pointer;
}

#message li:hover{
    background: #eee;
    cursor: pointer;
}
#DisplayAll , .dividePaper{
    z-index: 3333333;
    background: #28cc63;
    padding: 5px 10px;
    color: #03511f;
    margin-bottom: 20px;
    border: none;
    outline: none;
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .2);
    cursor: pointer;
}
#DisplayAll:active, .dividePaper:active{
    background: #01280f;
    color: #01a03a;
}
#removeAll{
    background: #ff8080;
    padding: 5px 10px;
    color: #660000;
    margin-bottom: 20px;
    border: none;
    outline: none;
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .2);
}

.tab-header{
    color: #3d3d3d;
    display: inline-block;
    padding: 10px;
    list-style: none;
}
.tab-header.active{
    color: #FEFEFE;
    background: #3d3d3d;
}
.tab-pane{
    display: none;
}
.tab-pane.active{
    display: block;
}
.errors{
    margin-top: 20px;
    background: #ff8080;
    padding: 5px 10px;
    color: #660000;
    margin-bottom: 20px;
    border: none;
    outline: none;
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .2);
    display: none;
}
.hidden{
    display: none;
}
.active{
    display: inline-block;
}


.customCuttingLine hr{
    border-top: 2px solid black;
}

.perforatingLine hr{
    border-top: 5px dotted #000;
}

.scoringLine hr{
    border-top: 2px solid #d2d2d2;

}

.currentSettingsContainer tr:hover .fa-check-square-o{
    display: none;
}

.no-hover:hover{
    color:#40886a !important;
    background: #FFF;
    cursor: auto;
}

/*Recolor the rulers depending on their container div*/
#cuttingTabPanel .rul_line{
    border-bottom: 2px solid #000;
    border-left: 2px solid #000;
}
#perforatingTabPanel .rul_line{
    border-bottom: 5px dotted #000;
    border-left: 5px dotted #000;
}
#scoringTabPanel .rul_line{
    border-bottom: 2px solid #d2d2d2;
    border-left: 2px solid #d2d2d2;
}

/** Recolor the Div with lines from other divs */
.rul_line.extra_rul_ruler.cuttingColor{
    border-bottom:2px solid black !important;
    border-left:2px solid black !important;
}

.rul_line.extra_rul_ruler.perforatingColor{
    border-bottom:5px dotted black !important;
    border-left:5px dotted black !important;
}

.rul_line.extra_rul_ruler.scoringColor{
    border-bottom:2px solid #d2d2d2 !important;
    border-left:2px solid #d2d2d2 !important;
}