﻿:root {
    --table-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 -4px 8px rgba(0,0,0,0.1), 4px 0 8px rgba(0,0,0,0.1), -4px 0 8px rgba(0,0,0,0.1);
    --table-border: 1px solid var(--mud-palette-primary);
    --cell-padding: 0.3rem 1rem;
    --font-small: 0.9rem;
    --font-xsmall: 0.5rem;
    --gap-10: 1rem;
    --gap-5: .4rem;
    --gap-8: .8rem;
    --radius-5: 0.5rem;
}

/*------------------ CUSTOM TABLE ------------------------------*/
.custom-table {
    width: auto;
    max-width: 70%;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: var(--table-shadow);
    padding: var(--cell-padding);
    font-size: var(--font-small);
}
    .custom-table th,
    .custom-table td {
        width: min-content;
        max-width: 100%;
        padding: var(--cell-padding);
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
        border: var(--table-border);
    }
    .custom-table th {
        background-color: var(--mud-palette-secondary);
    }
        .custom-table th:first-child,
        .custom-table td:first-child {
            border-left: none;
        }
        .custom-table th:last-child,
        .custom-table td:last-child {
            border-right: none;
        }
        .custom-table tr:first-child th,
        .custom-table tr:first-child td {
            border-top: none;
        }
        .custom-table tr:last-child th,
        .custom-table tr:last-child td {
            border-bottom: none;
        }

    /*---- Overrides für unsichtbares Textfeld & kleinere Tabellenkacheln ----*/
    .custom-table .mud-input-outlined-border {
        border-width: 0 !important;
    }
    .custom-table .mud-input-root {
        box-sizing: inherit !important;
        padding: 0 !important;
    }

    /* Grid layout for visualization --------------------------*/
    .grid-3 {
        display: grid;
        grid-template-columns: min-content min-content auto;
        gap: var(--gap-10);
        align-items: stretch;
        padding: var(--gap-5) 0;
        margin-bottom: var(--gap-8);
        border-radius: var(--radius-5);
    }
    .grid-3 > div {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        white-space: nowrap;
    }
    .grid-3 .title,
    .grid-3 .collective-score {
        font-weight: bold;
        text-align: center;
        font-size: var(--font-small);
        background-color: rgba(0,0,0,0.05);
        padding: var(--cell-padding);
        border-radius: var(--radius-5);
    }

.value-range {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--cell-padding);
    border-radius: var(--radius-5);
}

.grid-3:not(:last-child) {
    margin-bottom: var(--gap-12);
}

.buttons-container[b-jm3ydmrvbi] {
    justify-content: center;
}

/*---- ungewünschtes spacedash spacing override ----*/
.mud-typography-body1 {
    padding: 0 !important
}

/*------ Responsives Design -------*/
@media (max-width: 1000px) {
    .custom-table {
        max-width: 100%;
    }
        .custom-table th,
        .custom-table td {
            font-size: var(--font-xsmall);
            padding: .1rem;
        }
        .pain-table th,
        .pain-table td {
            font-size: var(--font-xsmall)
        }
    .collective-score {
        display: none;
    }

    .grid-3 {
        grid-template-columns: auto;
    }
}