﻿.table2 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0px;
}
.table2 > .thead > .row {
    width: auto;
    border-bottom: none;
    margin: 13px !important;
    /* margin-top: 0px !important; */
    padding: 13px 10px;
    border-radius: 5px;
    box-shadow: 0 1px 4px 1px rgb(0 0 0 / 34%);
    background-color: #647585;
}
.table2 > .tbody > .row > .gridcell, .table2 > .thead > .row > .gridcell, .table2 > .tfoot > .row > .gridcell {
    float: left;
    font-weight: normal;
    vertical-align: middle;
    box-sizing: border-box;
    word-break: break-word;
    overflow: hidden;
    padding: 0px;
    margin: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table2 > .tbody > .row *, .table2 > .thead > .row *, .table2 > .tfoot > .row * {
    padding: 0px;
    /* font-size: 12px; */
}
.table2 > .thead > .row .gridcell span {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}

.table2 > .tbody > .row {
    width: auto;
    border-bottom: none;
    margin: 13px !important;
    margin-top: 0px !important;
    padding: 13px 10px;
    border-radius: 2px;
    box-shadow: 0 1px 4px 1px rgb(0 0 0 / 17%);
    background-color: #ffffff;
}

.table2 .tbody .flex_row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex_row.dir-md-column{
    flex-direction:column;
}
.flex_row.dir-md-row {
    flex-direction: row;
}

.table2 .tbody .flex_row .gridcell {
    margin: 0px !important;
    display: flex;
    align-items: center;
    justify-content: stretch;
    padding: 0px;
}
.table2 > .tbody > .row .gridcell span.dt-value {
    font-size: 12px;
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* padding-right: 5px; */
}

/*============================================SK-8388--BUDGET STYLES=================================================*/
.dt-mobile-lables {
    display: none;
    font-weight: normal;
    font-size: 11px;
    color: #000;
}

.table2 > .tbody > .row .gridcell span.dt-value {
    font-size: 12px;
    color: #282b3a;
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* padding-right: 5px; */
}

    .table2 > .tbody > .row .gridcell span.dt-value.flx-value {
        display: flex;
        flex-direction: column;
    }

.table2 > .tbody > .row *.td-bud-info {
    border-left: dashed 1px #95a1cb; /*#2b46a7*/
    display: flex;
    align-items: center;
    padding: 0px 3px;
}

.bgt-expand-btn {
    color: var(--color);
    font-size:0.9em;
    cursor:pointer;
}

span.dep-bud-cost {
    font-weight: 600;
}
span.dep-act-cost.tot {
    font-weight: 500;
    /*border-top: solid 1px;*/
}

span.dep-act-cost.bgt-gr{ color:#1CA606}
span.dep-act-cost.bgt-org { color: #E76E16; }
span.dep-act-cost.bgt-red { color: #FF0000}
span.dep-act-cost.bgt-mr { color: #880000}

.table2 > .tbody > .row .gridcell .dep-act-cost-wr, .table2 > .tbody > .row .gridcell .dep-act-cost-pm, .table2 > .tbody > .row .gridcell .dep-act-cost-hsk {
    font-size: 1em !important;
}

span.dep-act-cost.tot + span, .table2 .tbody .flex_row .bgt_more_info_cell > .gridcell:nth-child(2) {
    margin-top: 5px !important;
}

/*=======Chart Styles=======*/
#BUDChartContainer.chart_wrapper .chart_container {
    overflow-x: auto;
}
#BUDChartContainer.chart_wrapper .chart_container::-webkit-scrollbar{
    display:none;
}
#BUDChartContainer.chart_wrapper .chart_container> .budget_chart{
    width:100%; height:30vh; min-width:750px; touch-action:auto !important;
}

#BUDChartContainer.chart_wrapper .legend {
    background: #f2f2f2;
    font-size: 10px;
    text-align: center;
    /*width: 70%;*/
    margin: 10px auto;
    padding: 5px;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}
    #BUDChartContainer.chart_wrapper .legend .lgnd_item {
        display: flex;
        align-content: center;
        align-items: center;
        text-align: left;
        line-height: 1em;
        padding: 5px 10px;
        border: solid 1px #ddd;
        margin: 3px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0px 0px 4px 0px rgb(0 0 0 / 15%);
        cursor: pointer;
    }

        #BUDChartContainer.chart_wrapper  .legend .lgnd_item.item_unselect {
            background: rgba(255,255,255,0);
            box-shadow: none;
        }

        #BUDChartContainer.chart_wrapper  .legend .lgnd_item abbr {
            width: 1em;
            height: 1em;
            margin-right: 5px;
            align-self: center;
        }

            #BUDChartContainer.chart_wrapper .legend .lgnd_item.lgnd_budget,
            #BUDChartContainer.chart_wrapper .legend .lgnd_item.lgnd_actual {
                cursor:auto;
                width:35%;
                justify-content:center;
                box-shadow:none;
            }

        #BUDChartContainer.chart_wrapper .legend .lgnd_item.lgnd_budget {
            background-image: linear-gradient(135deg, #b299db 4.55%, #ffffff 4.55%, #ffffff 50%, #b299db 50%, #b299db 54.55%, #ffffff 54.55%, #ffffff 100%);
            background-size: 11.00px 11.00px;
        }

/*----Chart Styles-----*/
.tt_budget{
    font-size:12px;
    text-align:left;
    padding:5px;
}
.tt_bud_head th{
    font-size:13px !important;
    font-weight:500 !important;
    text-decoration:underline;
    text-align:right !important;
}

.tt_budget th.text-right {
    text-align: right !important;
}
/*..tt_bud_cont{
    margin:5px 0px;
}
tt_bud_cont>div {
    display:flex;
    justify-content:flex-start;
    align-items:center;
    padding-bottom:3px;
}*/
    .tt_bud_cont .tt_bud_val {
        justify-self:flex-end;
        margin-left:auto;
        text-align:right;
    }
        .tt_bud_cont .tt_bud_val button.bud_download_btn, .tt_bud_tot button.bud_download_btn {
            padding-right: 0px;
            width: 1.75em;
            height: 1.75em;
            border: solid 1px #999;
            margin-left: 5px;
            background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOC42MyIgaGVpZ2h0PSIyMiIgZmlsbD0iI2ZmZiIgeG1sbnM6dj0iaHR0cHM6Ly92ZWN0YS5pby9uYW5vIj48cGF0aCBkPSJNMTIuMjYxIDcuMTVsLjAwNS02LjcyOFMxMi4yNTQuMDcgMTIuNjcyIDBoMy45MUEuNDUuNDUgMCAwIDAgMTcgLjQ1N2wuMDA0IDYuNjkzaDIuNDk1cy4zNDQuMDk4LjE0NS4zODRsLTQuODYzIDUuMjQ3cy0uMTU2LjE1Mi0uMjk3IDBMOS42MDkgNy41MjdzLS4xODUtLjI3NC4xNTItLjM3N3ptLTkuOTM0IDQuNzkzbC4wMDEgNS41MjZzLjE1NiAyLjM5IDIuNjcyIDIuMzU5bDE4Ljc2Ni0uMDMxczIuMTI1LjIxOSAyLjU0Ny0yLjM1OWwtLjAwNi01LjUwNXMuMTIyLTEuMDk0IDEuMTI3LTEuMDgzYzAgMCAxLjAxNi0uMDIyIDEuMTgyIDEuMDI4bC4wMTEgNS4zN3MuMDE0IDQuMjIyLTQuNTggNC43NjlMNC40NTMgMjEuOTdzLTMuNzY4LjAxOC00LjQ3NS00LjQ0NkwwIDExLjk0M3MuMDc4LTEuMDc2IDEuMTg4LTEuMDkxYTEuMiAxLjIgMCAwIDAgMS4xNCAxLjA5MXoiLz48L3N2Zz4=");
            background-repeat: no-repeat;
            background-size: 75%;
            background-position: center;
            filter: invert(0.6);
            padding: 0px;
            border-radius: 3px
        }

@media (max-width: 991px) {
    .table-responsive > .table2 > .thead {
        display: none;
    }
    .table-responsive > .table > .tbody {
        position: relative !important;
        height: auto !important;
    }
    .table2 > .thead > .row, .table2 > .tbody > .row, .table2 > .tfoot > .row, .transTot {
        margin: 20px 13px !important;
        padding: 15px;
    }    
    .flex_row.dir-sm-column {
        flex-direction: column;
    }
    .flex_row.dir-sm-row {
        flex-direction: row;
    }
    .table .tbody .flex_row .gridcell {
        flex-direction: column;
    }
    .dt-mobile-lables {
        display: inline-block;
        float: left;
        width: auto;
        text-align: left;
        margin: 3px 0px;
    }
    .td-bud-info .dt-mobile-lables{
        float:right;
        margin-top:0px;
    }
        .dt-mobile-lables.lbl-main {
            font-size: 13px;
            font-weight: normal;
            font-stretch: normal;
            font-style: normal;
            line-height: normal;
            letter-spacing: normal;
            color: #000000;
        }
    .table2 > .tbody > .row *.td-bud-info{
        margin-right:auto !important;
    }

    #BUDChartContainer.chart_wrapper  .legend {
        width: 100%;
        flex-wrap: wrap;
        position: relative;
        justify-content: flex-start;
    }
        #BUDChartContainer.chart_wrapper .legend .lgnd_item,
        #BUDChartContainer.chart_wrapper .legend .lgnd_item.lgnd_budget,
        #BUDChartContainer.chart_wrapper .legend .lgnd_item.lgnd_actual {
            width: 48%;
            flex-wrap: wrap;
            padding: 5px;
            margin: 3px 1%;
        }

}