.kopere-bi {
    .kopere_dashboard_div,
    .kopere-dashboard-modal {
        .mform {
            fieldset {
                legend .icon,
                .fcontainer {
                    transition: all ease .3s;
                }
                legend .icon {
                    transform: rotate(90deg);
                }
                .fcontainer {
                    opacity: 1;
                    max-height: 8000px;
                }
                &.collapsed {
                    border: none !important;
                    margin-bottom: 0 !important;
                    legend .icon {
                        width: 30px;
                        height: 30px;
                        transform: rotate(0);
                    }
                    .fcontainer {
                        opacity: 0;
                        max-height: 0;
                        height: 0;
                        overflow: hidden;
                    }
                }
                a {
                    outline: none !important;
                    box-shadow: none !important;
                }
            }
        }
        .dashboard-homes {
            .dashboard-home {
                box-shadow: 0 0 21px 3px rgba(139, 132, 118, .05);
                border: none;
                margin-bottom: 1.25rem;
                transition: all .3s ease;
                border-radius: 0.8rem;
                background: #fff !important;
                padding: 0.75rem 1.25rem;
                .category-name {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    h3 {
                        padding: 0;
                        margin: 0;
                    }
                    .buttons-move {
                        display: flex;
                        align-items: center;
                        gap: 7px;
                        i {
                            cursor: pointer;
                        }
                    }
                }
                .list-reports {
                    margin-top: 0.25rem !important;
                    .list-reports-item {
                        position: relative;
                        padding: 0.8rem 0;
                        display: flex;
                        align-items: center;
                        gap: 5px;
                        .line-icon {
                            .icon {
                                width: 50px;
                                min-width: 50px;
                                height: 50px;
                                min-height: 50px;
                            }
                        }
                        .line-title {
                            white-space: nowrap;
                            font-size: 18px;
                            margin-bottom: 0;
                            line-height: 1.4;
                            color: #15264b;
                            margin-top: 0;
                            font-weight: 500;
                        }
                        .line-description {
                            font-size: 13px;
                            color: #8b8476;
                        }
                        + .list-reports-item {
                            border-top: 1px dashed #b8b8b8;
                        }
                    }
                }
            }
        }
        .line {
            position: relative;
            display: block;
            width: 100%;
            background: linear-gradient(45deg, #3494e6, #ec6ead);
            color: #2c303a;
            margin: 10px 0;
            border-radius: 5px;
            text-align: center;
            padding-top: 10px;
            &.line-add {
                padding-top: 4px;
                cursor: pointer;
                margin: 0 0 10px;
            }
            span {
                color: #fff;
                font-weight: bold;
                font-size: 16px;
            }
            .blocks {
                display: flex;
                .block {
                    background: rgba(255, 255, 255, .6);
                    color: #2c303a;
                    padding: 6px;
                    margin: 0 10px 10px;
                    border-radius: 5px;
                    text-align: center;
                    width: 100%;
                    height: 100%;
                    &.block-vazio {
                        padding: 12px;
                    }
                    h4 {
                        margin-bottom: 2px !important;
                    }
                }
            }
            .delete-block,
            .edit-block {
                position: absolute;
                right: 1px;
                color: #fff;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 10px;
                cursor: pointer;
                padding: 0 6px;
            }
            .delete-block {
                top: -7px;
                background: #e91e63;
            }
            .edit-block {
                top: 22px;
                background: #5caf8e;
            }
        }
        .type-chart {
            background: #fff;
            box-shadow: 0 5px 25px rgba(202, 214, 242, .4);
            border: 1px solid #dfe9ff;
            border-radius: 20px;
            padding: 28px 30px;
            transition: all ease 0.5s;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .type-chart-text {
                h4 {
                    margin-bottom: 4px;
                    font-size: 20px;
                }
                p {
                    color: #5f5f5f;
                }
            }
            .type-chart-chart {
                background-repeat: no-repeat;
                background-size: contain;
                width: 300px;
                height: 80px;
                &#chart-info {
                    background: url(../pix/icons/chart/type-chart-info.svg);
                }
                &#chart-table {
                    background: url(../pix/icons/chart/type-chart-table.svg);
                }
                &#chart-maps {
                    background: url(../pix/icons/chart/type-chart-maps.png) center;
                }
                &#chart-html {
                    background: url(../pix/icons/chart/type-chart-html.png) center;
                }
                &#chart-pie {
                    .apexcharts-theme-light {
                        margin: 0 auto;
                    }
                }
            }
        }
        .btn-add-block {
            margin: 0 auto;
            display: block;
            width: min-content;
        }
        #campos_column {
            display: none;
        }
        #campos_column_form {
            position: relative;
            .element-box-itens-vazios {
                .element-box-container {
                    position: relative;
                    display: flex;
                    align-items: center;
                    .type_text {
                        width: 100%;
                        padding-right: 10px;
                    }
                    .type_select {
                        width: 100%;
                    }
                }
            }
            .deletar-item,
            .add-item {
                position: absolute;
                top: -2px;
                right: 0;
                color: #fff;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 10px;
                cursor: pointer;
                padding: 2px 7px;
            }
            .deletar-item {
                background: #e91e63;
            }
            .add-item {
                background: #009688;
                top: -34px;
                right: 41px;
            }
        }
        textarea#commandsql {
            font-family: monospace;
            white-space: nowrap;
        }
        .google-visualization-table-table,
        .google-visualization-table {
            .gradient,
            .google-visualization-table-tr-head {
                background: none !important;
                background-image: none !important;
            }
            .goog-custom-button-outer-box {
                padding: 6px !important;
                font-size: 18px !important;
            }
            .google-visualization-table-type-date {
                white-space: nowrap !important;
            }
            .google-visualization-table-type-number {
                text-align: center !important;
            }
            
            .google-visualization-table-div-page {
                .google-visualization-table-page-numbers {
                    margin-left: 7px !important;
                    .google-visualization-table-page-number {
                        padding: 2px 7px !important;
                        font-size: 15px !important;
                        border: 1px solid #bdbdbd !important;
                        &.current {
                            color: #fff !important;
                            background: #2196f3 !important;
                        }
                    }
                }
                .goog-custom-button-collapse-right {
                    margin: 0 6px !important;
                }
                .goog-custom-button-inner-box {
                    border: none !important;
                }
            }
        }
        .block-title {
            font-weight: 700;
        }
        .element-box {
            margin-bottom: 11px !important;
            padding: 16px !important;
            box-shadow: 0 0 #00000000, 0 0 #00000000, 0 1px 2px 0 rgba(15, 22, 36, 0.06), 0 1px 3px 0 rgba(15, 22, 36, .1);
            iframe {
                margin-bottom: -4px;
            }
            &:not(.theme-light) .block-title {
                //text-shadow: 0 0 5px #666;
            }
            .block-heading {
                .block-title {
                    width: 100%;
                    @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
                    font-family: "DM Sans", sans-serif;
                    font-weight: 500;
                    color: #343742;
                    font-size: 20px;
                    margin-bottom: 20px !important;
                    text-align: center;
                }
                .table-csv-down {
                    display: none;
                    img {
                        height: 30px;
                    }
                }
                .block-controls {
                    position: absolute;
                    right: 0;
                    top: 9px;
                    display: flex;
                    .dataTables_length {
                        white-space: nowrap;
                    }
                }
            }
            &.type-table {
                .block-heading {
                    .block-title {
                        // text-align: right;
                    }
                }
            }
            .group-controls {
                // left: 2px;
                // right: initial;
                // top: -44px;
                input[type=search] {
                    width: 120px;
                    font-size: 16px !important;
                }
            }
        }
        .big-text {
            font-size: 24px;
            text-align: center;
            display: block;
        }
        
        .chart-box {
            height: 100%;
            position: relative;
            //overflow: hidden;
            &.select-theme {
                position: absolute;
                left: 220px;
                top: 0;
                .test-theme {
                    border-radius: 4px;
                    width: 200px;
                    height: 60px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
            .theme-light {
                background-color: #fff !important;
                &.test-theme {
                    border: 1px dashed #d4d4d4;
                    box-shadow: 0 0.5rem 1rem rgba(151, 149, 149, .15);
                }
            }
            .theme-dark {
                background-color: #2b2d3e !important;
                box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
                &, * {
                    color: #e3e2e2 !important;
                }
            }
            .theme-blue {
                background-image: linear-gradient(135deg, #abdcff 10%, #0396ff 100%) !important;
                box-shadow: 0 1px 15px 1px rgba(69, 65, 78, 0.08) !important;
                &, * {
                    color: #fff !important;
                }
            }
            .theme-green {
                background-image: linear-gradient(135deg, #2afadf 10%, #4c83ff 100%) !important;
                box-shadow: 0 1px 15px 1px rgba(69, 65, 78, 0.08) !important;
                &, * {
                    color: #fff !important;
                }
            }
            .theme-orange {
                background-image: linear-gradient(135deg, #ffd3a5 10%, #fd6585 100%) !important;
                box-shadow: 0 1px 15px 1px rgba(69, 65, 78, 0.08) !important;
                &, * {
                    color: #fff !important;
                }
            }
            .theme-pink {
                background-image: linear-gradient(135deg, #ee9ae5 10%, #5961f9 100%) !important;
                box-shadow: 0 1px 15px 1px rgba(69, 65, 78, 0.08) !important;
                &, * {
                    color: #fff !important;
                }
            }
            .theme-light,
            .theme-dark {
                margin: 9px;
                &.type-pie {
                    height: 100%;
                }
                @media (max-width: 900px) {
                    margin: 6px;
                }
                @media (max-width: 600px) {
                    margin: 0;
                }
                .area-chart {
                    height: calc(100% - 16px - 16px);
                    .apexcharts-canvas,
                    svg,
                    foreignObject {
                        height: 100% !important;
                    }
                    &.area-chart-pie {
                        .apexcharts-legend.apexcharts-align-center.apx-legend-position-left {
                            top: 0 !important;
                            height: 100% !important;
                            max-width: 40%;
                        }
                    }
                }
            }
            .theme-blue,
            .theme-green,
            .theme-green,
            .theme-orange,
            .theme-pink {
                position: relative;
                overflow: hidden;
                height: 100%;
                &:before {
                    content: " ";
                    width: 60px;
                    height: 60px;
                    top: -17px;
                    right: -12px;
                    position: absolute;
                    border-radius: 50%;
                    box-shadow: 0 0 0 34px #0202021a;
                    background: #07070740;
                }
                .block-title {
                    text-align: center;
                }
            }
            .maps-online,
            .table,
            .area-chart {
                margin: 0 -16px 0 -16px;
                width: calc(100% + 16px + 16px) !important;
                max-width: 150% !important;
            }
            .maps-online {
                margin-bottom: -22px;
                border-radius: 0 0 4px 4px;
            }
            .type-line {
                .html-before {
                    margin-bottom: 34px;
                }
            }
            .area-chart-area,
            .area-chart-line,
            .area-chart-column {
                @media (min-width: 900px) {
                    margin-top: -45px;
                    .apexcharts-toolbar {
                        position: absolute;
                        //right: auto !important;
                        //left: 10px;
                        top: 4px !important;
                    }
                }
            }
        }
        .dataTables_length,
        .dataTables_filter {
            margin-right: 12px;
            label {
                font-weight: 400 !important;
                font-size: 1.1em !important;
                width: 100%;
            }
            select,
            input {
                padding: 4px !important;
                font-size: 14px !important;
                height: auto !important;
            }
            input[type=search] {
                width: 80px;
                transition: all ease 0.3s;
                &:focus {
                    width: 300px;
                }
            }
        }
        .col-xl-4,
        .col-xl-3,
        .col-xl-5 {
            .footer {
                .dt-buttons {
                    @media (min-width: 1200px) {
                        position: initial;
                    }
                }
            }
        }
        
        .row {
            margin-right: -5px !important;
            margin-left: -3px !important;
            .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto,
            .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto,
            .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto,
            .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto,
            .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
                padding-right: 5px !important;
                padding-left: 5px !important;
            }
        }
        
        div.dt-buttons {
            //position: absolute;
            //right: 0;
            //bottom: 0;
            .dt-button {
                //background: none !important;
                &.buttons-print,
                &.buttons-pdf,
                &.buttons-csv,
                &.buttons-copy,
                &.buttons-excel {
                    display: inline-block;
                    padding: 10px 9px;
                    &::before {
                        content: " ";
                        background-size: contain;
                        height: 20px;
                        width: 20px;
                        display: block;
                        font-size: 19px;
                    }
                    span {
                        display: none;
                        opacity: 0;
                        z-index: 9;
                        position: absolute;
                        left: -5px;
                        bottom: 0;
                        transition: all ease .3s;
                    }
                    &:hover {
                        overflow: initial;
                        span {
                            display: inline-block;
                            opacity: 1;
                            left: -29px;
                            bottom: -18px;
                            width: 100px;
                            text-align: center;
                        }
                    }
                }
                &.buttons-print::before {
                    background-image: url('[[pix:local_kopere_bi|action-table/print]]');
                }
                &.buttons-pdf::before {
                    background-image: url('[[pix:local_kopere_bi|action-table/pdf]]');
                }
                &.buttons-csv::before {
                    background-image: url('[[pix:local_kopere_bi|action-table/csv]]');
                }
                &.buttons-copy::before {
                    background-image: url('[[pix:local_kopere_bi|action-table/copy]]');
                }
                &.buttons-excel::before {
                    background-image: url('[[pix:local_kopere_bi|action-table/excel]]');
                }
            }
        }
        .dataTables_wrapper {
            table.dataTable {
                th, td {
                    vertical-align: middle !important;
                    line-height: 1.25 !important;
                }
                th {
                    // padding: 5px 19px 5px 9px !important;
                }
                td {
                    // padding: 4px !important;
                }
                .hover-pointer {
                    tr {
                        cursor: pointer;
                    }
                }
            }
            .dataTables_info {
                padding-top: 5px;
            }
            .dataTables_paginate .paginate_button {
                padding: 10px 14px !important;
                border: none !important;
                background: #e7e7e7;
                margin: 0 1px;
                cursor: pointer;
            }
            .media-object {
                border-radius: 50%;
                max-height: 40px;
                width: 35px;
                min-width: 35px;
                height: 35px;
                min-height: 35px;
            }
        }
    }
    .kopere_dashboard_div {
        .group-controls {
            position: absolute;
            right: -10px;
            top: -44px;
        }
    }
    .kopere-dashboard-modal {
        .group-controls {
            display: flex;
            align-items: center;
            width: 100%;
            justify-content: flex-end;
            select {
                width: auto;
            }
        }
        .footer,
        .dataTables_navigate_area {
            width: 100%;
            justify-content: space-between;
            align-items: center;
        }
        .ui-widget-header {
            background: none !important;
            border: none !important;
        }
        .ui-dialog-titlebar-close {
            background: none !important;
            border: none !important;
        }
    }
    #chart-filter {
        padding-bottom: 11px;
    }
    .ace_editor,
    .ace_editor * {
        font-family: 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace !important;
        font-size: 12px !important;
        line-height: normal !important;
    }
    
    #chart-course-button-open {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    #chart-course-datatable-select {
        min-width: 800px;
        min-height: 450px !important;
    }
    #chart-user-button-open {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    #chart-user-datatable-select {
        min-width: 800px;
        min-height: 450px !important;
    }
    .modal-xl {
        @media (min-width: 992px) {
            max-width: 800px !important;
        }
        @media (min-width: 1200px) {
            max-width: 1140px !important;
        }
    }
}
@mixin local_kopere_bi_darkmodecode {
    [data-bs-theme] {
        .kopere-bi .kopere_dashboard_div,
        .kopere-bi .kopere-dashboard-modal {
            .dashboard-homes .dashboard-home .category-box {
                background-color: #ffffff0d;
            }
            .list-reports .line-titles .line-title {
                color: #dbdbdc;
                font-size: 20px;
                font-weight: 600;
            }
            
            .chart-box .theme-light {
                background-color: ffffff14 !important;
            }
            .element-box .block-heading .block-title {
                color: #d7d4d4;
            }
        }
    }
}
//@media (prefers-color-scheme: dark) {
//    @include local_kopere_bi_darkmodecode;
//}
[data-bs-theme=dark] {
    @include local_kopere_bi_darkmodecode;
}