.MuiGrid-root.MuiGrid-item.css-1j5truk.col-12 {
    position: relative;
    display: flex;
    flex-wrap: wrap-reverse;
}

#bloccoSinottico_e_ChipGruppi {
    flex-direction: column;
    container-name: mappa-camera;
    container-type: inline-size;
}

#container_sinottico {
    height: 100%;
    width: 100%;
    margin-bottom: 3rem;
    padding: min(5%, 20px);
    overflow: auto;
}

#skeleton_sinottico.MuiSkeleton-root {
    width: calc(100% - 40px);
    height: calc(100% - 35px);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
}

#cerca_deputato {
    position: absolute;
    left: 50%;
    top: calc(330 / 455.3 * 100%);
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: auto;
}

#container_sinottico>#svgID {
    width: 100%;
    height: 100%;
    display: block;
    margin: auto;
}

#container_sinottico>#svgID .st0,
#container_sinottico>#svgID circle:not([class]) {
    fill: #FFF;
    stroke: #DDDDDD;
    stroke-width: 5px;
    cursor: auto;
    transition: fill 0.5s ease-in-out, stroke-width 0.2s ease-in-out;
}

#container_sinottico>#svgID circle:not(.st0) {
    fill: #FFF;
    stroke: #DDDDDD;
    stroke-width: 5px;
    cursor: pointer;
    transition: fill 0.5s ease-in-out, stroke 0.2s ease-in-out, stroke-width 0.2s ease-in-out;
}

#container_sinottico>#svgID .logo {
    fill: #ffffff;
    stroke: #244a9b;
    stroke-width: 5px;
    cursor: default;
}

#container_sinottico>#svgID circle:not(.st0):hover,
#container_sinottico>#svgID circle.pallinoHover {
    stroke: #000000;
    stroke-width: 6px;
}

#container_sinottico>#svgID circle.disattivato:not(:hover):not(.pallinoHover) {
    fill: #dcdcdc;
    cursor: not-allowed;
}

#contenitore_pulsante {
    padding-top: 10px;
    display: flex;
}

#contenitore_pulsante>.MuiButtonGroup-root {
    padding-left: 20px;
}

#contenitore_pulsante>.MuiButtonGroup-root>.MuiButtonBase-root:first-child {
    width: 100%;
}

.search-bar-container>.results-list {
    max-height: calc(100% - 64px);
}

.MuiChip-root {
    margin-left: 2rem;
    display: inline-flex;
    align-items: center;
}

.MuiChip-root:hover {
    background-color: #f8f9fa;
}

.MuiChip-label {
    padding-left: 1rem;
    font-size: 1.5rem;
}

.MuiSvgIcon-root {
    user-select: none;
    width: 1em;
    height: 1em;
    font-size: 1.5rem;
    display: inline-block;
    flex-shrink: 0;
}

#ChipGruppoInDeputati {
    overflow-y: auto;
    margin-inline: 0;
}

#gruppiChip1>.MuiListItem-root {
    width: fit-content;
    display: flex;
}

#gruppiChip1>.MuiListItem-root::marker {
    content: none;
}

@media (max-width: 480px) {
    /* #gruppiChip1>.MuiListItem-root .MuiChip-root {
        height: 2rem;
    }

    #gruppiChip1>.MuiListItem-root .MuiChip-icon {
        font-size: 1rem;
        margin-left: 4px;
    }

    #gruppiChip1>.MuiListItem-root .MuiChip-label {
        font-size: 1.2rem;
        padding-left: 6px;
        padding-right: 10px;
    } */
}

.tooltip {
    --bs-tooltip-opacity: 1 !important;

    .tooltip-inner {
        color: #333;
        font-size: 1.5rem;
        background: white;
        border: 2px solid #ffffff;
        border-radius: 2px;
        padding: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        font-family: 'Titillium Web' !important;
    }

    .tooltip-arrow::before {
        top: 1px !important;
        scale: 2 !important;
        border-top-color: white !important;
    }
}

.deputato-tooltip {
    --bs-tooltip-opacity: 1 !important;
}

.deputato-tooltip .tooltip-inner {
    width: fit-content;
    max-width: 400px;
    height: fit-content;
    min-height: 70px;
    padding: 0.5rem;
    padding-right: 1rem;
    font-size: 1.7rem;
    text-align: left;
    display: flex;
    align-items: center;
    background: white;
    color: #000000;
    border: 3px solid #000;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Titillium Web';
    font-style: normal;
}

.tooltip-image-container {
    position: relative;
    flex-shrink: 0;
    margin-right: 1rem;
}

.deputato-tooltip-content img {
    display: block !important;
    width: 65px !important;
    height: 65px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 1px solid #7f7f7f !important;
}

.tooltip-posto-badge {
    position: absolute;
    bottom: 1px;
    right: -2px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.deputato-tooltip-content div:not(.tooltip-image-container) {
    line-height: 1.4;
}

.denominazione {
    display: inline;
}

.sigla {
    display: none;
}

.numero-deputati {
    display: inline;
}

.deputato-tooltip {
    pointer-events: auto !important;
}

.deputato-tooltip .tooltip-inner,
.deputato-tooltip .tooltip-arrow {
    pointer-events: auto;
}


@media (max-width: 900px) {
    .search-bar-container>.results-list {
        max-height: 30vh;
    }
}

@media (max-width: 767px) {
    #container_sinottico {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 2rem;
    }

    #container_sinottico>#svgID {
        width: clamp(520px, 130vw, 720px);
        height: auto;
        display: block;
        margin: 0;
    }

    #cerca_deputato {
        position: relative;
        width: fit-content;
        margin: 0 auto 2rem auto;
        left: 0;
        top: 0;
        transform: none;
    }
}


@container mappa-camera (min-width: 854px) {
    #container_sinottico>#svgID {
        width: 75%;
        display: block;
        margin: auto;
    }

    #gruppiChip1 {
        width: 75%;
        margin: auto;
    }
}

@container mappa-camera (max-width: 854px) {

    #ChipGruppoInDeputati {
        width: 100%;
    }

    .MuiGrid-root.col-10 {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }

    .MuiGrid-root.col-2 {
        display: flex;
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .MuiStack-root {
        display: flex;
        flex-wrap: wrap;
    }

    .MuiChip-root {
        height: 32px;
        border-radius: 16px;
        border: 1px solid rgba(37, 81, 149, 0.7);
        margin: 4px;
    }

    .MuiChip-icon {
        margin-left: 0.5rem;
        margin-right: -4px;
    }

    .MuiChip-label {
        padding-left: 0.5rem;
        padding-right: 1rem;
    }

    .MuiSvgIcon-root {
        font-size: 1.8rem;
    }

    #gruppiChip1>.MuiListItem-root::marker {
        content: none;
    }

    .denominazione {
        display: none;
    }

    .sigla {
        display: inline;
    }

    .numero-deputati {
        display: none;
    }
}

.deputato-tooltip .tooltip-image-container {
    position: relative;
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
}

.deputato-tooltip .tooltip-image-container img {
    width: 65px;
    height: 65px;
    display: block;
    border-radius: 6px;
}

.deputato-tooltip .posto-badge {
    position: absolute;
    right: 3px;
    bottom: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
    background: white;
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.posto-vuoto-number {
    font-size: 8px;
    font-weight: 700;
    fill: #333;
    pointer-events: none;
    user-select: none;
}

circle:not([data-group-class]) {
    fill: #f2f2f2;
    stroke: #999;
}