@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700');

:root {
    --bg-body: #fff;
    --bg-login-overlay: rgba(255, 255, 255, 0.5);
    --bg-container: #ffffff;
    --bg-sidebar: #f9f9f9;
    --bg-element: #eeeeee;
    --bg-element-hover: #e0e0e0;
    --bg-button: #e0e0e0;
    --bg-modal-overlay: #0000003b;
    --bg-modal: #ffffff;
    --bg-selection: #cccccc;
    --text-main: #1a1a1a;
    --graph-text-color: black;
    --graph-bar-color: #ccc;
    --text-inverse: #ffffff;
    --text-muted: #666666;
    --text-selection: #333333;
    --border: #dddddd;
    --icon-color: #666666;
    --icon-focus: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #000000;
        --bg-login-overlay: transparent;
        --bg-container: #090a0a;
        --bg-sidebar: #090a0a;
        --bg-element: #151515;
        --bg-element-hover: #222;
        --bg-button: #171718;
        --bg-modal-overlay: #151515cf;
        --bg-modal: #fff;
        --bg-selection: #222;
        --text-main: #f0f0f0;
        --graph-text-color: #f0f0f0;
        --graph-bar-color: #333;
        --text-inverse: #000000;
        --text-muted: #757575;
        --text-selection: #b0b0b0;
        --border: #222;
        --icon-color: #757575;
        --icon-focus: #f0f0f0;
    }

    .login,
    .wait {
        background: url(assets/bg.png);
    }

    .controler-sidebar label img {
        -webkit-filter: invert(1);
        filter: invert(1);
    }
}

@media (prefers-color-scheme: light) {
    .login {
        background: url(assets/bg-2.png);

        .banner,
        .controler-sidebar .logo label img {
            -webkit-filter: invert(1);
            filter: invert(1);
        }
    }

    .logoImg {
        -webkit-filter: invert(1);
        filter: invert(1);
    }

    .wait {
        background: url(assets/bg-2.png);

        nav img {
            -webkit-filter: invert(1);
            filter: invert(1);
        }
    }

    #loadPopup img {
        filter: invert(1);
    }

    .oops nav img {
        -webkit-filter: invert(1);
        filter: invert(1);
    }
}

* {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: none;
    outline: none;
    border: none;
    text-decoration: none;
    list-style: none;
    font-family: "Poppins", sans-serif;
    cursor: default;
    /* user-select: none; */
}

body {
    position: relative;
    background-color: var(--bg-body);
    overflow: hidden;
    color: var(--text-main);

    ::-webkit-scrollbar {
        display: none;
    }

    ::-moz-selection {
        background: var(--bg-selection);
        color: var(--text-selection);
    }

    ::selection {
        background: var(--bg-selection);
        color: var(--text-selection);
    }

    .login {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        height: 100dvh;
        background-blend-mode: overlay;
        background-position-y: -200px;
        background-repeat: repeat no-repeat;
        background-size: contain;

        button {
            min-width: 250px;
        }
    }

    nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin-bottom: 10px;
        gap: 10px;
    }

    .button {
        background: var(--bg-button);
        color: var(--text-main);
        min-width: 210px;
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 1.1em;
        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: 12px;
        cursor: pointer;
    }

    .bd {
        border: 1px solid var(--border);
        padding: 10px 20px;
        border-radius: 12px;
    }

    select {
        appearance: base-select;
        min-width: fit-content;
        max-width: 150px;
        padding: 10px;

        option {
            padding: 8px 10px;
            background-color: var(--bg-button);
            color: var(--text-main);
            display: grid;
            place-content: center;
            cursor: pointer;
            border: 1px solid var(--border);
        }

        option:checked {
            background-color: var(--bg-container);
            font-weight: bold;
        }
    }

    ::picker(select) {
        appearance: base-select;
        border: none;
        background-color: var(--bg-button);
        min-width: fit-content;
        max-width: 150px;
    }

    option:first-of-type {
        border-radius: 15px 15px 0 0;
    }

    option:last-of-type {
        border-radius: 0 0 15px 15px;
    }

    ::picker(select) {
        border-radius: 15px;
    }

    option::checkmark {
        display: none;
    }

    option:not(option:last-of-type) {
        border-bottom: none;
    }

    #loadPopup {
        width: 100dvw;
        height: 100dvh;
        display: grid;
        place-content: center;

        .center {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
    }

    img:not([src]),
    img[src=""] {
        visibility: hidden;
    }

    * {
        color: var(--text-main);
    }

    #dash-container {
        background: var(--bg-container);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;

        h1 {
            font-family: "Cormorant", serif;
        }

        button {
            cursor: pointer;

            * {
                cursor: pointer;
            }

            i {
                margin-right: 7px;
            }
        }

        aside {
            padding: 20px;
            min-width: 340px;
            max-width: 340px;
            height: 100dvh;
            overflow-y: auto;
            border-right: 1px solid var(--border);
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            -webkit-box-align: start;
            -ms-flex-align: start;
            align-items: start;
            -webkit-box-pack: start;
            -ms-flex-pack: start;
            justify-content: start;
            gap: 15px;
            position: relative;

            .controler-sidebar {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                -webkit-box-pack: justify;
                -ms-flex-pack: justify;
                justify-content: space-between;
                width: 100%;
                margin-top: 2px;

                .logo {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-align: center;
                    -ms-flex-align: center;
                    align-items: center;
                    gap: 7px;
                }

                label img {
                    cursor: pointer;
                }
            }

            #userInfo {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                width: 100%;
                gap: 15px;
                padding: 14px 15px 13px;

                img {
                    border-radius: 10px;
                    background: var(--border);
                }


                span {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-orient: vertical;
                    -webkit-box-direction: normal;
                    -ms-flex-direction: column;
                    flex-direction: column;

                    * {
                        overflow: hidden;
                        white-space: nowrap;
                        -o-text-overflow: ellipsis;
                        text-overflow: ellipsis;
                        width: 210px;
                    }

                    small {
                        opacity: .8;
                    }

                    a {
                        cursor: pointer;
                    }
                }
            }

            .calendar {
                position: relative;
                width: 100%;
                background: var(--bg-element);
                overflow: hidden;
                padding: 15px 17px 10px;
                min-height: -webkit-fit-content;
                min-height: -moz-fit-content;
                min-height: fit-content;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;

                nav {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-orient: horizontal;
                    -webkit-box-direction: normal;
                    -ms-flex-direction: row;
                    flex-direction: row;
                    -webkit-box-pack: justify;
                    -ms-flex-pack: justify;
                    justify-content: space-between;
                    margin-bottom: 10px;
                    padding-inline: 10px;

                    button {
                        cursor: pointer;
                    }
                }

                .calendar__date {
                    margin-bottom: 10px;
                    display: -ms-grid;
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
                    grid-gap: 10px;
                    font-size: .8em;
                }

                .calendar__day {
                    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;
                    font-weight: 600;
                }

                .calendar__number {
                    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;
                    height: 25px;
                }

                .hoje {
                    background: var(--bg-sidebar);
                    border-radius: 6px;
                }

                .calendar__number--current,
                .calendar__number:hover {
                    font-weight: 700;
                    cursor: pointer;
                }
            }

            .labelNotes {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                width: 100%;
                cursor: pointer;
                padding-block: 11px;
                background: var(--bg);
                gap: 15px;

                * {
                    cursor: pointer;
                }
            }

            #showNotes:checked~ :where(#userInfo, .calendar, .asideBtn, .logoutBtn) {
                display: none;
            }

            #showNotes:checked~.labelNotes {
                border: none;
                padding: 0;
            }

            .noteContent {
                width: 100%;
                display: none;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                -webkit-box-flex: 1;
                -ms-flex: 1;
                flex: 1;
                overflow: hidden scroll;
                gap: 6px;
                padding: 0 0 5px 0;
                position: relative;

                .search-message {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-align: center;
                    -ms-flex-align: center;
                    align-items: center;
                    -webkit-box-pack: justify;
                    -ms-flex-pack: justify;
                    justify-content: space-between;
                    background: var(--bg-body);
                    position: fixed;
                    width: 297.9px;
                    padding: 15px;
                    border-bottom: 1px solid var(--border);
                    border-radius: 11px 11px 0 0;

                    input[type="search"] {
                        -webkit-box-flex: 1;
                        -ms-flex: 1;
                        flex: 1;
                    }

                    i {
                        color: var(--icon-color);
                    }

                    input:focus+i {
                        color: var(--icon-focus);
                    }
                }

                ul {
                    margin-top: 50px;

                    .note-date {
                        font-size: .7em;
                        font-style: italic;
                        padding: 10px;
                    }

                    .note-card {
                        display: -webkit-box;
                        display: -ms-flexbox;
                        display: flex;
                        padding: 10px;
                        gap: 13px;
                        -webkit-box-pack: start;
                        -ms-flex-pack: start;
                        justify-content: start;
                        -webkit-box-align: start;
                        -ms-flex-align: start;
                        align-items: start;

                        .note-content {
                            display: -webkit-box;
                            display: -ms-flexbox;
                            display: flex;
                            -webkit-box-orient: vertical;
                            -webkit-box-direction: normal;
                            -ms-flex-direction: column;
                            flex-direction: column;

                            * {
                                font-size: .8em;
                            }
                        }
                    }

                    :where(.note-card, .note-date):not(:last-of-type) {
                        border-bottom: 1px solid var(--border);
                    }

                    .note-avatar img {
                        --sizeIconNote: 25px;
                        width: var(--sizeIconNote);
                        height: var(--sizeIconNote);
                        border-radius: calc(var(--sizeIconNote) * 3.14);
                        -o-object-fit: cover;
                        object-fit: cover;
                    }
                }
            }

            #showNotes:checked~.noteContent {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
            }

            .asideBtn {
                width: 100%;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                gap: 5px;
                padding-block: 11px;
                font-size: 1em;
            }

            #logoutBtn {
                margin-top: auto;
                cursor: pointer;
            }
        }

        main {
            padding: 20px;
            height: 100dvh;
            width: 100dvw;
            overflow: hidden scroll;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            -webkit-box-align: start;
            -ms-flex-align: start;
            align-items: start;
            -webkit-box-pack: start;
            -ms-flex-pack: start;
            justify-content: start;

            nav {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: start;
                -ms-flex-align: start;
                align-items: start;
                max-width: 800px;
                width: 100%;
                margin-block: 2px 0;
                gap: 20px;
                position: relative;

                #sidebarLabel {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-pack: justify;
                    -ms-flex-pack: justify;
                    justify-content: space-between;
                    -webkit-box-align: center;
                    -ms-flex-align: center;
                    align-items: center;
                    max-width: 800px;
                    width: 100%;

                    div {
                        display: -webkit-box;
                        display: -ms-flexbox;
                        display: flex;
                        -webkit-box-align: center;
                        -ms-flex-align: center;
                        align-items: center;
                        gap: 7px;
                        flex: 1;
                    }

                    i,
                    a img {
                        cursor: pointer;
                    }
                }

                .search-field {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-align: center;
                    -ms-flex-align: center;
                    align-items: center;
                    width: 100%;
                    max-width: 100%;

                    input[type="search"] {
                        width: 100%;
                        color: var(--text-main);
                    }

                    i {
                        color: var(--icon-color);
                    }

                    input:focus+i {
                        color: var(--icon-focus);
                    }
                }
            }

            .monthNavigation {
                margin-block: 15px 0;
                justify-content: space-evenly;
                align-items: center;
                flex-direction: row;
            }

            #content {
                max-width: 800px;
                width: 100%;
            }

            #loading {
                position: absolute;
                top: 50%;
                left: 50%;
                -webkit-transform: translate(-50%, -50%);
                -ms-transform: translate(-50%, -50%);
                transform: translate(-50%, -50%);
            }

            h2 {
                margin-top: 10px;

                span {
                    white-space: nowrap;
                }
            }

            canvas {
                display: block;
                margin-block: 10px 15px;
                max-height: 50dvh;
                background: var(--bg-element);
                padding: 20px;
            }

            ul {
                max-width: 800px;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                gap: 15px;

                li {
                    padding: 15px;
                    background: var(--bg-element);
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-pack: justify;
                    -ms-flex-pack: justify;
                    justify-content: space-between;
                    -webkit-box-align: center;
                    -ms-flex-align: center;
                    align-items: center;
                    white-space: nowrap;
                    gap: 15px;
                }
            }
        }

        .analysis {
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;

            .userPicture {
                border-radius: 50px;
                background: var(--border);
            }


            img:not([src]),
            img[src=""] {
                visibility: hidden;
            }

            .lineContent {
                width: 100%;
                max-width: 800px;
                margin-inline: auto;
                display: flex;
                justify-content: end;
                gap: 10px;
                margin-top: 10px;
            }
        }

        #version {
            position: absolute;
            bottom: 0;
            right: 0;
            margin: 10px 15px;
            font-size: .5em;
            opacity: .5;
            display: none;
        }
    }

    .userInfoModal {
        position: absolute;
        right: 0;
        top: 0;
        border-radius: 20px;
        display: none;
        flex-direction: column;
        width: 300px;
        height: fit-content;
        z-index: 3;
        background: var(--bg-button);
        padding: 15px;
        gap: 15px;

        div {
            display: flex;
            gap: 15px;

            img {
                border-radius: 10px;
            }

            span {
                flex: 1;
                display: flex;
                flex-direction: column;

                * {
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }

        select {
            min-width: 100%;
        }

        button {
            background: var(--bg-body);
            padding: 13px 20px;
            border-radius: 10px;
        }
    }

    .wait,
    .oops {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        height: 100dvh;
        background: var(--bg-container);
        background-position-y: -200px;
        background-repeat: repeat no-repeat;
        background-size: contain;
        text-align: center;
        margin-inline: auto;
        padding-inline: 30px;

        p {
            max-width: 500px;
        }

        button {
            font-size: .8em;
            min-width: -webkit-fit-content;
            min-width: -moz-fit-content;
            min-width: fit-content;
        }
    }

    .employee {
        max-width: 800px;
        width: 100%;
        margin-inline: auto;
        height: 100dvh;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        overflow-y: scroll;

        header {
            display: flex;
            width: 100%;
            justify-content: space-between;
            position: relative;

            .logo {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                gap: 7px;
            }

            h1 {
                font-family: "Cormorant", serif;
            }

            .userIconBtn img {
                border-radius: 50px;
                cursor: pointer;
            }
        }

        .container {
            display: flex;
            flex-direction: column;
            max-width: 800px;
            width: 100%;
            height: auto;
            position: relative;

            button {
                cursor: pointer;

                * {
                    cursor: pointer;
                }
            }

            :disabled {
                cursor: not-allowed;
            }

            #btnVoltar {
                margin-top: 10px;
            }

            .containerbutton {
                position: fixed;
                bottom: 0;
                margin-inline: auto;
                max-width: 800px;
                width: 100%;
                padding: 40px;
                display: flex;
                justify-content: end;

                .newContent {
                    background: var(--bg-selection);
                    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
                    width: 58px;
                    aspect-ratio: 1;
                    border-radius: 18px;
                    display: grid;
                    place-content: center;
                }
            }

            #formLancamento {
                display: flex;
                flex-direction: column;
                gap: 15px;

                #btnVoltar {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                }

                .dateTurn {
                    display: flex;
                    width: 100%;
                    position: relative;
                    justify-content: space-between;

                    input[type="date"] {
                        -webkit-appearance: none;
                        min-width: fit-content;
                        max-width: fit-content;
                        width: fit-content;
                        text-align: center;
                        padding-inline: 0;
                    }

                    input[type="date"]::-webkit-calendar-picker-indicator {
                        display: none;
                        -webkit-appearance: none;
                    }

                    ul {
                        position: absolute;
                        bottom: -137%;
                        left: -.5px;
                        overflow: hidden;
                        text-align: end;
                        width: calc(100% + 1px);
                        border-radius: 0 0 13px 13px;
                        border: 1px solid var(--border);
                        background: var(--bg-button);

                        li {
                            padding: 10px 30px;
                            cursor: pointer;
                        }

                        li:hover {
                            background: var(--bg-element-hover);
                        }
                    }
                }

                textarea {
                    resize: none;
                    min-height: 140px;
                }
            }

            #myNotes {
                flex: 1;
                overflow: scroll;
                display: flex;
                flex-direction: column;

                .noteEmpty {
                    position: absolute;
                    top: 33vh;
                    left: 50%;
                    transform: translate(-50%);
                }

                li {
                    display: flex;
                    flex-direction: column;
                    gap: 15px;

                    .note-date {
                        font-size: .6em;
                        margin-top: 15px;
                        opacity: .7;
                        font-style: italic;
                    }

                    .note-container {
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                        padding-inline: 10px;

                        img {
                            width: 30px;
                            height: 30px;
                            object-fit: cover;
                            border-radius: 15px;
                        }

                        .name {
                            font-size: 1.2em;
                            font-weight: bold;
                        }

                        .note-content {
                            display: flex;
                            gap: 10px;
                        }
                    }
                }
            }
        }
    }

    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-modal-overlay);
        display: none;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        z-index: 3;

        .modal-content {
            background: var(--bg-container);
            padding: 20px 25px;
            max-width: 420px;
            width: 90%;
            max-height: 85dvh;
            min-height: 80vh;
            height: -webkit-fit-content;
            height: -moz-fit-content;
            height: fit-content;
            border-radius: 20px;
            position: relative;
            overflow: scroll;

            .navModal {
                margin-bottom: 10px;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                -webkit-box-pack: justify;
                -ms-flex-pack: justify;
                justify-content: space-between;
                width: 100%;

                #closeModal {
                    cursor: pointer;
                    color: var(--bg);
                    background: none;
                }
            }
        }

        #newDayButton {
            position: absolute;
            bottom: 0;
            right: 0;
            margin: 20px;
            padding: 13px 14px;
            border-radius: 10px;
            cursor: pointer;
        }

        #novoLancamentoForm {
            display: flex;
            flex-direction: column;
            gap: 10px;

            button {
                font-size: .8em
            }
        }

        #formAnotacao {
            display: flex;
            flex-direction: column;
            height: 100%;

            textarea {
                resize: none;
                min-height: 70dvh;
                flex: 1;
                color: var(--text-main);
                cursor: text;
            }

            button {
                position: absolute;
                bottom: 0;
                right: 0;
                margin: 30px 35px;
                border-radius: 12px;
                transition: opacity .3s;
                font-size: .8em;
            }

            :disabled {
                opacity: .7;
                cursor: not-allowed;
            }
        }

        summary {
            cursor: pointer;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: justify;
            -ms-flex-pack: justify;
            justify-content: space-between;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;

            * {
                cursor: pointer;
            }
        }

        i {
            -webkit-transition: -webkit-transform 0.3s ease-in-out;
            transition: -webkit-transform 0.3s ease-in-out;
            -o-transition: transform 0.3s ease-in-out;
            transition: transform 0.3s ease-in-out;
            transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
        }

        details[open] {
            summary {
                margin-bottom: 10px;
            }

            .addValue:not(:first-child) {
                margin-top: 15px;

                label {
                    margin-bottom: -5px;
                    font-size: .7em;

                }
            }

            i {
                -webkit-transform: rotate(180deg);
                -ms-transform: rotate(180deg);
                transform: rotate(180deg);
            }
        }

        .despesas {
            ul {
                margin-top: 20px;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                margin-bottom: -25px;

                li {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-orient: vertical;
                    -webkit-box-direction: normal;
                    -ms-flex-direction: column;
                    flex-direction: column;
                    word-break: break-all;
                    --routeColor: var(--text-muted);

                    .dia {
                        padding-left: 30px;
                        min-width: 60px;
                        white-space: nowrap;
                        position: relative;
                        margin-block: -8px;
                        font-size: .7em;
                        font-style: italic;
                    }

                    .dia::before {
                        position: absolute;
                        left: 0;
                        top: 3px;
                        content: "";
                        width: 10px;
                        height: 10px;
                        background: var(--routeColor);
                        display: block;
                        border-radius: 5px;
                    }
                }

                .desc {
                    padding-block: 15px 20px;
                    margin-left: 4px;
                    padding-left: 25px;
                    border-left: 2px solid var(--routeColor);
                }

                .desc:last-child::before {
                    content: "";
                    position: absolute;
                    left: 28px;
                    width: 2px;
                    height: auto;
                    background: var(--routeColor);
                }
            }
        }

        .remessas {

            ul {
                gap: 15px;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;

                li {
                    padding-right: 10px;
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-pack: justify;
                    -ms-flex-pack: justify;
                    justify-content: space-between;

                    p {
                        text-align: left;
                        min-width: 100px;
                    }
                }
            }
        }

        .pagamentos {
            ul {
                gap: 15px;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
            }
        }

        .paymentForm {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            gap: 15px;

            div,
            label {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                -webkit-box-pack: justify;
                -ms-flex-pack: justify;
                justify-content: space-between;
                cursor: pointer;

                p,
                span,
                i {
                    cursor: pointer;

                }
            }

            .addValue {
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                -webkit-box-align: start;
                -ms-flex-align: start;
                align-items: start;
                gap: 10px;

                input {
                    width: 100%;
                }
            }
        }

        button {
            background: var(--icon-focus);
            color: var(--text-inverse);

            *{
                color: var(--text-inverse);
            }
        }
    }

    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-cancel-button,
    input[type="search"]::-webkit-search-results-button,
    input[type="search"]::-webkit-search-results-decoration {
        display: none;
    }

    input[type="search"],
    input[type="text"],
    input[type="number"] {
        cursor: text;
        color: var(--text-main);
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }
}

.loader {
    margin-top: 15px;
    border-radius: 10px;
    height: 4px;
    width: 150px;
    --c: no-repeat linear-gradient(var(--icon-color) 0 0);
    background: var(--c), var(--c), var(--bg-button);
    background-size: 60% 100%;
    animation: l16 3s infinite;
}

@keyframes l16 {
    0% {
        background-position: -150% 0, -150% 0
    }

    66% {
        background-position: 250% 0, -150% 0
    }

    100% {
        background-position: 250% 0, 250% 0
    }
}

@media only screen and (min-width: 400px)  and (max-width: 728px){
    body select {
        appearance: auto;
        field-sizing: content;
    }
}

@media (min-width: 800px) {
    .controler-sidebar label img {
        display: none;
    }

    main:not(.analysis) {
        nav {
            -webkit-box-orient: horizontal;
            -webkit-box-direction: normal;
            -ms-flex-direction: row;
            flex-direction: row;

            #sidebarLabel {
                visibility: hidden;
                position: absolute;
            }

            .search-field {
                width: 100%;
            }
        }

        .close-menu {
            display: none;
        }
    }

    main {
        position: relative;

        canvas {
            max-width: 800px;
        }
    }

    .analysis .lineContent select {
        width: 200px;
    }
}

@media (max-width: 800px) {
    body {
        position: relative;

        aside {
            background: var(--bg-body);
            position: absolute;
            z-index: 2;
            visibility: visible;

            .controler-sidebar label img {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
            }
        }

        #sidebarControler:checked~aside {
            max-width: 0;
            padding: 0;
            border: none;
            visibility: hidden;

            * {
                display: none;
            }
        }

        main {
            position: absolute;
            width: 100dvw;
            margin-inline: auto;
        }

        .analysis .lineContent select {
            min-width: 100%;
        }

        .close-menu {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
        }
    }
}