﻿@page {
    size: A4 portrait;
    margin: 7mm;
}

/*Shape*/
@media print {
                      
    .shape-meas .print-header {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 28mm !important;
        min-height: 28mm !important;
        overflow: hidden;
        background: #ffffff !important;
        color: #000 !important;
    }

        .shape-meas .print-header .header-logo {
            display: flex !important;
            justify-content: flex-end !important;
            margin-bottom: 2mm !important;
        }

    .shape-meas .print-logo {
        height: 14mm !important;
        max-height: 14mm !important;
        width: auto !important;
        object-fit: contain;
        filter: none !important;
        opacity: 1 !important;
    }

    .shape-meas .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        border-bottom: 2px solid #000000;
        background: #ffffff !important;
        color: #000 !important;
    }

    .shape-meas .print-header h6 {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.5;
        color: #000 !important;
    }

    .shape-meas .header-print-info {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100%;
        font-size: 0.8rem !important;
        color: #000 !important;
    }

        .shape-meas .header-print-info p {
            margin: 0 !important;
            padding: 0 !important;
            color: #000 !important;
        }

    .shape-meas .print-body {
        display: flex !important;
        flex-direction: column !important;
        height: calc(297mm - 10mm - 10mm - 28mm - 13mm - 1mm - 3mm) !important;
        min-height: calc(297mm - 10mm - 10mm - 28mm - 13mm - 1mm - 3mm) !important;
        width: 100%;
        margin: 1mm 0 0 0 !important;
        overflow: hidden !important;
        background: #ffffff !important;
        color: #000 !important;
        box-sizing: border-box !important;
    }

    .shape-meas .top-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        height: auto;
        min-height: unset;
        max-height: unset;
        overflow: visible;
        border: 1px solid #000;
        border-radius: 6px;
        box-sizing: border-box;
    }


        .shape-meas .top-container .top-item {
            padding: 0 1mm;
            box-sizing: border-box;
        }

    .shape-meas .top-footer-line {
        align-content: end;
        padding: 3px;
        grid-column: 1 / -1;
        font-size: 0.7rem;
    }

    .shape-meas .item-title {
        font-size: 0.8rem;
        font-weight: bold;
        font-style: italic;
        line-height: 1px;
    }

    .shape-meas .item-label .fst-normal {
        font-size: 0.7rem;
        font-weight: bold;
    }

    .shape-meas .item-container {
        display: grid;
        grid-template-columns: 20mm 1fr;
        column-gap: 2.5mm;
        row-gap: 1mm;
        width: 100%;
        line-height: 4.3mm;
    }

    .shape-meas .item-label {
        font-size: 0.7rem;
        white-space: normal;
        font-style: italic;
        line-height: 4.3mm;
    }

    .shape-meas .item-value {
        font-size: 0.7rem;
        word-break: break-word;
        line-height: 4.3mm;
    }

    .shape-meas .bottom-container {
        flex: 1 1 auto !important;
        width: calc(100% - 0.4mm) !important;
        display: flex !important;
        padding: 3mm 0;
        gap: 3mm;
        overflow: hidden !important;
        background: #ffffff !important;
        color: #000 !important;
        box-sizing: border-box !important;
    }

        .shape-meas .bottom-container .chart-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: stretch;
            flex: 1 1 auto !important;
            min-height: 0;
            box-sizing: border-box;
            overflow: hidden !important;
            background: #fff;
        }

    .shape-meas .bold-row {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .shape-meas .print-footer {
        height: 13mm !important;
        min-height: 13mm !important;
        width: 100%;
    }

        .shape-meas .print-footer .print-logo {
            height: 12mm !important;
            max-height: 12mm !important;
            width: auto !important;
            object-fit: contain;
        }

    .shape-meas .footer-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        height: 100%;
        border-top: 1px solid #000000;
    }
}

/*Roundness*/
@media print {

    .circular-meas .print-container {
        page-break-before: always !important;
        break-before: page !important;
        display: block !important;
    }

        .circular-meas .print-container:first-child {
            page-break-before: auto !important;
            break-before: auto !important;
        }

    .circular-meas .print-header {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 28mm !important;
        min-height: 28mm !important;
        overflow: hidden;
        background: #ffffff !important;
        color: #000 !important;
    }

        .circular-meas .print-header .header-logo {
            display: flex !important;
            justify-content: flex-end !important;
            margin-bottom: 2mm !important;
        }

    .circular-meas .print-logo {
        height: 14mm !important;
        max-height: 14mm !important;
        width: auto !important;
        object-fit: contain;
        filter: none !important;
        opacity: 1 !important;
    }

    .circular-meas .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        border-bottom: 2px solid #000000;
        background: #ffffff !important;
        color: #000 !important;
    }

    .circular-meas .print-header h6 {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.5;
        color: #000 !important;
    }

    .circular-meas .header-print-info {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100%;
        font-size: 12px !important;
        color: #000 !important;
    }

        .circular-meas .header-print-info p {
            margin: 0 !important;
            padding: 0 !important;
            color: #000 !important;
        }

    .circular-meas .print-body {
        display: flex !important;
        flex-direction: column !important;
        height: calc(297mm - 10mm - 10mm - 28mm - 13mm - 1mm - 3mm) !important;
        min-height: calc(297mm - 10mm - 10mm - 28mm - 13mm - 1mm - 3mm) !important;
        width: 100%;
        margin: 1mm 0 0 0 !important;
        overflow: hidden !important;
        background: #ffffff !important;
        color: #000 !important;
        box-sizing: border-box !important;
    }

    .circular-meas .top-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        height: auto;
        min-height: unset;
        max-height: unset;
        overflow: visible;
        border: 1px solid #000;
        border-radius: 6px;
        box-sizing: border-box;
    }

        .circular-meas .top-container .top-item {
            padding: 0 1mm;
            box-sizing: border-box;
        }

    .circular-meas .top-footer-line {
        align-content: end;
        padding: 3px;
        grid-column: 1 / -1;
        font-size: 11.5px;
    }

    .circular-meas .item-title {
        font-size: 14px;
        font-weight: 600;
        font-style: italic;
        line-height: 1px;
    }

    .circular-meas .item-label .fst-normal {
        font-size: 11.5px;
        font-weight: 600;
    }

    .circular-meas .item-container {
        display: grid;
        grid-template-columns: 20mm 1fr;
        column-gap: 2.5mm;
        row-gap: 1mm;
        width: 100%;
        line-height: 4.3mm;
    }

    .circular-meas .item-label {
        font-size: 12px;
        white-space: normal;
        font-style: italic;
        line-height: 4.3mm;
    }

    .circular-meas .item-value {
        font-size: 12px;
        word-break: break-word;
        line-height: 4.3mm;
    }

    .circular-meas .bottom-container {
        flex: 1 1 auto !important;
        width: calc(100% - 0.4mm) !important;
        display: flex !important;
        padding: 3mm 0;
        gap: 3mm;
        overflow: hidden !important;
        background: #ffffff !important;
        color: #000 !important;
        box-sizing: border-box !important;
    }

        .circular-meas .bottom-container .table-container {
            flex: 0 0 auto;
            width: auto;
            max-width: 100%;
            height: fit-content;
            overflow: visible;
            box-sizing: border-box;
            border: 1px solid #000;
            border-radius: 6px;
            padding: 6px;
        }

            .circular-meas .bottom-container .table-container .table-wrapper {
                display: flex;
                flex-direction: column;
                height: auto;
            }

            .circular-meas .bottom-container .table-container .table-header {
                display: grid;
                grid-template-columns: 1fr 1fr;
                font-weight: 700;
                white-space: nowrap;
                border-bottom: 1px solid #000;
                background: #fff;
            }

            .circular-meas .bottom-container .table-container .header-cell {
                padding: 2mm;
                text-align: center;
                border-right: 1px solid #000;
                font-size: 13px;
            }

                .circular-meas .bottom-container .table-container .header-cell:last-child {
                    border-right: none;
                }

            .circular-meas .bottom-container .table-container .table-body {
                display: flex;
                flex-direction: column;
                height: auto;
            }

            .circular-meas .bottom-container .table-container .table-row {
                display: grid;
                grid-template-columns: 1fr 1fr;
                white-space: nowrap;
                align-items: center;
            }

            .circular-meas .bottom-container .table-container .cell-label {
                text-align: center;
                font-weight: 600;
                border-right: 1px solid #000;
                font-size: 12px;
                line-height: 2;
            }

            .circular-meas .bottom-container .table-container .cell-value {
                text-align: center;
                font-size: 12px;
                line-height: 2;
            }


        .circular-meas .bottom-container .chart-container {
            flex: 1 1 0 !important;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            box-sizing: border-box;
            overflow: hidden !important;
            background: #fff;
            border: 1px solid #000;
            border-radius: 6px;
        }

            .circular-meas .bottom-container .chart-container .top-chart {
                flex: 1;
                width: 100%;
                overflow: hidden;
            }

                .circular-meas .bottom-container .chart-container .top-chart > * {
                    height: 100%;
                }

            .circular-meas .bottom-container .chart-container .bottom-chart {
                width: 100%;
                padding: 4mm 3mm 3mm 3mm;
                box-sizing: border-box;
            }

                .circular-meas .bottom-container .chart-container .bottom-chart .bottom-row {
                    display: grid;
                    grid-template-columns: 1fr 1fr 1fr;
                    width: 100%;
                    border: 1px solid #000;
                    border-radius: 4px;
                    overflow: hidden;
                }

                .circular-meas .bottom-container .chart-container .bottom-chart .bottom-cell {
                    /*padding: 3mm;*/
                    text-align: center;
                    border-right: 1px solid #000;
                    font-size: 12px;
                    display: flex;
                    flex-direction: column;
                    gap: 1mm;
                }

                    .circular-meas .bottom-container .chart-container .bottom-chart .bottom-cell:last-child {
                        border-right: none;
                    }

                    .circular-meas .bottom-container .chart-container .bottom-chart .bottom-cell .label {
                        font-weight: 600;
                        font-size: 12px;
                    }

                    .circular-meas .bottom-container .chart-container .bottom-chart .bottom-cell .value {
                        font-size: 13px;
                    }

    .circular-meas .print-footer {
        height: 13mm !important;
        min-height: 13mm !important;
        width: 100%;
    }

        .circular-meas .print-footer .print-logo {
            height: 12mm !important;
            max-height: 12mm !important;
            width: auto !important;
            object-fit: contain;
        }

    .circular-meas .footer-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        height: 100%;
        border-top: 1px solid #000000;
    }
}