﻿.matrix-table {
    border-collapse: collapse;
}

    .matrix-table th, .matrix-table td {
        border: none;
        padding: 0; 
        text-align: center;
        vertical-align: middle; 
    }

        .matrix-table th div, .matrix-table td div {
            padding: 8px 16px; 
            background-color: #F2F2F2; 
            border-radius: 10px; 
            height: 36px; 
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
            font-family: 'Inter';
            font-size: 12px;
        }

        .matrix-table thead th div, .matrix-table td:first-child div {
            margin: 5px;
            background-color: #F2F2F2;
            min-width: 102px;
        }

    .matrix-table thead th:first-child div {
        background-color: transparent;
        border-top-left-radius: 10px;
    }

    .matrix-table thead th {
        position: sticky;
        top: 0;
        z-index: 3;
        background-color: #FFFFFF;
        height: 36px;
        white-space: nowrap;
        font-family: 'Inter';
        font-weight: 500;
        font-size: 12px;
        border-top: none;
        border-radius: 0;
    }

    .matrix-table tbody td:first-child {
        position: sticky;
        left: 0;
        background-color: #FFFFFF;
        z-index: 2;
        text-align: left;
        white-space: nowrap;
    }

    .matrix-table thead th:first-child {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 4;
        border-top-left-radius: 10px;
    }

.matrix-button {
    background: none;
    border: none;
    cursor: pointer;
}

.matrix-product-code {
    display: none;
}

.matrixHr {
    display: none;
}

.matrix-table thead th div:not(:first-child) {
    border-top-right-radius: 10px;
}

.matrix-table tbody tr:first-child td:first-child div {
    border-radius: 10px;
}

.matrix-table tbody td:not(:first-child):not(:last-child) div {
    border-radius: 0;
}

    .matrix-table tbody td:not(:first-child):not(:last-child) div:first-child {
        border-top-left-radius: 10px; 
        border-bottom-left-radius: 10px;
    }

.matrix-table tbody td:not(:first-child):not(:nth-child(2)):not(:last-child) div {
    border-radius: 0;
}

.matrix-table tbody td:not(:first-child) div:last-child {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.matrix-table tbody td:first-child div {
    width: auto;
    white-space: nowrap;
    height: 48px;
}

.table-container {
    position: relative;
    overflow: auto;
    max-width: 100%;
    max-height: 600px;
    white-space: nowrap;
    scrollbar-width: thin;
}

.progressbarMatrixDiv{
    width: 100%;
}

.matrixTitle{
    margin-bottom:25px;
    margin-top: 25px;
}

.matrixServicesButtons{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.matrixLegend {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

    .tooltip-container .tooltip-text {
        visibility: hidden;
        width: 120px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 5px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -60px;
        opacity: 0;
        transition: opacity 0.1s ease-in-out;
    }

        .tooltip-container .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }

    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

@media screen and (min-width: 769px) {
    .matrix-table tbody tr:nth-child(even) td:not(:first-child) div {
        background-color: #FFFFFF;
    }

    .matrix-table tbody tr:nth-child(odd) td:not(:first-child) div {
        background-color: #F5F5F5;
        height: 48px;
    }
}

@media screen and (max-width: 768px) {
    .matrix-table {
        width: 100%;
    }

    .table-container {
        width: 100%;
    }

    .matrix-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    .matrix-product-code {
        display: inline-block;
        font-weight: bold;
    }

    .matrixHr {
        display: block;
    }

    .matrix-button {
        margin-left: 10px;
    }

    .matrix-table thead {
        display: none;
    }

    .divWithButtonsAndCode {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .matrixLegend {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 30px;
        margin-left: 15px;
    }

    .matrixHr {
        border: 1px solid #E5E5E5;
        margin-top: 30px;
        margin-bottom: 0px;
    }

    .matrix-table tbody td:not(:first-child):not(:nth-child(2)):not(:last-child) div {
        border-radius: 10px;
    }

    .matrix-table tbody td:not(:first-child):not(:last-child) div {
        border-radius: 10px;
    }

    .matrix-table tbody td:not(:first-child) div:last-child {
        border-radius: 10px;
    }

    .matrix-table td:first-child div {
        margin: 20px 0px 20px 0px;
        width: 142px !important;
    }

    .matrix-table tbody tr td:nth-child(even) div {
        background-color: #FFFFFF;
    }

    .matrix-table tbody tr td:nth-child(odd) div {
        background-color: #F5F5F5;
    }

    .matrix-table tbody tr td div {
        height: 48px;
    }
}