﻿.modelViewer {
    position: relative;
    width: 100%;
    height: 100%;
}

.modelViewer > canvas {
    outline: none;
}

    .modelViewer .modelLoader {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modelViewer .bottom-tools {
        position: absolute;
        width: 100%;
        height: 50px;
        bottom: 0;
        right: 0;
        pointer-events: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: end;
        box-shadow: inset 0px -25px 15px -3px rgba(0,0,0,0.1);
    }

        .modelViewer .bottom-tools > * {
            pointer-events: all;
            --hover-color: black;
        }

.modelViewerContainer {
    width: 100%;
    height: calc(100vh - (var(--mud-appbar-height) - var(--mud-appbar-height)/8) - 32px);
}

@media (min-width: 0) and (orientation: landscape) {
    .modelViewerContainer {
        width: 100%;
        height: calc(100vh - (var(--mud-appbar-height) - var(--mud-appbar-height)/4) - 32px);
    }
}

@media (min-width: 600px) {
    .modelViewerContainer {
        width: 100%;
        height: calc(100vh - var(--mud-appbar-height) - 32px);
    }
}

.iavlad-container {
    --border-color: #9f9f9f;
    --plus-color: #9f9f9f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: border 300ms ease-in-out, color 300ms ease-in-out;
}

    .iavlad-container:not(.displaying) {
        padding: 20px;
        border: 4px dotted var(--border-color);
    }

    .iavlad-container .plus-icon-container {
        pointer-events: none;
        color: inherit;
        max-width: 100%;
        max-height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .iavlad-container .plus-icon-container svg {
            max-width: min(50px, 100%);
            max-height: min(50px, 100%);
        }

        .iavlad-container .plus-icon-container > * {
            transition: fill 300ms ease-in-out;
            fill: var(--plus-color);
        }

    .iavlad-container:not(.disabled):hover, .iavlad-container:not(.disabled).dragging {
        --border-color: #0066ff;
        color: #0066ff;
        --plus-color: #0066ff;
        cursor: pointer;
    }

    .iavlad-container .display-container {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .iavlad-container .display-container > video {
            width: 100%;
            max-height: 100%;
            border-radius: 10px;
        }

        .iavlad-container .display-container > img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 10px;
        }

    .iavlad-container .display-container .display-container-tools {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(48px + 4px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 300ms ease-in-out;
        z-index: 2;
    }

    .iavlad-container .display-container .display-container-tools:hover {
        opacity: 1;
    }

        .iavlad-container .display-container .display-container-tools .delete-button {
            width: 48px;
            height: 48px;
            border-radius: 100%;
            background-color: white;
            transition: opacity 300ms ease-in-out;
            border: 1px solid #00000022;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .iavlad-container .display-container .display-container-tools .delete-button:hover {
            opacity: 0.8;
            cursor: pointer;
        }

            .iavlad-container .display-container .display-container-tools .delete-button > svg {
                width: 36px;
                height: 36px;
                fill: red;
            }

        .iavlad-container .display-container .display-container-tools .substitution-button {
            width: 48px;
            height: 48px;
            border-radius: 100%;
            background-color: white;
            transition: opacity 300ms ease-in-out;
            border: 1px solid #00000022;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .iavlad-container .display-container .display-container-tools .substitution-button:hover {
                opacity: 0.8;
                cursor: pointer;
            }

                .iavlad-container .display-container .display-container-tools .substitution-button > svg {
                    width: 36px;
                    height: 36px;
                    fill: var(--mud-primary-color);
                }

        .iavlad-container .display-container .display-container-tools:not(:hover) * {
            display: none;
        }

.product-stepper {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 50vh;
    min-height: 340px;
}

@keyframes opacityOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        display: none;
    }
}

@keyframes opacityIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.approvements-container {
    border-radius: 10px;
    height: 200px;
    border: 1px solid #9f9f9f;
    min-height: min-content;
    overflow-y: auto;
}

.approvement-add {
    --color: #9f9f9f;
    border-radius: var(--mud-default-borderradius);
    border: 1px solid var(--color);
    transition: border 300ms ease-in-out;
    background-color: transparent !important;
    min-height: 32px;
}

    .approvement-add:hover {
        --color: #0066ff;
    }

    .approvement-add svg {
        height: 24px;
        fill: var(--color);
        transition: fill 300ms ease-in-out;
    }

.approvement-state {
    min-width: 12px;
}

    .approvement-state > * {
        overflow: hidden;
        transition: width 300ms ease-in, opacity 300ms ease-in, margin-left 300ms ease-in, margin-right 300ms ease-in;
    }

    .approvement-state:not(.uploading) > .progress {
        width: 0px;
    }

.approvement-state.uploaded .progress, .approvement-state.error .progress {
    animation-duration: 300ms;
    animation-name: opacityOut;
}

.approvement-state:not(.uploaded) .uploaded-icon {
    display: none;
    opacity: 0;
}

.approvement-state.uploaded .uploaded-icon {
    color: green;
}

.approvement-state:not(.error) .error-icon {
    display: none;
    opacity: 0;
}

.approvement-state .uploaded-icon *, .approvement-state .error-icon * {
    width: 14px;
    height: 14px;
}

.approvement-state .uploaded-icon, .approvement-state .error-icon {
    margin-left: 8px;
    display: flex;
    align-items: flex-end;
    animation-duration: 300ms;
    animation-name: opacityIn;
    height: 32px;
    margin-left: -8px;
    z-index: 2;
}

.approvement-state-tooltip {
    height: 32px;
    display: flex !important;
    align-items: center;
}

.approvement-state.error .error-icon {
    color: red;
}

.approvement-state.uploading > .progress {
    margin-left: 8px;
    margin-right: 12px;
    width: 100px;
}

.content-approvement-popover {
    --mud-zindex-popover: 1400;
}

.approvement-delete-button {
    width: 28px;
    display: flex;
    height: 32px;
    align-items: center;
    color: #9f9f9f;
    transition: color 300ms ease-in-out;
}

    .approvement-delete-button:hover {
        cursor: pointer;
        color: red;
    }

.approvement-delete-button svg {
    fill: currentColor;
}

.project-icon {
    position: relative;
    width: 28px;
    height: 28px;
    color: #c4c4c4;
}

    .project-icon.medium {
        width: 36px;
        height: 36px;
    }

.pdf-icon {
    position: relative;
    width: 28px;
    height: 28px;
    color: #c4c4c4;
}

    .pdf-icon.medium {
        width: 36px;
        height: 36px;
    }

.delete-icon {
    position: relative;
    width: 28px;
    height: 28px;
    color: #c4c4c4;
}

    .delete-icon.medium {
        width: 36px;
        height: 36px;
    }

.android-icon {
    position: relative;
    width: 32px;
    height: 32px;
    fill: #c4c4c4;
}

.unity-icon {
    position: relative;
    width: 32px;
    height: 32px;
    fill: #c4c4c4;
}

    .unity-icon > svg {
        width: 32px;
        height: 32px;
    }

    .unity-icon * {
        transition: fill 300ms ease-in-out;
    }

    .unity-icon:not(.active):hover {
        cursor: pointer;
    }

    .unity-icon:hover tspan {
        white-space: pre
    }

    .unity-icon:hover .shp0 {
        fill: #4c4c4c
    }

    .unity-icon:hover .shp1 {
        fill: #000000
    }

    .unity-icon:hover .shp2 {
        fill: #808080
    }

.project-icon > svg, .pdf-icon > svg {
    width: 28px;
    height: 28px;
}

.project-icon.medium > svg, .pdf-icon.medium > svg {
    width: 36px;
    height: 36px;
}

.project-icon > svg, .delete-icon > svg {
    width: 28px;
    height: 28px;
}

.project-icon.medium > svg, .delete-icon.medium > svg {
    width: 36px;
    height: 36px;
}

.android-icon > svg {
    width: 32px;
    height: 32px;
}

    .project-icon *, .android-icon *, .delete-icon * {
        transition: fill 300ms ease-in-out;
    }

    .project-icon *, .android-icon *, .pdf-icon * {
        transition: fill 300ms ease-in-out;
    }

    .project-icon:not(.active):hover, .android-icon:not(.active):hover, .pdf-icon:not(.active):hover {
        cursor: pointer;
    }

    .project-icon.active, .project-icon:hover {
        color: orange;
    }

    .pdf-icon.active, .pdf-icon:hover, .delete-icon.active, .delete-icon:hover {
        color: red;
    }

    .android-icon.active .st0, .android-icon:hover .st0 {
        fill: #3DDC84;
    }

.product-state-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.width-100 {
    width: 100% !important;
}

.height-100 {
    height: 100% !important;
}

.product-state-info > * {
    width: 32px;
    height: 32px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

    .product-state-info .state-icon svg {
        width: 24px;
        height: 24px;
    }

.product-credits-trash-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .product-credits-trash-icon > div {
        width: 28px;
        height: 28px;
    }

        .product-credits-trash-icon > div svg {
            width: 28px;
            height: 28px;
            transition: fill 200ms ease-in-out;
            fill: var(--mud-palette-text-secondary);
        }

        .product-credits-trash-icon > div:hover svg {
            width: 28px;
            height: 28px;
            cursor: pointer;
            fill: red;
        }

.upload-product-zip-icon {
    width: 36px;
    height: 36px;
    margin-top: 6px;
    margin-left: 6px;
    margin-right: 12px;
}

    .upload-product-zip-icon > * {
        width: 36px;
        height: 36px;
    }

.nav-menu-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh; /* o altezza container */
    overflow: hidden;
}

.top-menu {
    flex-shrink: 0;
}

.personal-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px; /* per evitare che scrollbar sovrapponga testo */
    padding-bottom: 1rem;
}

.bottom-nav {
    flex-shrink: 0;
    padding-top: 1rem;
}

.creative-commons-picker-container {
    display: flex;
    align-items: center;
}

    .creative-commons-picker-container .cc-text {
        margin-right: 4px;
        font-size: 20px;
        font-weight: bold;
        color: black;
        user-select: none;
    }

    .creative-commons-picker-container .creative-commons-icon {
        display: flex;
        margin-left: 4px;
    }

        .creative-commons-picker-container .creative-commons-icon svg {
            width: 32px;
            height: 32px;
        }
        
        .creative-commons-picker-container .creative-commons-icon:hover {
            cursor: pointer;
        }
        
        .creative-commons-picker-container .creative-commons-icon .custom-fill {
            fill: grey;
        }
        
        .creative-commons-picker-container .creative-commons-icon:hover .custom-fill, .creative-commons-picker-container .creative-commons-icon.active .custom-fill {
            fill: black !important;
        }

.tutorial-steps > div:first-child {
    overflow: auto;
    padding-right: 4px;
    height: calc(100vh - var(--mud-appbar-height) - 64px - 12px);
}

    .tutorial-steps > div:first-child > div {
        height: max-content;
    }

.disable-align-center .mud-typography-align-center {
    text-align: initial !important;
}

.card-description {
    display: -webkit-box;
    -webkit-line-clamp: var(--lines, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    line-height: var(--line-height, 20px);
    height: calc(var(--line-height, 20px) * var(--lines, 2));
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: var(--lines, 1);
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: var(--line-height, 25px);
    height: calc(var(--line-height, 25px) * var(--lines, 1));
}

.login-form .mud-input-control:has(input:-webkit-autofill) input {
    outline: 0;
}

.login-form .mud-input-control:has(input:-webkit-autofill) .mud-input-underline:after {
    transform: scaleX(1);
}

.login-form .mud-input-control:has(input:-webkit-autofill) label.mud-input-label-text {
    transform: translate(0, 1.5px) scale(0.75);
    transform-origin: top left;
    color: var(--mud-palette-primary);
}

.login-form .mud-input-control:has(input:-webkit-autofill) label.mud-input-label-outlined {
    transform: translate(14px, -6px) scale(0.75);
    transform-origin: top left;
    color: var(--mud-palette-primary);
}

.device-typology-item {
    display: flex;
    height: 48px;
    align-items: center;
}

    .device-typology-item > img {
        height: 100%;
    }

    .device-typology-item > span {
        font-size: 16px;
        font-weight: 600;
        margin-left: 8px;
    }

.device-typology-chip {
    color: var(--mud-palette-primary-text) !important;
    background-color: var(--mud-palette-primary) !important;
}

.StackGridPagerFixedContainer
{
    position:fixed; 
    bottom:0; 
    width:-webkit-fill-available; 
    padding:0 56px 0 32px;
}

.StackSelectPagerSize, .StackSelectPagerSize .mud-input-text
{
    margin-top: unset !important;
}

.StackSelectPagerSize, .StackSelectPagerSize .mud-input {
    font-size: var(--mud-typography-body2-size);
    font-family: var(--mud-typography-body2-family);
    font-weight: var(--mud-typography-body2-weight);
    line-height: var(--mud-typography-body2-lineheight);
    letter-spacing: var(--mud-typography-body2-letterspacing);
    text-transform: var(--mud-typography-body2-text-transform)
}

.StackSelectPagerSize .mud-input::after,
.StackSelectPagerSize .mud-input::before {
    display: none !important;
}

.StackSelectPagerSize .mud-input-root
{
    text-align: center;
}

.page-100 {
    height: calc(100dvh - var(--mud-appbar-height));
    overflow: hidden;
}
.product-info-icon {
    margin-right: 16px;
    color: var(--mud-palette-action-default);
}


/*Css per nascodere i bottoni delle pagine nella paginazione dei modelli*/
/*.StackGridPager .mud-pagination .mud-pagination-item:has(button[aria-label^="Page"]),
.StackGridPager .mud-pagination .mud-pagination-item-selected
{
    display: none;
}*/