.wrapper {
    display: flex;
    flex-flow: column;
}

input.hoyden,
input.breddet {
    width: 50px;
}

h2 {
    font-size: 24px;
    text-align: center;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    @media only screen and (max-width: 768px) {
        grid-template-columns: 1fr;

    }

    input {
        width: 80%;
        font-size: 24px;
    }

    @media print {
        margin-bottom: 5px;
        grid-template-columns: 3fr 1fr;
    }
}

@media print {
    /* Приховуємо елементи з класом .no-print під час друку */
    .no-print {
        display: none !important;
    }
}

.row {
    display: flex;
}

.data label.col {
    display: flex;

}

.col {
    display: flex;
    flex-flow: column;
}

.sb {
    width: 100%;
    justify-content: space-between;
}

.fe {
    align-items: flex-end;
}

.labelSkine {
    border-radius: 2px;
    margin-right: 50px;
    color: silver;
    cursor: pointer;

    input {
        border: 1px solid silver;

    }
}

.labelSkine_active {
    border: 1px solid green;
    color: green;

    input {
        border: 1px solid green;

    }


}

.print_btn {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 30px;
    cursor: pointer;
    @media only screen and (max-width: 1024px) {
        padding: 10px;
    }

    svg {
        width: 30px;
    }
}

.result_wrapper {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    width: 100%;
    justify-content: space-between;
    @media screen and (max-width: 768px) {
        flex-flow: column;
        grid-template-columns: repeat(1, 100%);

    }
}

.dataImg_wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 50px;
    padding: 10px 0;
    border-bottom: 5px solid black;
    border-top: 5px solid black;
    @media screen and (max-width: 1024px) {
        overflow: scroll;
        max-width: 800px;
        padding: 10px;

    }
}

.dataImg_wrapper__skuff {
    @media screen and (max-width: 1024px) {
        .tegImg {
            display: none;

        }
    }
}


.rectangle {
    margin-top: 30px;
    width: 200px;
    height: 200px;
    min-height: auto;
    min-width: 100px;
    max-width: 100% !important;
    border: 2px solid black;
    position: relative;
    box-sizing: border-box;
}

.fasade_flash {
    border: 2px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.rectangle_fasaden {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .fasade {
        display: flex;
        position: relative;

        &:first-child {
            .venstre, .hoyre, .top, .bottom {

                &:after {
                    content: attr(data-content);
                    position: absolute;
                    font-size: 11px;
                    writing-mode: horizontal-tb;
                }
            }

            .venstre, .hoyre {
                &:after {
                    left: 1px;
                    top: 0;
                }
            }

            .top, .bottom {
                &:after {
                    left: 16px;
                    top: 0;
                }
            }
        }
    }

    .midt {
        display: flex;
        justify-content: center;
        align-items: center;
        width: calc(100% - 20px - 20px);
        height: calc(100% - 20px - 20px);
        position: absolute;
        top: 50%;
        border: 1px dashed black;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.result {
    border-top: 1px solid black;
    border-bottom: 1px solid black;

}

.ven_h, .t_n {
    box-sizing: border-box;
    border: 1px solid black;
    position: absolute;
    text-align: center;

}

.ven_h {
    width: 27px;
    height: 100%;
    top: 0;
    writing-mode: vertical-rl; /* Писати вертикально, знизу вгору */
    text-orientation: mixed;

    &.hoyre {
        right: 0;
    }

    &.venstre {
        left: 0;

    }


}

.t_n {
    height: 27px;
    width: calc(100% - 27px - 27px);
    left: 27px;

    &.top {
        top: 0;
    }

    &.bottom {
        bottom: 0;
    }
}

/* Стилі для міток */
.dimension-label {
    position: absolute;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

#widthLabel {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: red;
    width: 100%;
    text-align: center;
}

#heightLabel {
    top: 50%;
    right: -76px;
    transform: translateY(-50%) rotate(-90deg);
    color: blue;

}

/* Стрілки для ширини */
.arrow-horizontal {
    position: absolute;
    height: 1px;
    background-color: red;
    top: 18px;
}

.arrow-left {
    width: 50%;
    left: 0;
}

.arrow-right {
    width: 50%;
    right: 0;
}

.btn_calc {
    background: green;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 137px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    padding: 20px;
    width: auto !important;

    svg {
        width: 30px;
        fill: white;
    }

    span {
        display: block;
    }


}

table {
    font-size: 24px;
}

/* Стрілки для висоти */
.arrow-vertical {
    position: absolute;
    width: 1px;
    background-color: blue;
    right: -15px;
}

.arrow-up {
    height: 50%;
    top: 32px;
}

.arrow-down {
    height: 50%;
    bottom: 0;
}

/* Кінчики стрілок */
.arrow-tip {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Лівий кінчик стрілки */
.arrow-left-tip {
    top: 14px;
    left: 0;
    border-width: 5px 10px 5px 0;
    border-color: transparent red transparent transparent;
}

/* Правий кінчик стрілки */
.arrow-right-tip {
    right: 0;
    top: 14px;
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent red;
}

/* Верхній кінчик стрілки */
.arrow-up-tip {
    right: -19px;
    bottom: 0;
    border-width: 10px 5px 0 5px;
    border-color: blue transparent transparent transparent;
}

/* Нижній кінчик стрілки */
.arrow-down-tip {
    right: -19px;
    top: 29px;
    border-width: 0 5px 10px 5px;
    border-color: transparent transparent blue transparent;
}


.data {
    max-width: 100%;
}

.dataInfo {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    padding-bottom: 10px;

    & > div:first-child {
        @media only screen and (max-width: 768px) {
            align-items: flex-start;
            flex-flow: column;
        }
    }
}

.dataImg {
    max-width: 100%;
    position: relative;
}

.dataImg img {
    width: 100%;
    height: auto;
}

.data label {
    display: block;
    margin: 5px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ccc; // Загальна рамка таблиці
}

table thead {
    background-color: #007BFF;
    color: white;
    text-transform: uppercase;
}

table thead th {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #ccc; // Лінії для заголовка
}

table tbody tr {
    transition: background 0.2s ease;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

table td {
    text-align: left;
    border: 1px solid #ccc;
}

table th:first-child,
table td:first-child {
    border-left: 1px solid #ccc;
}

table th:last-child,
table td:last-child {
    border-right: 1px solid #ccc;
}


.lineTable {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    width: 100%;
}

.lineTable {
    span {
        text-align: center;
    }

}

.border {
    border: 1px solid #000;
    flex: 1;
}

.btn {
    width: 100px;
    height: 50px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.drawing {
    margin-top: 50px;
    border: 1px solid #000;
    width: 300px;
    position: relative;
}

.line {
    position: absolute;
    width: 100%;
    border-top: 1px dashed silver;
    text-align: right;
    height: 0;
}

.line span {
    position: absolute;
    right: -70px;
}

.line:before {
    content: "";
    position: absolute;
    right: -10%;
    width: 20px;
    height: 1px;
    bottom: 0;
    border-bottom: 1px solid #000;
}

.box {
    position: absolute;
    width: 100%;
    border: 1px dashed red;
    text-align: right;
    box-sizing: border-box;
}

.line span {
    background-color: white;
    padding: 0 5px;
}

.drawingBunn {
    text-align: center;
    position: absolute;
    width: calc(100% + 2px);
    border: 1px solid #000;
    height: 0;
    bottom: 0;
    box-sizing: border-box;
    left: -1px;
}

.drawingBunn:before {
    content: "";
    position: absolute;
    right: -10%;
    width: 20px;
    height: 1px;
    bottom: 0;
    border-bottom: 1px solid #000;
}

.beregn_fasaden {
}

.column {
    display: flex;
    flex-direction: column;
}

.tegImgSpan {
    position: absolute;
    transform: rotate(270deg);
    left: -47%;
    top: 60px;
    background-color: #fff;
    width: 100%;
    text-align: center;
    font-size: 12px;

    &:nth-child(2) {
        left: -30%;
    }
}

.tefImgtext {
    position: relative;
    z-index: 999;
}

.tegImg {
    position: relative;
    width: 50%;
    overflow: hidden;

    img {
        width: 100%;
        height: auto;
    }
}

.count_skuf {
    display: none;

}

.count_skuf__active {
    display: block;
}

.cutListFront {
    font-size: 24px;

    table {
        width: 300px;
    }
}

.secial_skuff {
    width: 50%;
    position: relative;

    .vasket_img {
    }

    img {
        width: 100%;
    }
}

.secial_a {
    position: absolute;
    left: 17%;
}

.secial_a2 {
    right: 17%;
    position: absolute;
}

.secial_b {
    left: 23%;
    top: 30%;
    position: absolute;
    transform: rotate(-90deg)
}

.secial_b2 {
    right: 23%;
    top: 30%;
    position: absolute;
    transform: rotate(-90deg)
}

.secial_c {
    bottom: 33%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

#breddeFasadContainer {
    transition: all 0.3s ease;
}

.print_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.print_btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.2s ease;
}

.print_btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.print_btn:hover svg {
    transform: scale(1.1);
}

@media print {
    .no-print {
        display: none !important;
    }
}
