#toast-container {
    z-index: 99999 !important;
}

.fc .fc-daygrid-day-frame {
    aspect-ratio: 1 / 1;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    position: static;
}

.fc-daygrid-day-events {
    span {
        position: absolute;
        display: flex;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px 
    }
    i {
        width: 100%;
        height: 100%;
    }
    i[a] {
        background: #444;
    }
    i[b] {
        background: #eee;
    }
}

.fc-day-disabled .fc-daygrid-day-events {
    display: none;
}

.seccao-marcacoes {
    .wizard,
    .wizard .nav-tabs,
    .wizard .nav-tabs .nav-item {
        position: relative;
    }

    .wizard .nav-tabs:after {
        content: "";
        width: 80%;
        border-bottom: solid 2px #ccc;
        position: absolute;
        margin-left: auto;
        margin-right: auto;
        top: 38%;
        z-index: -1;
    }

    .wizard .nav-tabs .nav-item .nav-link {
        width: 70px;
        height: 70px;
        margin-bottom: 6%;
        background: white;
        border: 2px solid #ccc;
        color: #ccc;
        z-index: 10;
    }

    .wizard .nav-tabs .nav-item .nav-link:hover {
        color: #333;
        border: 2px solid #333;
    }

    .wizard .nav-tabs .nav-item .nav-link.active {
        background: #fff;
        border: 2px solid #0d1b48;
        color: #0d1b48;
    }

    .wizard .nav-tabs .nav-item .nav-link:after {
        content: " ";
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        opacity: 0;
        margin: 0 auto;
        bottom: 0px;
        border: 5px solid transparent;
        border-bottom-color: #0d1b48;
        transition: 0.1s ease-in-out;
    }

    .nav-tabs .nav-item .nav-link.active:after {
        content: " ";
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        opacity: 1;
        margin: 0 auto;
        bottom: 0px;
        border: 10px solid transparent;
        border-bottom-color: #0d1b48;
    }

    .wizard .nav-tabs .nav-item .nav-link svg {
        font-size: 25px;
    }

    .btn-info {
        background-color: #0d1b48;
        color: #ffffff;
        font-size: 16px;
        line-height: 100%;
        font-weight: 400;
        padding: 8px 16px;
        border: 1px solid #0d1b48;
        transition: all 0.3s ease;
        border-radius: 0;
        display: flex;
        justify-content: center;
        align-items: center;

        &:hover {
            background-color: #ffffff;
            color: #0d1b48;
        }
    }

    .btn-secondary {
        background-color: #0d1b48;
        color: #ffffff;
        font-size: 16px;
        line-height: 100%;
        font-weight: 400;
        padding: 8px 16px;
        border: 1px solid #0d1b48;
        transition: all 0.3s ease;
        border-radius: 0;
        display: flex;
        justify-content: center;
        align-items: center;

        &:hover {
            background-color: #ffffff;
            color: #0d1b48;
        }
    }

    .steps-line {
        border-color: #0d1b48;
        border-width: 2px;
    }

    #tabela-servicos {

        .type-description {
            text-align: center;
            margin-bottom: 30px;
            font-size: 16px;
            line-height: 150%;
            font-size: 23px;
        }

        .grupo-titulo {
            font-size: 16px;
            line-height: 150%;
            font-size: 23px;
            font-weight: 800;
        }

        .nav {
            justify-content: center;
            padding: 6px 8px;
            background-color: #f2f2f2;
            margin-left: auto;
            margin-right: auto;
            width: fit-content;
            border-radius: 50px;
            margin-bottom: 50px;

            .nav-item {
                padding: 3px;

                &:first-of-type {
                    padding-left: 0;
                }

                &:last-of-type {
                    padding-right: 0;
                }

                .nav-link {
                    border-radius: 50px;
                    background-color: #f2f2f2;
                    color: #1b1b1b;
                    font-size: 16px;
                    line-height: 100%;
                    font-weight: 400;
                    padding: 14px 20px;
                    transition: all 0.5s ease;
                    border: 2px solid #dddddd;

                    .hidden-xs {
                        margin-left: 8px;
                    }

                    img {
                        width: auto;
                        height: 24px;
                    }

                    &.active {
                        background-color: #D10407;
                        color: #ffffff;
                        font-weight: 600;
                        border-color: #D10407;
                        img {
                            filter: invert(1);
                        }
                    }
                }
            }
        }

        .tab-content {
            .tab-pane {
                .servico {
                    margin-bottom: 24px;

                    .content-container {
                        background-color: #ffffff;
                        padding: 30px;
                        border-radius: 25px;
                        display: flex;
                        flex-direction: column;
                        height: 100%;
                        box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.15);
                        border: 4px solid #ffffff;
                        position: relative;

                        .recomended {
                            position: absolute;
                            top: 0;
                            left: 0;
                            right: 0;
                            background-color: #0d1b48;
                            color: #ffffff;
                            font-size: 16px;
                            line-height: 16px;
                            font-weight: 600;
                            padding: 8px;

                            &:before {
                                content: "";
                                position: absolute;
                                background-color: #0d1b48;
                                bottom: 0;
                                left: 0;
                                right: 0;
                                height: 24px;
                                transform: translateY(23px);
                            }

                            &:after {
                                content: "";
                                position: absolute;
                                background-color: #ffffff;
                                border-top-left-radius: 25px;
                                border-top-right-radius: 25px;
                                bottom: 0;
                                left: 0;
                                right: 0;
                                height: 25px;
                                transform: translateY(25px);
                            }
                        }

                        .div-img-grupo {
                            width: 100%;
                            aspect-ratio: 4 / 3;
                            overflow: hidden;

                            img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                border-radius: 0!important;
                            }
                        }

                        .div-dados-grupo {
                            padding-top: 12px;

                            h5 {
                                font-size: 25px;
                                line-height: 200%;
                                margin-bottom: 0;
                            }

                            span {
                                font-size: 40px;
                                line-height: 100%;
                                font-weight: 700;
                                color: #1b1b1b;
                                margin-bottom: 30px;
                            }

                            .preco-space {
                                margin-bottom: 30px;

                                .preco-container {
                                    margin-bottom: 0;

                                    .preco {
                                        margin: 0;
                                    }
                                }

                                &.disable {
                                    span {
                                        display: none;
                                    }
                                }
                            }
                        }

                        .div-btn {
                            margin-top: auto;
                            width: 100%;

                            .tempo-container {
                                margin-bottom: 20px;
                                font-size: 30px;
                                line-height: 100%;
                                font-weight: 700;
                                color: #1b1b1b;

                                i {
                                    font-size: 30px;
                                    margin-right: 10px;
                                    color: #D10407;
                                }
                            }

                            .badge {
                                background-color: #ffffff!important;
                                color: #D10407!important;
                                border: 1px solid #D10407;
                                border-radius: 50px;
                                font-size: 16px;
                                line-height: 100%;
                                font-weight: 400;
                                display: flex;
                                width: 100%;
                                justify-content: center;
                                align-items: center;
                                padding: 10px;
                                transition: all 0.3s ease;

                                &:hover {
                                    color: #ffffff!important;
                                    background-color: #D10407!important;
                                    font-weight: 600;
                                }

                                &.bg-success {
                                    color: #ffffff!important;
                                    background-color: #D10407!important;
                                    font-weight: 600;
                                }
                            }
                        }
                    }

                    .descricao {
                        text-align: start;
                        color: #1b1b1b;
                        margin-bottom: 0;

                        i {
                            width: 20px;
                            margin-right: 5px;
                            
                            &.fa-xmark {
                                color: grey;
                            }

                            &.fa-check {
                                color: green;
                            }
                        }
                    }

                    .div-extras {
                        margin-bottom: 30px;
                    }

                    &.active {
                        .content-container {
                            border: 4px solid #0d1b48;
                            position: relative;
                            overflow: hidden;

                            

                            .div-btn {
                                .badge {
                                    background-color: #0d1b48!important;
                                    color: #ffffff!important;
                                    border-color: #0d1b48;
                                }
                            }
                        }
                    }

                    &:hover {
                        .content-container {
                            border: 4px solid #D10407;

                            .recomended {
                                background-color: #D10407;

                                &:before {
                                    background-color: #D10407;
                                }
                            }

                            .div-btn {
                                .badge {
                                    background-color: #D10407!important;
                                    color: #ffffff!important;
                                    border-color: #D10407;
                                }
                            }
                        }
                    }

                    .extra {
                        margin-bottom: 10px;

                        &:last-of-type {
                            margin-bottom: 20px;
                        }

                        

                        > div {
                            align-items: start;
                        }

                        .extra-content {
                            background-color: #ffffff;
                            padding: 5px;

                            .div-dados-extra {
                                text-align: start;

                                h5 {
                                    font-size: 15px;
                                    line-height: 20px;
                                    font-weight: 400;
                                    margin: 0;
                                }

                                p {
                                    margin: 0;
                                    font-size: 12px;
                                    line-height: 130%;
                                }
                            }

                            .div-quantidade {
                                text-align: center;

                                .badge {
                                    background-color: #ffffff!important;
                                    border: 1px solid #0d1b48;
                                    color: #0d1b48;
                                    border-radius: 0;
                                }
                            }

                            .div-preco {
                                text-align: end;
                            }
                        }

                        &.obligatory {
                            > div {
                                padding: 5px;
                            }

                            .div-img-extra {
                                margin-right: 10px;

                                i {
                                    font-size: 20px;
                                    color: green;
                                }
                            }

                            .div-dados-extra {
                                h5 {
                                    margin: 0;
                                    font-weight: 400;
                                    font-size: 15px;
                                    line-height: 100%;
                                }

                                p {
                                    margin: 0;
                                }
                            }

                            .div-preco {
                                margin-left: auto;
                            }
                        }
                    }
                }
            }
        }
    }

    #tabela-extras {
        overflow-y: scroll;
        padding-right: 12px;
        max-height: 600px;

        .servico {
            padding-left: 12px!important;
            padding-right: 12px!important;
            padding-top: 0!important;
            padding-bottom: 15px!important;

            &:last-of-type {
                padding-bottom: 0!important;
            }

            .border {
                border: none!important;
                border-radius: 0;
                background-color: #f2f2f2;

                .div-img-extra {
                    aspect-ratio: unset;
                    width: 100px;
                    max-width: 100px;
                }

                .div-dados-extra {
                    flex-direction: row;
                    justify-content: space-between;
                    align-items: center;

                    > div {
                        &:first-of-type {
                            text-align: start;
                            padding-left: 20px;

                            h5 {
                                margin-bottom: 5px;
                            }

                            p {
                                margin: 0;
                                line-height: 130%;
                            }

                            .preco {
                                margin-top: 5px;
                                line-height: 130%;
                            }
                        }

                        &:last-of-type {
                            flex-wrap: nowrap;
                            display: flex;
                            align-items: center;
                            justify-content: end;
                        }
                    }

                    .extra-quantidade {
                        min-width: 15px;
                    }
                }

                .bg-primary {
                    background-color: #0d1b48!important;
                    color: #ffffff;
                    font-size: 16px;
                    line-height: 100%;
                    font-weight: 400;
                    padding: 8px 12px;
                    border-radius: 0!important;
                    border: 1px solid #0d1b48!important;
                    transition: all 0.3s ease;

                    &:hover {
                        background-color: #ffffff!important;
                        color: #0d1b48;
                    }
                }

                .bg-warning {
                    background-color: #ffffff!important;
                    color: #0d1b48;
                    font-size: 16px;
                    line-height: 100%;
                    font-weight: 400;
                    padding: 8px 12px;
                    border-radius: 0!important;
                    border: 1px solid #0d1b48!important;
                    transition: all 0.3s ease;

                    &:hover {
                        background-color: #0d1b48!important;
                        color: #ffffff;
                    }
                }
            }
        }
    }

    .bloco-calculo-tempo {
        border: none;
        background-color: #f2f2f2;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 20px;
        margin-right: 12px;

        .content {
            /* margin-top: auto; */
            text-align: end;
            position: sticky;
            top: 100px;

            h3 {
                margin-top: 20px;
                margin-bottom: 8px;
                font-size: 16px;
                line-height: 130%;
                font-weight: 400;

                &:last-of-type {
                    margin-bottom: 0;
                }
            }

            > div {
                font-size: 20px;
                line-height: 100%;
                font-weight: 700;
            }
        }
    }
}

.modal {
    .modal-dialog {
        top: 50%;
        left: 50%;
        margin: 0;
        transform: translate(-50%, -50%)!important;
        max-width: 1140px;
        max-height: 100svh;

        .modal-content {
            border-radius: 25px;
            /*
            max-height: calc(100vh - 50px);
            overflow: auto;
            max-height: 100svh;
            */

            .modal-header {
                .btn-close {
                    margin-left: 15px;
                }
            }

            .modal-body {
                max-height: calc(100vh - 170px);
                overflow: auto;

                .tab-content {
                    height: 100%; /* André Antunes - 2026-03-12: Adicionado para corrigir problema de altura do conteúdo das tabs */
                    overflow-y: auto;
                    overflow-x: hidden;
                    padding-right: 12px;
                }
            }

            .extras {
                max-height: calc(100vh - 275px);
                min-height: 250px;
                overflow: auto;
            }

            .modal-footer {
                .btn {
                    background-color: #ffffff;
                    border: 1px solid #D10407;
                    color: #D10407;
                    border-radius: 50px;
                    padding: 10px 20px;
                    transition: all 0.3s ease;
                    font-size: 16px;
                    line-height: 100%;
                    font-weight: 400;

                    &:hover {
                        background-color: #D10407;
                        color: #ffffff;
                    }

                    &.next {
                        background-color: #D10407;
                        color: #ffffff;

                        &:hover {
                            background-color: #ffffff;
                            color: #D10407;
                        }
                    }

                    &.close {
                        margin-left: auto;
                    }
                }
            }
        }
    }

    #step-extras {
        > h5 {
            margin-top: 0;
            margin-bottom: 12px;
        }

        .extra {
            margin-bottom: 5px;

            .extra-content {
                padding: 6px 12px;
                background-color: #f2f2f2;
                border-radius: 25px;
                
                > div {
                    &:first-of-type {
                        display: flex;
                        align-items: center;
                    }

                    h5 {
                        margin-top: 0;
                        margin-bottom: 0;
                        text-transform: none;
                        font-weight: 500;
                    }

                    .preco {
                        margin-left: auto;
                    }

                    .quantities {
                        margin-left: 10px;
                        white-space: nowrap;
                    }

                    .badge {
                        border: 1px solid #D10407;
                        border-radius: 50%;
                        color: #D10407;
                        background-color: #ffffff!important;
                    }

                    .extra-quantidade {
                        min-width: 12px;
                    }

                    .descricao {
                        line-height: 130%;
                        font-size: 12px;
                        margin-bottom: 3px;
                    }
                }
            }
            
        }
    }

    #servico-valores {
        &.table {
            tbody {
                tr {
                    td {
                        line-height: 120%;

                        &:last-of-type {
                            white-space: nowrap;
                        }
                    }
                }
            }
        }
    }

    #tempo-estimado {
        border: 4px solid #D10407;
        padding: 10px;
        border-radius: 25px;
        display: flex;
        justify-content: space-around;

        i {
            font-size: 30px;
            margin-right: 10px;
            color: #D10407;
        }

        span {
            font-size: 30px;
            line-height: 100%;
            font-weight: 700;
            color: #1b1b1b;
        }

    }

    #mensagem-alerta {
        background-color: #f2f2f2;
        border: 0;
        line-height: 0.9rem;
        font-size: 0.7rem;
        padding: 10px;
        text-align: justify;
    }

    #calendar {
        .fc-header-toolbar {
            padding: 6px;
            background-color: #f2f2f2;
            border-radius: 50px;

            .fc-toolbar-chunk {
                .fc-button-group {
                    button {
                        background-color: #0d1b48!important;
                        border-color: #0d1b48!important;
                        color: #ffffff!important;
                        outline: none;
                        box-shadow: none!important;
                        padding: 10px;

                        &:first-of-type {
                            border-top-left-radius: 50px!important;
                            border-bottom-left-radius: 50px!important;
                        }

                        &:last-of-type {
                            border-top-right-radius: 50px!important;
                            border-bottom-right-radius: 50px!important;
                        }
                    }
                }

                .fc-toolbar-title {
                    font-size: 20px;
                    line-height: 100%;
                    font-weight: 400;
                }

                .fc-today-button {
                    background-color: #0d1b48!important;
                    border-color: #0d1b48!important;
                    color: #ffffff!important;
                    outline: none;
                    box-shadow: none;
                    border-radius: 50px!important;
                    padding: 10px 20px;
                }
            }
        }

        .fc-highlight {
            background-color: rgba(13, 27, 72, 0.4);
        }
    }

    .schedule-box {
        h3 {
            font-weight: 600;
            padding: 10px;
        }

        .text-muted {
            font-weight: 600;
        }

        .badge {
            background-color: #0d1b48!important;
            border-color: #0d1b48!important;
            color: #ffffff!important;
            outline: none;
            box-shadow: none;
            border-radius: 5px!important;
        }

        .horarios {
            .alert-warning {
                border-radius: 0!important;
            }

            .btn {
                border-radius: 50px !important;
                border-color: #0d1b48;
                padding: 10px 20px!important;

                .fw-semibold {
                    color: #1b1b1b;
                }

                .text-muted {
                    font-weight: 400;
                }

                &:hover, &:focus, &:active {
                    background-color: #0d1b48!important;
                    border: 1px solid #0d1b48!important;

                    .fw-semibold {
                        color: #ffffff;
                    }

                    .text-muted {
                        color: #ffffff!important;
                    }
                }
            }
        }
    }

    #form_agenda_online {
        input, textarea {
            border-radius: 50px;
            outline: none;
            box-shadow: none;
            background-color: #f2f2f2;
            transition: all 0.3s ease;
            color: #1b1b1b;
            border-color: transparent;
            padding: 30px;
            font-size: 16px;
            line-height: 100%;
            border: 0.5px solid #f2f2f2;
            /* -webkit-appearance: none; */

            &:focus {
                background-color: #f2f2f2;
                border: 0.5px solid #0d1b48;
            }
        }

        .info {
            position: absolute;
            right: 12px;
            top: 18px;
            z-index: 999;
            transition: all 0.3s ease;

            i {
                border: 1px solid #222222;
                border-radius: 50%;
                height: 25px;
                width: 25px;
                display: flex;
                justify-content: center;
                align-items: center;
                opacity: 0.65;
                transition: all 0.3s ease;
            }

            span {
                display: none;
                position: absolute;
                bottom: 30px;
                right: 0;
                padding: 10px;
                border-radius: 10px;
                min-width: 200px;
                line-height: 130%;
                background-color: #222222;
                color: #ffffff;
                opacity: 0.65;
                transition: all 0.3s ease;
            }

            &:hover {
                i {
                    background-color: #222222;
                    color: #ffffff;
                    opacity: 0.65;
                }

                span {
                    display: block;
                }
            }
        }

        label {
            padding: 6px 30px;
            white-space: nowrap;
            color: #222222;
        }

        .btn-secondary {
            display: flex;
            height: 100%;
            margin-top: 0 !important;
            height: 57px;
            border-radius: 50px;
            align-items: center;
            justify-content: center;
            background-color: #0d1b48;
            color: #ffffff;
            border: 1px solid #0d1b48;
            transition: all 0.3s ease;
            outline: none;
            box-shadow: none;

            &:hover {
                background-color: #ffffff;
                color: #0d1b48;
            }
        }

        #servico_valores {
            td {
                b {
                    font-weight: 400;
                }

                &:last-of-type {
                    b {
                        font-weight: 700;
                    }
                }
            }
        }
    }

    #step-success {
        /* André Antunes - 2026-03-12: Adicionado para corrigir problema de altura do conteúdo das tabs */
        height: 100%;
        align-content: center;

        .success-content {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            min-height: 350px;

            i {
                font-size: 100px;
                margin-bottom: 30px;
                color: green;
            }

            h2 {
                font-size: 20px;
                line-height: 120%;
                font-weight: 400;
                margin-bottom: 50px;
            }
        }
    }
}

@media (max-width: 1199.99px) {
    .modal {
        .modal-dialog {
            max-width: 85%;
        }
    }
}

@media (max-width: 991.99px) {
    .modal {
        .modal-dialog {
            max-width: 95%;
        }

        #form_agenda_online {
            .btn-secondary {
                width: 100%;
            }
        }
    }
}

@media (max-width: 767.99px) {
    .seccao-marcacoes {
        margin-bottom: 0;
        
        #tabela-servicos {
            .nav {
                background-color: transparent;
                margin-bottom: 30px;
                
                .nav-item {
                    padding: 6px;
                    background-color: #f2f2f2;
                    border-radius: 50px;
                    margin: 5px;

                    &:first-of-type {
                        padding-left: 6px;
                    }

                    &:last-of-type {
                        padding-right: 6px;
                    }

                    .nav-link {
                        padding: 8px 16px;
                    }
                }
            }

            .tab-content {
                .tab-pane {
                    .servico {
                        .content-container {
                            padding: 30px 5px 5px 5px;

                            .div-dados-grupo {
                                padding-top: 5px;

                                h5 {
                                    font-size: 17px;
                                    line-height: 130%;
                                    position: relative;
                                    z-index: 5;
                                }

                                span {
                                    font-size: 30px;
                                }

                                .preco-space {
                                    margin-bottom: 0;
                                }
                            }

                            .div-extras {
                                margin-bottom: 15px;
                            }

                            .div-btn {
                                .tempo-container {
                                    font-size: 20px;
                                    margin-bottom: 10px;

                                    i {
                                        font-size: 20px;
                                    }
                                }
                            }

                            .recomended {
                                font-size: 12px;
                                line-height: 12px;
                                padding: 5px;
                            }
                        }

                        .descricao {
                            font-size: 12px;
                        }
                    }
                }
            }
        }
    }

    .modal {
        .modal-dialog {
            max-width: 100%;
            width: 100vw;
            height: 100vh;

            .modal-content {
                height: 100%;
                border-radius: 0;

                .modal-body {
                    overflow-y: auto;

                    h4 {
                        margin-top: 12px;
                    }

                    .tab-content {
                        max-height: 100%;
                    }
                }
            }
        }

        #step-extras {
            .extra {
                .extra-content {
                    > div {
                        &:first-of-type {
                            flex-wrap: wrap;
                        }

                        h5 {
                            width: 100%;
                        }

                        .preco {
                            margin-left: 0;
                            margin-right: auto;
                        }

                        .quantities {
                            margin-left: auto;
                            flex-wrap: nowrap;
                        }
                    }
                }
            }
        }

        #form_agenda_online {
            .btn-secondary {
                width: 100%;
            }
        }
    }
}