.table thead > tr th {
    background-color: #00a65a !important;
    color: #fff;
}

.multiSelect .title {
    height: 24px !important;
}

.multiSelect {
    width: 200px !important;
}

.navbar-nav > .notifications-menu > .dropdown-menu,
.navbar-nav > .messages-menu > .dropdown-menu,
.navbar-nav > .tasks-menu > .dropdown-menu {
    width: 400px !important;
}

.navbar-custom-menu {
    .dropdown.user-menu {
        i {
            font-size: 17px;
            margin: 0 !important;
        }
    }
}

#whatsapp-buttons-area {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 30px;
}

.widget-user-header > .widget-user-username {
    margin: 0;
    text-align: center;
}

.box-footer {
    .nav.nav-stacked {
        overflow: auto;
        &:before,
        &:after {
            display: none;
        }

        & > li {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: baseline;
            -ms-flex-align: baseline;
            align-items: baseline;
            padding: 10px 5px;

            a,
            span {
                display: block;
                height: auto;
            }

            a {
                padding: 0;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: baseline;
                -ms-flex-align: baseline;
                align-items: baseline;
                gap: 10px;
            }
        }
    }
}

html {
    .navbar-nav > .messages-menu > .dropdown-menu > li .menu {
        overflow-y: auto !important;
    }

    .navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > * {
        margin: 0;
        white-space: normal;
    }
}

.login-area form {
    max-width: 576px;

    input {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 767px) {
    #whatsapp-buttons-area {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 10px;

        .input-form {
            width: 100%;

            button {
                max-width: 350px;
                margin: 0 auto;
                width: 100%;
            }
        }
    }

    html {
        .navbar-custom-menu > .navbar-nav > li.messages-menu > .dropdown-menu {
            left: 0;
            right: 0;
            max-width: 100%;
        }
    }
}

.ui-dialog {
    left: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    -ms-grid-column-align: center;
    justify-self: center;
}

table.whatsapp-error-messages {
    overflow: auto;
    max-height: calc(100lvh - 150px);
    display: block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

#dialog-wrapper {
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: fixed;
    left: 230px;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10000;

    .ui-dialog[role="dialog"] {
        left: auto !important;
        margin-left: auto !important;
    }

    &:has(.ui-dialog:not([style*="display: none"])) {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    @media screen and (max-width: 767px) {
        & {
            left: 0;
        }
    }
}

#form-importacao {
    .form-group .checkbox {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
    }
}

/* MODAL DE CONFIRMAÇÃO DE AÇÃO: encerramento de chamadas e processamento de cursos */
#btn-salvar,
.modal-confirmation-action,
#cta-modal-confirmation-action {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

#btn-salvar,
#cta-modal-confirmation-action {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 1;
    padding: 7px 10px;
    color: #fff;
    border-radius: 5px;
    border: none;
    border: 0 2px 3px rgba(0, 0, 0, 0.125);
}

.full-page-loading {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: none;

    &.loading {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}

.full-page-loading,
.ui-dialog:has(.modal-dialog-with-loading),
.ui-dialog:has(.has-spinner),
.modal-confirmation-action {
    .loading-spinner {
        display: none;
        margin: 0 auto;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;

        .progress-courses {
            width: 100%;
            margin-top: 10px;
            display: none;

            p {
                text-align: center;
                margin: 0;
            }
        }
    }

    &.loading {
        .modal-content,
        .ui-dialog-buttonset {
            padding-bottom: 20px;
        }

        .loading-spinner {
            margin-top: 15px;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;

            .progress-courses {
                display: block;
            }
        }

        .loader {
            display: block;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            position: relative;
            -webkit-animation: rotate 1s linear infinite;
            animation: rotate 1s linear infinite;
        }

        .loader::before {
            content: "";
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            position: absolute;
            inset: 0px;
            border-radius: 50%;
            border: 5px solid #00a65a;
            -webkit-animation: prixClipFix 2s linear infinite;
            animation: prixClipFix 2s linear infinite;
        }
    }
}

.modal-confirmation-action {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 3;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;

    .modal-dialog {
        z-index: 1041;

        .modal-content {
            margin: 0 auto;
            background: #fff;
            width: auto;
            border-radius: 0.3rem;

            .modal-header {
                position: relative;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-pack: center;
                -ms-flex-pack: center;
                justify-content: center;

                h3 {
                    max-width: calc(100% - 20px);
                    margin: 0 auto;
                }

                .close-modal {
                    position: absolute;
                    right: 10px;
                    border: none;
                    background: unset;

                    i {
                        font-size: 15px;
                        color: #333;
                    }
                }
            }

            .modal-body {
                ul {
                    padding: 0;
                    margin: 0;

                    li {
                        list-style: none;
                    }
                }
            }
        }
    }
}

body {
    &.show-modal-confirmation {
        .modal-confirmation-action {
            visibility: visible;
            opacity: 1;
        }
    }

    &.show-btn-save,
    &.show-btn-close {
        #btn-salvar,
        #cta-modal-confirmation-action {
            visibility: visible;
            opacity: 1;
        }
    }
}

@media screen and (min-width: 768px) {
    .modal-confirmation-action {
        left: 230px;
    }
}

@media screen and (max-width: 767px) {
    .modal-confirmation-action {
        .modal-body {
            ul {
                overflow: auto;
                display: -webkit-box;
                -webkit-line-clamp: 10;
                line-clamp: 10;
                -webkit-box-orient: vertical;
            }
        }
    }
}

body.show-modal-confirmation {
    overflow-y: hidden;
}

@-webkit-keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes prixClipFix {
    0% {
        -webkit-clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }
    25% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 0,
            100% 0,
            100% 0
        );
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }
    50% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            100% 100%,
            100% 100%
        );
        clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            100% 100%,
            100% 100%
        );
    }
    75% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            0 100%,
            0 100%
        );
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }
    100% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            0 100%,
            0 0
        );
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    }
}

@keyframes prixClipFix {
    0% {
        -webkit-clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }
    25% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 0,
            100% 0,
            100% 0
        );
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }
    50% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            100% 100%,
            100% 100%
        );
        clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            100% 100%,
            100% 100%
        );
    }
    75% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            0 100%,
            0 100%
        );
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }
    100% {
        -webkit-clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            0 100%,
            0 0
        );
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    }
}

.fieldset-select-all {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 8px;
    border-bottom: none !important;

    input,
    label {
        margin: 0;
        line-height: normal;
    }
}

.fieldset-close {
    text-align: center;
}

td.actions:has(li .import-people) ul,
td.actions:has(li .import-cities) ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 8px;

    .btn-import-all,
    .btn-import-all-cities {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 4px;

        svg {
            width: 15px;
            height: auto;
        }
    }
}

.actived-filters {
    margin-bottom: 30px;

    h5 {
        margin: 20px 0 13px;
        font-size: 15px;
        font-weight: 600;
    }

    ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        gap: 14px;
        padding: 0;
        margin-bottom: 0;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;

        & > li {
            list-style: none;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: start;
            -ms-flex-align: start;
            align-items: flex-start;
            gap: 10px;
            border-radius: 7px;
            padding: 10px 13px;
            position: relative;

            &:has(button) {
                padding-right: 30px;
            }

            p {
                margin: 0;
                line-height: normal;
            }

            button {
                border: none;
                padding: 0;
                background: transparent;
                height: 17px;
                width: 17px;
                border-radius: 50%;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                -webkit-box-pack: center;
                -ms-flex-pack: center;
                justify-content: center;
                position: absolute;
                right: 4px;
                top: 4px;
            }
        }
    }
}

.filters-form div:has(> select#curso) .ms-options ul {
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    column-count: 1 !important;
}

table.dataTable tbody tr {
    &:hover {
        outline: 1px solid #3c8dbc;
    }
}

.box-body p {
    margin-bottom: 18px;
}

.box-body .text-muted {
    color: #444 !important;
}

.box-body .text-muted p {
    margin-bottom: 10px;
}
