﻿.pre_menu-parent-item,
.pre_menu-child-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: calc(100% - 50px);
    height: 100%;
    padding-left: 1rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .pre_menu-parent-item input[type="checkbox"],
    .pre_menu-child-item input[type="checkbox"] {
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    } 

.pre_checkmark {
    height: 25px;
    min-width: 25px;
    background-color: var(--ecm-dashboard-BP-filtryKategorie);
    border: 1px solid #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .pre_checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

.pre_menu-parent-item input:checked ~ .pre_checkmark:after {
    display: block;
}

.pre_menu-child-item input:checked ~ .pre_checkmark:after {
    display: block;
}

.pre_menu-parent-item .pre_checkmark:after {
    width: 6px;
    height: 12px;
    border: var(--pre-menu-item-border);
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.pre_menu-child-item .pre_checkmark:after {
    width: 6px;
    height: 12px;
    border: var(--pre-menu-item-border);
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


.pre_parentContainer {
    width: 100%;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--ecm-dashboard-BP-filtryKategorie);
    overflow: hidden;
}

    .pre_parentContainer:hover {
        background-color: var(--ecm-dashboard-BP-filtryKategorie-najeto);
        transition: 0.3s;
    }


.pre_menu-child-item {
    padding: 1rem 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

    .pre_menu-child-item:hover {
        transition: 0.3s;
        background-color: var(--ecm-dashboard-BP-filtryKategorie);
    }

.pre_nav_text {
    padding-left: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--pre-nav-text-color);
}



.pre_check-box {
    width: 20px;
    height: 20px;
}

.pre_navIco {
    display: flex;
    width: 50px;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

    .pre_navIco:hover {
        color: var(--pre-icon-color);
        scale: 1.1;
    }

.pre_rotateIcon {
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

/*sidebar predikce*/


.pre_menu-parent-item,
.pre_menu-child-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: calc(100% - 50px);
    height: 100%;
    padding-left: 1rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .pre_menu-parent-item input[type="checkbox"],
    .pre_menu-child-item input[type="checkbox"] {
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.pre_checkmark {
    height: 25px;
    min-width: 25px;
    background-color: var(--ecm-dashboard-BP-filtryKategorie);
    border: var(--pre_checkmark-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .pre_checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

.pre_menu-parent-item input:checked ~ .pre_checkmark:after {
    display: block;
}

.pre_menu-child-item input:checked ~ .pre_checkmark:after {
    display: block;
}

.pre_menu-parent-item .pre_checkmark:after {
    width: 6px;
    height: 12px;
    border: var(--pre-menu-item-border-after);
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.pre_menu-child-item .pre_checkmark:after {
    width: 6px;
    height: 12px;
    border: var(--pre-menu-item-border-after);
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


.pre_parentContainer {
    width: 100%;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--ecm-dashboard-BP-filtryKategorie);
    overflow: hidden;
}

    .pre_parentContainer:hover {
        background-color: var(--ecm-dashboard-BP-filtryKategorie-najeto);
        transition: 0.3s;
    }


.pre_menu-child-item {
    padding: 1rem 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

    .pre_menu-child-item:hover {
        transition: 0.3s;
        background-color: var(--ecm-dashboard-BP-filtryKategorie);
    }
    

.pre_check-box {
    width: 20px;
    height: 20px;
}

.pre_navIco {
    display: flex;
    width: 50px;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

    .pre_navIco:hover {
        color: var(--pre-icon-color);
        scale: 1.1;
    }

.pre_rotateIcon {
    transform: rotate(-90deg);
    transition: transform 0.3s;
}


.ecm-dashboard-rangeButton {
    background-color: var(--pre-dashboard-renge-button-bg);
    color: var(--pre-dashboard-rande-button-color);
    border: var(--pre-dashboard-rande-button-border);
    margin: 3px 2px !important;
    padding: 3px 15px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    height: 30px;
    border-radius: 3px;
    line-height: 1rem;
    box-shadow: var(--pre-dashboard-rande-button-box-shadow);
    white-space: nowrap;
}

    .ecm-dashboard-rangeButton:hover {
        border-color: var(--pre-dashboard-rangeButton-hover-border-color);
    }

    .ecm-dashboard-rangeButton.active {
        border-color: var(--pre-dashboard-rangeButton-hover-border-color);
        background-color: var(--pre-dashboard-rande-button-bg);
        color: var(--pre-dashboard-rande-button-bg-active);
    }

    .ecm-dashboard-rangeButton:focus {
        outline: none;
    }

#customRangePicker.calendar-active {
    border: var(--pre-custom-dashboard-picker-calendar-active-border) !important;
    box-shadow: var(--pre-custom-dashboard-picker-calendar-box-shadow);
}

.calendar-active {
    border: var(--pre-calendar-active-border);
}

.calendar-and-buttons-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.prediction-calendar {
    width: 24.2%;
    height: 30px;
    margin-left: 8px;
    margin-right: 8px;
}

.aggregation-buttons {
    display: inline-block;
    width: 70%;
    margin-left: 5%;
}

.aggregation-buttons button {
    font-size: var(--ecm-dashboard-VT-btnObdobi);
    color: var(--ecm-dashboard-BT-btnObdobi);
    padding: 3px 15px !important;
    width: 100%;
    max-width: 170px;
    min-width: 100px;
    height: 30px;
    line-height: var(--ecm-dashboard-VT-btnObdobi);
    cursor: pointer;
    border-radius: 3px;
    background-color: var(--ecm-dashboard-BP-btnObdobi);
    white-space: nowrap;
    outline: 0;
    border: none;
}

.aggregation-buttons button.active {
    background-color: var(--ecm-dashboard-BP-btnObdobi-aktiv);
    color: var(--ecm-dashboard-BT-btnObdobi-aktiv);
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.ecm-dashboard-rangeButton {
    margin-right: 10px;
    padding: 5px 10px;
    border: none;
    background-color: var(--pre-dashboard-renge-button-bg);
    color: var(--pre-dashboard-rande-button-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: var(--pre-dashboard-rande-button-box-shadow);
    border: var(--pre-dashboard-rande-button-border);
}

    .ecm-dashboard-rangeButton:hover {
        background-color: var(--pre-dashboard-rangeButton-hover-bg);
        color: var(--pre-dashboard-rangeButton-hover-color);
    }

@media (max-width: 768px) {
    .calendar-and-buttons-wrapper {
        display: block;
    }

    .prediction-calendar {
        width: 100%;
        margin-bottom: 10px;
    }

    .aggregation-buttons {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .ecm-dashboard-rangeButton {
        width: 48%;
        margin-bottom: 5px;
    }
}


.ecm-button-filter-custom {
    color: var(--pre-button-filter-custom-color);
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .ecm-button-filter-custom.fixed-top-left {
        position: fixed;
        top: 34%;
        left: 0%;
        z-index: 9999;
    }

.ecm-dashboard-filtry-custom {
    border-radius: 5px;
    box-shadow: var(--pre-dashboard-filtry-custom-box-shadow);
    left: 0%;
    top: 5%
}

.ecm-DashboardContent-custom {
    margin-top: 0px;
}

.ecm-dashboard-prediction {
    display: grid;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    padding-top: 0px !important;
    padding: 5px;
    grid-template-columns: 1fr 5px 3fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "header header header"
        "sidebar splitter content";
    /*font-family: 'Segoe UI';*/
    background-color: var(--ecm-dashboard-BP);
}


@media (max-width: 768px) {
    .ecm-dashboard-filtry-custom {
        display: none;
        width: 100%;
        border: var(--pre-dashboard-rande-button-border);
    }

    .ecm-dashboard-prediction {
        display: block;
        padding: 10px;
        width: 105%;
        height: auto;
        left: -2%;
        position: absolute;
    }

    .ecm-button-filter-custom {
        display: block;
        margin-bottom: 10px;
        position: fixed;
        z-index: 999;
    }

    .ecm-DashboardContent-custom {
        margin-top: 20px;
    }
}

@media (min-width: 769px) {
    .ecm-button-filter-custom {
        display: none;
    }

    .ecm-dashboard-filtry-custom {
        display: block;
    }
}
