﻿html {
    /*Fix to somewhat normalize REM font size across devices*/
    font-size: calc(1em + 0.5vw);
}


.category-css {
    border-radius: 10px;
}

.category-travel {
    flex-grow: 0;
    border-radius: 10px;
    background-image: url("../images/icon-travel-seat.svg") !important;
    background-size: 40% !important;
    background-position: right !important;
    background-position-y: bottom !important;
    background-repeat: no-repeat !important;
}

.category-transport {
    flex-grow: 0;
    border-radius: 10px;
    background-image: url("../images/icon-transport-van.svg") !important;
    background-size: 50% !important;
    background-position: right !important;
    background-position-y: bottom !important;
    background-repeat: no-repeat !important;
}

.category-site {
    flex-grow: 0;
    border-radius: 10px;
    background-image: url("../images/icon-site.svg") !important;
    background-size: 40% !important;
    background-position: right !important;
    background-position-y: bottom !important;
    background-repeat: no-repeat !important;
}

.category-site-connected {
    flex-grow: 0;
    border-radius: 10px;
    background-image: url("../images/icon-site-connected.svg") !important;
    background-size: 40% !important;
    background-position: right !important;
    background-position-y: bottom !important;
    background-repeat: no-repeat !important;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.activities-box {
    display: flex;
    flex-grow: 0;
    /*padding: 30px 30px 28px;*/
    border-radius: .8em;
    background-color: #fff;
}

/*--- KPI WIDGET ---*/
#kpi-widget {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.actions-box {
    flex-grow: 0;
    margin: 0;
    margin-top: 6px;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.12);
    background-color: #fff;
    line-height: 0.9em;
    
}
    #kpi-widget .org-kpi-title {
        color: black;
        vertical-align: middle;
    }

    #kpi-widget .org-kpi-subtitle {
        color: gray;
        display: inline-block;
        text-overflow: ellipsis;
        overflow: hidden;
        width: 100%;
        white-space: nowrap;
        font-size: 0.8em;
    }
.bu-kpi-title {
    color: black;
    vertical-align: middle;
    vertical-align: -webkit-baseline-middle;
}
.bu-kpi-subtitle {
    font-size: .9em;
    vertical-align: middle;
    vertical-align: -webkit-baseline-middle;
}
.kpi-icon-wrapper {
    padding: 0.1em;
    text-align: center;
    line-height: 1em;
}

/*--- BU KPI WIDGET ---*/
#bu-kpi-widget {
    /*font-size: .8em;*/
}

#bu-kpi-widget .logo-row {
    position: relative;
}

#bu-kpi-widget .logo-row > .kpi-box {
    width: 100%;
    padding: 0;
    height: 3rem;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#bu-kpi-widget > div.row.header-row > .box-title {
    padding-right: 0;
}

.kpi-title {
    font-size: 1.2em;
}

.kpi-segment {
    padding-top: .5em;
}

img.org-kpi-icon {
    flex-grow: 0;
    object-fit: contain;
    height: 100%;
}

img.icon {
    flex-grow: 0;
    width: 35px;
    vertical-align: middle;
    object-fit: contain;
}

img.actions-icon {
    flex-grow: 0;
    width: 35px;
    object-fit: contain;
}

.activities-title {
    font-size: .75em;
    color: black;
}

.activities-subtitle {
    font-size: .65em;
    color: gray;
}

.category-subtitle {
    font-size: .75em;
}

.category-properties-percent {
    padding: .2em .5em;
}

.category-properties {
    padding: .2em 0em;
}

img.kpi-icon {
    flex-grow: 0;
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.kpi-heading {
    color: #fff;
}

/*.kpi-subtitle {
    font-size: 1em;
}*/

.kpi-opacity-background {
    background-color: #00000080;
    padding: 1em;
}

/*--- OVERALL PROGRESS WIDGET---*/

#overall-progress-widget {
    height: 100%;
}

    #overall-progress-widget .progress-row {
        height: 25%;
        --bs-gutter-x: 0;
        margin-top: .2em;
    }


    #overall-progress-widget .progress-row * {
        overflow: visible;
    }

    #overall-progress-widget .progress-row > div {
        height: 100%;
    }

        #overall-progress-widget .progress-row .progress-bar {
            width: 100%;
            flex-grow: 0;
            height: 45%;
        }

            #overall-progress-widget .progress-row .progress-bar.left {
                border-radius: 8px 0 0 8px;
                background-color: #DD5B5B;
            }

            #overall-progress-widget .progress-row .progress-bar.center {
                background-image: linear-gradient(to left,#8FC58F, #ffd874, #DD5B5B);
            }

            #overall-progress-widget .progress-row .progress-bar.right {
                border-radius: 0 8px 8px 0;
                background-color: #8FC58F;
            }

            #overall-progress-widget .progress-row .progress-bar .progress-indicator.left {
                width: 3px;
                height: 100%;
                flex-grow: 0;
                background-color: black;
                margin: 0 50% 0 50%;
            }

            #overall-progress-widget .progress-row .progress-bar .progress-indicator.center {
                margin-left: 50%;
                margin-right: auto;
                width: 3px;
                height: 100%;
            }

            #overall-progress-widget .progress-row .progress-bar .progress-indicator.center-below {
                width: 3px;
                height: 125%;
                background-color: #289689;
            }

            #overall-progress-widget .progress-row .progress-bar .progress-indicator.label-lastYear {
                position: absolute;
                float: left;
                left: -16px;
                position: relative;
                color: black;
                
            }

            #overall-progress-widget .progress-row .progress-bar .progress-indicator.right {
                width: 3px;
                height: 100%;
                background-color: black;
                margin: 0 50% 0 50%;
            }

        #overall-progress-widget .progress-row .progress-indicator.left-below {
            width: 3px;
            height: 100%;
            background-color: black;
            margin: 0 50% 0 50%;
        }

        #overall-progress-widget .progress-row .progress-indicator.right-below {
            width: 3px;
            height: 100%;
            background-color: black;
            margin: 0 50% 0 50%;
        }

        #overall-progress-widget .progress-row .progress-indicator.sides {
            height: 20%;
            text-align: center;
            font-size: 1.4em;
        }
    #overall-progress-widget .data-row {
        overflow: visible;
        font-size: 1.3em;
        padding-top: .8em;
        padding-bottom: 10px;
        line-height: 1em;
    }

    #overall-progress-widget .data-row .row span:last-of-type {
        font-size: 0.6em;
    }

    #overall-progress-widget .data-row  .row span:last-of-type > b {
        color: gray;
    }

.no-data-bg {
    background-image: url('../images/no-data-graph.svg');
    opacity: .7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
    width: 100%;
    position: absolute;
    margin-top: -2em;
}

/*--- ACTIONS WIDGET ---*/

#actions-widget .actions-row {
    flex-grow: 0;
    margin-top: 6px;
    padding: 6px 4px;
    border-radius: 6px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.12);
    background-color: #fff;
    line-height: 1.2em;
}

#actions-widget .header-row {
    padding-top: 10px;
    line-height: 0.6em;
    font-size: 0.9em;
}

#actions-widget  .title {
    font-size: .8em;
    color: black;
}

#actions-widget .title .carbon-subtitle {
    font-size: 0.6em;
    color: gray;
}

#actions-widget  .subtitle {
    font-size: 0.8em;
    color: gray;
    white-space: nowrap;
}

/*--- ACTIVITIES WIDGET ---*/
#activities-widget .activities-row {
    flex-grow: 0;
    margin-top: 6px;
    padding: 6px 4px;
    border-radius: 6px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.12);
    background-color: #fff;
    line-height: 1.2em;
    
}

#activities-widget .title {
    color: black;
}

.box-title {
    font-size: 14pt;
    color: black;

    /* Quickfix for change in Webix rendering order in new version*/
    position: relative;
    z-index: 10;
}
.category-widget {
    line-height: 0.7rem;
    font-size: 0.6rem;
}

    .category-widget .sub-categories {
        margin-top: 0.54em;
    }

.category-subtitle {
    font-size: 0.9em;
}

.category-properties-percent {
    padding: .2em .5em;
    font-size: 1em;
}

.category-properties {
    padding: .2em 0em;
    font-size: 1em;
}

.thermometer-title {
    font-size: 19px;
    color: black;
}

.thermometer-subtitle {
    font-size: 13px;
    color: gray;
}

.no-data-label {
    font-size: 1.5em;
}

.push-right {
    text-align: right;
}

.green-icon {
    filter: invert(75%) sepia(36%) saturate(383%) hue-rotate(93deg) brightness(100%) contrast(93%);
}

.blue-icon {
    filter: invert(73%) sepia(31%) saturate(536%) hue-rotate(168deg) brightness(95%) contrast(91%);
}

.beige-icon {
    filter: invert(99%) sepia(47%) saturate(6946%) hue-rotate(311deg) brightness(100%) contrast(80%);
}

img.icon {
    flex-grow: 0;
    width: 25px;
    vertical-align: middle;
    object-fit: contain;
}

img.actions-icon {
    flex-grow: 0;
    width: 25px;
    object-fit: contain;
}

img.kpi-icon {
    flex-grow: 0;
    height: 30px;
    width: 30px;
    object-fit: contain;
}

.kpi-heading {
    color: #fff;
    font-size: 15px;
}

.kpi-segment {
    padding-top: .2em;
}

/*.kpi-title {
    font-size: 15px;
}*/

.actions-title {
    font-size: 13px;
    color: black;
}

.actions-subtitle {
    font-size: 11px;
    color: gray;
}

.open_incidents .webix_view.webix_chart {
    background: rgba(255, 0, 0, .5);
    border-radius: 10px 10px 0 0;
    height: 80%;
    display: flex;
    flex-direction: row
}

.greenedge-grid {
    background: rgba(255, 255, 255, 0);
    font-family: 'Vinci';
}

    .greenedge-grid .webix_view {
        background: rgba(255, 255, 255, .8);
        animation-name: fadeInOpacity;
        animation-iteration-count: 1;
        animation-timing-function: ease-in;
        animation-duration: 1s;
        font-family: 'Vinci';
    }
    .greenedge-grid webix_hcolumn {
        font-family: 'Vinci';
    }

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#dashboard-container {
    padding: 0;
    overflow: hidden;
}

    #dashboard-container > div.webix_view {
        background-color: transparent !important;
        position: relative;
    }


#year-dropdown {
    margin-left: auto;
    margin-right: 0;
    width: 6em;
    padding: 0.05rem 0.5rem;
    font-size: .775rem;
    border-radius: 0.2rem;
}

