* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    list-style: none;
}
  
body {
    font-size: 13px;
    font-family: "Poiret One", sans-serif;
    /* font-weight: 400; */
    font-style: normal;
    letter-spacing: 1.2px;
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar {
    width: 0.6em;
    height: 0.6em;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 45, 85, .2);
    border-radius: 2em;
}

input {
  transition: background-color 5000s ease-in-out 0s;
}

div.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.5); */
    z-index: 10000000000;
    display: none;

    div.loading {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            position: relative;
            height: 10vh;
            opacity: 0.4;
        }
    }
}

div#readingBiometrics.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 10000000000;
    display: none;

    div.loading {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            position: relative;
            height: 15vh;
            opacity: 0.7;
        }
    }
}

div.alert-systems {
    position: fixed;
    top: calc(7vh + .5em);
    right: .5em;
    width: 400px;
    height: max-content;
    min-height: 7vh;
    cursor: pointer;
    border-radius: .7em;
    overflow: hidden;
    background-color: white;
    padding: 1em;
    display: flex;
    flex-direction: row;
    gap: 1em;
    z-index: 1000000000;
    animation: slidein 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;

    img {
        position: relative;
        height: 5vh;
    }

    p {
        position: relative;
        width: 100%;
        margin: 0;
        text-align: justify;
        color: white;
        font-size: 1em;
    }
}

div.alert-systems.info {
    background-color: rgb(71, 116, 156);
}

div.alert-systems.check {
    background-color: rgb(81, 158, 81);
}

div.alert-systems.pend {
    background-color: rgb(255, 115, 115);
}

div.alert-systems::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0.5em;
    /* background-color: yellow; */
    animation: slidetimeout 3s forwards;
}

div.alert-systems.info::before {
    background-color: rgba(0, 45, 85, 1);
}

div.alert-systems.check::before {
    background-color: rgba(0, 128, 0, 1);
}

div.alert-systems.pend::before {
    background-color: rgb(255, 0, 0);
}

@keyframes slidein {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes slidetimeout {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

div.modal-systems {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000000000;
    background-color: rgba(0, 45, 85, .3);
    padding: 7vh;
    display: none;

    div.modal-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: start;
        border: none;
        padding: 0;
        border-radius: 0;
        background-color: transparent;

        div.content {
            position: relative;
            width: 500px;
            max-height: 100%;
            background-color: white;
            border-radius: 1em;

            div.header {
                position: relative;
                width: 100%;
                height: 7vh;
                border-bottom: 1px solid rgba(0, 45, 85, .1);
                padding: 0 2em;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 2em;

                span {
                    font-size: 1.2em;
                    color: rgba(0, 45, 85, 1);
                    display: -webkit-box;
                    -webkit-line-clamp: 1;       /* número de linhas desejadas */
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

                a {
                    text-decoration: none;
                    color: rgba(0, 45, 85, 1);
                    font-size: 1.2em;
                }

                a:hover {
                    text-decoration: none;
                    color: rgba(0, 45, 85, 1);
                }
            }

            div.body {
                position: relative;
                width: 100%;
                max-height: calc(100% - 14vh);
                padding: 2em;
                overflow: auto;

                div.inputs {
                    position: relative;
                    width: 100%;
                    height: max-content;
                    display: flex;
                    flex-direction: column;
                    margin-bottom: 2em;

                    label {
                        font-size: 1em;
                    }

                    input,
                    select,
                    textarea {
                        position: relative;
                        box-shadow: 0 0 0 0;
                        outline: 0;
                        border: none;
                        width: 100%;
                        padding: .3em .7em;
                        font-size: 1em;
                        border: .1em solid rgba(0, 45, 85, .3);
                        border-radius: .5em;
                        color: rgba(0, 45, 85, 1);
                        resize: none;
                    }

                    input:focus,
                    select:focus,
                    textarea:focus {
                        border-color: rgba(0, 45, 85, .7);
                    }

                    select {
                        padding: .5em .7em;

                        option {
                            color: rgba(0, 45, 85, 1);
                        }
                    }

                    input[type="date"]::-webkit-calendar-picker-indicator {
                        cursor: pointer;
                    }

                    /* input[type=number],
                    input[type=date] {
                        width: max-content;
                    } */
                    
                    div.range {
                        position: relative;
                        width: 100%;
                        display: flex;
                        flex-direction: row;
                        gap: 1em;
                    }

                    div.checkboxs {
                        position: relative;
                        width: 100%;
                        padding: 1em;
                        border: .1em solid rgba(0, 45, 85, .3);
                        border-radius: .5em;
                        display: flex;
                        flex-direction: column;
                        gap: 1em;

                        div.checkbox {
                            position: relative;
                            width: 100%;
                            display: flex;
                            flex-direction: row;
                            align-items: start;
                            justify-content: start;
                            gap: .5em;

                            input {
                                width: max-content;
                                cursor: pointer;
                                accent-color: rgba(0, 45, 85, 1);
                                width: 1em;
                                height: 1em;
                            }

                            label {
                                font-size: 1em;
                                margin: 0;
                                margin-top: -.25em;
                                cursor: pointer;
                            }
                        }
                    }

                    div.custom-selects {
                        width: 100%;
                        position: relative;

                        div.select-btn {
                            width: 100%;
                            border: .1em solid rgba(0, 45, 85, .3);
                            border-radius: .5em;
                            padding: .3em .7em;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            cursor: pointer;

                            span {
                                overflow: hidden;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                            }

                            i {
                                transition: transform 0.3s;
                                color: rgba(50, 50, 50, 1);
                            }
                        }

                        div.select-btn.open {
                            border-radius: .5em .5em 0 0;

                            i {
                                transform: rotate(180deg);
                            }
                        }

                        div.options-list {
                            display: none;
                            position: absolute;
                            top: calc(100% + .2em);
                            left: 0;
                            width: 100%;
                            max-height: 250px;
                            overflow-y: auto;
                            background-color: white;
                            border: .1em solid rgba(0, 45, 85, .3);
                            border-radius: 0 0 .5em .5em;
                            box-shadow: 0 .1em .3em rgba(0, 45, 85, 0.1);
                            z-index: 1000;

                            label.option {
                                display: flex;
                                align-items: center;
                                padding: .5em;
                                cursor: pointer;
                                font-weight: normal;
                                transition: .3s;
                                margin: 0;

                                display: -webkit-box;
                                -webkit-line-clamp: 1;       /* número de linhas desejadas */
                                -webkit-box-orient: vertical;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                white-space: nowrap;

                                input {
                                    margin-right: .5em;
                                    width: max-content;
                                    accent-color: rgba(0, 45, 85, 1);
                                    width: 1em;
                                    height: 1em;
                                }
                            }

                            label.option:hover {
                                background-color: rgba(0, 45, 85, .1);
                            }
                        }

                        div.options-list.show {
                            display: block;
                        }
                    }

                    div.list-options {
                        position: relative;
                        width: 100%;
                        height: max-content;

                        div.select-content {
                            border: .1em solid rgba(0, 45, 85, .7);
                            border-top: none;
                            border-radius: 0 0 .5em .5em;
                            padding: .3em .3em;
                            width: 100%;
                            display: none;
                            position: absolute;
                            z-index: 1;
                            background-color: white;

                            ul.options {
                                position: relative;
                                height: 100%;
                                max-height: 250px;
                                list-style: none;
                                overflow: auto;
                                font-size: 1em;
                                margin: 0;

                                li {
                                    cursor: pointer;
                                    overflow: hidden;
                                    white-space: nowrap;
                                    text-overflow: ellipsis;
                                    padding: .3em .7em;
                                    border-radius: .5em;
                                    color: rgba(0, 45, 85, 1);
                                    transition: background-color 0.3s;
                                }

                                li:hover {
                                    background-color: rgba(0, 45, 85, .1);
                                }

                                li.selected {
                                    background-color: rgba(0, 45, 85, .1);
                                }
                            }
                        }
                    }
                }

                div.modal-message-delete {
                    position: relative;
                    width: 100%;
                    height: max-content;

                    p {
                        position: relative;
                        width: 100%;
                        text-align: left;
                        margin: 0;
                        font-size: 1em;
                    }
                }

                div.upload-areas {
                    position: relative;
                    width: 100%;
                    height: max-content;

                    label.upload-area {
                        position: relative;
                        width: 100%;
                        height: max-content;
                        padding: 1em;
                        margin: 0;
                        margin-bottom: 1em;
                        border: .1em solid rgba(0, 45, 85, .1);
                        border-radius: 1em;
                        cursor: pointer;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
                        transition: .3s;

                        input {
                            display: none;
                        }

                        strong {
                            width: 100%;
                            text-align: center;
                            font-size: 1em;
                        }

                        span {
                            width: 100%;
                            text-align: center;
                            color: rgba(0, 45, 85, .3);
                            font-size: .9em;
                        }
                    }

                    label.upload-area.highlight {
                        strong,
                        span {
                            opacity: .3;
                        }
                    }

                    div.selected-files {
                        position: relative;
                        width: 100%;
                        height: max-content;

                        ul {
                            position: relative;
                            width: 100%;
                            height: max-content;
                            margin: 0;

                            li {
                                position: relative;
                                width: 100%;
                                margin-bottom: .7em;
                                display: flex;
                                flex-direction: row;
                                align-items: center;
                                justify-content: space-between;
                                gap: 2em;

                                span {
                                    color: rgba(0, 45, 85, .3);
                                    display: -webkit-box;
                                    -webkit-line-clamp: 1;       /* número de linhas desejadas */
                                    -webkit-box-orient: vertical;
                                    overflow: hidden;
                                    text-overflow: ellipsis;

                                    svg {
                                        margin-right: .5em;
                                        color: rgba(0, 45, 85, .5);
                                    }
                                }

                                a {
                                    text-decoration: none;
                                    color: rgba(0, 45, 85, 1);
                                }

                                a:hover {
                                    text-decoration: none;
                                    color: rgba(0, 45, 85, 1);
                                }
                            }
                        }
                    }
                }

                div.attachments {
                    position: relative;
                    width: 100%;
                    height: max-content;

                    ul {
                        position: relative;
                        width: 100%;
                        margin: 0;
                        li {
                            position: relative;
                            width: 100%;
                            margin-bottom: 1em;
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            justify-content: space-between;
                            gap: 2em;

                            a {
                                text-decoration: none;
                                color: rgba(0, 45, 85, 1);
                            }

                            a:hover {
                                text-decoration: none;
                                color: rgba(0, 45, 85, 1);
                            }

                            a:nth-child(1) {
                                display: -webkit-box;
                                -webkit-line-clamp: 1;       /* número de linhas desejadas */
                                -webkit-box-orient: vertical;
                                overflow: hidden;
                                text-overflow: ellipsis;

                                svg {
                                    margin-right: .5em;
                                    color: rgba(0, 45, 85, .5);
                                }
                            }
                        }
                    }
                }
            }

            div.footer {
                position: relative;
                width: 100%;
                height: 7vh;
                border-top: 1px solid rgba(0, 45, 85, .1);
                padding: 0 1em;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: end;
                gap: .5em;

                button {
                    position: relative;
                    font-size: 1em;
                    box-shadow: 0 0 0 0;
                    outline: 0;
                    border: none;
                    border: .1em solid rgba(0, 45, 85, .1);
                    box-shadow: none;
                    border-radius: .5em;
                    cursor: pointer;
                    padding: .3em 1em;
                    background-color: white;
                    color: rgba(0, 45, 85, 1);
                    display: flex;
                    align-items: center;
                    gap: .5em;
                    transition: .3s;
                }

                button:hover {
                    background-color: rgba(0, 45, 85, .1);
                }

                button[data-access=false],
                button[data-access=false]:hover {
                    color: rgba(220, 220, 220, 1);
                    background-color: transparent;
                }
            }
        }
    }
}

div.dropdown {
    a.dropdown-toggle {
        text-decoration: none;
        color: rgba(0, 45, 85, 1);
        font-size: 1em;
    }

    a.dropdown-toggle:hover {
        text-decoration: none;
        color: rgba(0, 45, 85, 1);
    }

    a.dropdown-toggle::after {
        display: none !important;
    }

    div.dropdown-menu {
        position: relative;
        width: max-content;
        font-size: 1em;
        border: none;
        border: .1em solid rgba(0, 45, 85, .1);
        background-color: white;
        color: rgba(0, 45, 85, 1);
        padding: 0;

        span.dropdown-item-text {
            font-size: 1em;
            color: rgba(0, 45, 85, 1);
            padding: .5em 1em;
        }

        a.dropdown-item {
            text-decoration: none;
            font-size: 1em;
            color: rgba(0, 45, 85, 1);
            padding: .5em 1em;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: start;
            gap: .5em;
            transition: .3s;
        }

        a.dropdown-item:focus {
            background-color: transparent;
        }

        a.dropdown-item:hover {
            text-decoration: none;
            color: rgba(0, 45, 85, 1);
            background-color: rgba(0, 45, 85, .1);
        }

        a.dropdown-item[data-access=false],
        a.dropdown-item[data-access=false]:hover {
            color: rgba(220, 220, 220, 1);
            background-color: transparent;
        }
    }
}

div.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

label.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
    margin: 0;
}

label.custom-checkbox input[type="checkbox"] {
    display: none;
    margin: 0;
}

label.custom-checkbox span.checkmark {
    width: 1.2em;
    height: 1.2em;
    background-color: transparent;
    border: 0.1em solid rgba(0, 45, 85, .7);
    color: rgba(0, 45, 85, 1);
    border-radius: 0.2em;
    display: inline-block;
    margin: 0;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

label.custom-checkbox input[type="checkbox"]:checked + span.checkmark {
    background-color: transparent;
    border-color: rgba(0, 45, 85, 1);
    color: rgba(0, 45, 85, 1);
}

label.custom-checkbox input[type="checkbox"]:checked + span.checkmark::after {
    content: "✔";
    color: rgba(0, 45, 85, 1);
    font-size: .9em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-device-width: 480px) {
    body {
        font-size: 2.2em;
    }

    div.modal-systems {
        padding: 7vh 1em;

        div.modal-content {
            div.content {
                width: 100%;
            }
        }
    }
}