/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 24.11.2021, 11:40:29
    Author     : Администратор
*/

.printProduction{
    top:0;
    left:0;
    margin: 0;
    padding: 0;
    display:inline-block;
    border: red 0 solid;
    overflow:hidden;
    position: relative;

    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: white;
    color: black;
    margin-bottom: 0.13mm;
}

@media print{
    .printProduction{
        display: block!important;
    }
    *{
        float: none !important;
    }
}

.printProduction:not(:last-child){
    page-break-after: always;
}
#previewdivcontainer{
    position: absolute;
    transform: scale(0.7);
    transform-origin: left top;
    top:0;
    left: 740px;
    float:left;
    margin-top: 101px;
}
#previewdiv{
    position: absolute;
    top:0;
    left:0;
    border: 1px white solid;
    margin-top:0mm;
    overflow: hidden;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: white;
    color: black;
}
.preview{
    border: lightgrey solid 1px;
    position:absolute;
    float:left;
    cursor: grab;
    user-select: none;
    user-drag: none;
    overflow: hidden;
}

*{
    user-drag: none!important;
}

.production{
    position:absolute;
    overflow: hidden;
}

.preview[align="CENTER"], .production[align="CENTER"]{
    transform: translateX(-50%);
}

.preview[align="RIGHT"], .production[align="RIGHT"]{
    transform: translateX(-100%);
}

.preview img, .production img{
    width: 100%!important;
    height: 100%!important;
    object-fit: contain;
    margin-left: 0!important;
    pointer-events: none;
}

.editdiv{
    width: 600px;
    max-width: 700px;
}

.editdiv table{
    width: 100%;
}

.formtable input, .formtable textarea, .formtable select{
    width: 500px !important;
}

.formtable textarea{
    height: 300px;
}

.preview-photo-cover{
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}

.preview-photo-contain{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.preview .resize{
    position: absolute;
    display: inline-block;
    left: 6px;
    right: 6px;
    top: 6px;
    bottom: 6px;
    border-radius: 1px;
}

.preview .resize:hover{
    background-color: red;
    transition: 0.4s;
}
.preview .resize[dh="1"]{
    height: 6px;
    bottom: 0px;
    top: auto;
    cursor: row-resize;
}

.preview .resize[dw="1"]{
    width: 6px;
    right: 0px;
    left: auto;
    cursor: col-resize;
}

.preview .resize[dh="1"][dw="1"],
.preview .resize[dh="-1"][dw="-1"]
{
    cursor: se-resize;
}

.preview .resize[dh="-1"][dw="1"],
.preview .resize[dh="1"][dw="-1"]
{
    cursor: ne-resize;
}

.preview .resize[dh="-1"]{
    height: 6px;
    bottom: auto;
    top: 0;
    cursor: row-resize;
}

.preview .resize[dw="-1"]{
    width: 6px;
    right: auto;
    left: 0;
    cursor: col-resize;
}

.roleDiv{
    width: 50%;
}

.roleDiv input.roleCheck{
    width: 20px !important;
}


#ampel{
    width: 100mm;
    aspect-ratio: 10;
    text-align: center;
}

#ampel .ampelRing{
    width: 8mm;
    height: 8mm;
    margin: 1mm;
    background-color: red;
    display: inline-block;
    border-radius: 10mm;
    color: white;
    position: relative;
}

#ampel .ampelRing::before{
    content: attr(ring);
    font-size: 7mm;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}