#target {
    position: relative;
    margin: 0 auto;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000000;
}
.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    box-sizing: border-box;
    color: white;
    font-size: 12px;
    transform: translate(-50%, -50%);
}

#target .circle span {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
}

#target .circle span:nth-child(2) {
    position: absolute;
    top: 50%;
    left: auto;
    right: 5px;
    bottom: auto;
    transform: translateY(-50%);
}

#target .circle span:nth-child(3) {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
}

#target .circle span:nth-child(4) {
    position: absolute;
    top: 50%;
    bottom: auto;
    left: 5px;
    right: auto;
    transform: translateY(-50%);
}

#target .circle:last-child span + span {
    display: none;
}

#target .circle:last-child span {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

#target.show-lines .circle span {
    transform: translateX(5px);
}

#target.show-lines .circle span:nth-child(2),
#target.show-lines .circle span:nth-child(4) {
    transform: translateY(5px);
}

/* #target.show-lines .circle span {
    position: absolute;
    top: 50%;
    padding: 2px 10px 0 0;
    right: 0;
    display: block;
} */

#target.show-lines .circle:last-child span {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 2px 0 0 4px;
    display: block;
}
#target.show-lines .circle:before,
#target.show-lines .circle:after {
    width: 2px;
    top: -2mm;
    bottom: -2mm;
    background: #dadada;
    content: "";
    position: absolute;
    transform: translateX(-1px);
    left: 50%;
}
#target.show-lines .circle:after {
    transform: translateX(-1px) rotate(90deg);
}
#canvasContainer {
    position: relative;
    border: 1px dashed #ccc;
    margin: 20px;
}

#canvasContainer.with-image #target {
    opacity: 50%;
}
.dot {
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    border: 1mm solid red;
    box-sizing: border-box;
    z-index: 1000000000;
}
.html2pdf__overlay {
    pointer-events: none !important;
}
.target-marker {
    width: 90px;
    height: 90px;
    background: black;
    position: absolute;
    margin: 0mm;
}

.target-marker:nth-child(5),
.target-marker:nth-child(6) {
    transform: translateY(-50%);
    width: 0.5mm;
    height: 5mm;
}

.target-marker:nth-child(7),
.target-marker:nth-child(8) {
    transform: translateX(-50%);
    height: 0.5mm;
    width: 5mm;
}
#image-canvas {
    width: 210mm;
    height: 297mm;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.canvas-controller {
    position: fixed;
    border: 2px solid rgba(218, 183, 240, 0.475);
    z-index: 10000000;
    display: none;
}

#canvasContainer.with-image .canvas-controller {
    display: block;
}

.canvas-controller .canvas-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #a250dc;
    cursor: nw-resize;
    border-radius: 100%;
    transform: translateX(50%) translateY(50%);
}

.canvas-controller .canvas-move {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #a250dc;
    cursor: move;
    border-radius: 100%;
    transform: translateX(-50%) translateY(-50%);
}

.size-strip {
    position: absolute;
    bottom: 10mm;
    border: 1px solid black;
    height: 2mm;
}

.size-strip-item {
    height: 2mm;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    position: absolute;
    border: 1px solid;
    border-top: none;
    border-bottom: none;
}

.size-strip-item:before {
    position: absolute;
    top: 100%;
    border: 1px solid #dadada;
    width: 100%;
    height: var(--line-height);
    content: "";
    border-top: none;
}

.size-strip-item:after {
    position: absolute;
    bottom: calc(100% + 1mm);
    right: 0;
    transform: rotate(-90deg) translate(100%, 100%);
    content: attr(data-size);
    font-size: 8px;
    white-space: nowrap;
    color: black;
    transform-origin: bottom right;
}


.tabulkos {
    position: absolute;
    top: 30mm;
    border: 1px solid black;
    height: 5mm;
    display: flex;
}

.tabulkos-item {
    height: 5mm;
    border: 1px solid;
    border-top: none;
    border-bottom: none;
}
.tabulkos-item span{
    color: black;
}

.target-logo {
    height: 17mm;
    position: absolute;
    top: 7mm;
    right: 15mm;
    display: block;
}

.target-marker-container {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.target-name {
    position: absolute;
    top: 7mm;
    left: 15mm;
    color: black;
    font-weight: bold;
    font-size: 18spx;
}

.target-nick {
    position: absolute;
    top: 12mm;
    left: 15mm;
    color: black;
    font-weight: normal;
    font-size: 14px;
}
.target-date {
    position: absolute;
    top: 17mm;
    left: 15mm;
    color: black;
    font-weight: normal;
    font-size: 10px;
}
