html, body {
    height: 100%;
    width: 100%;
    -ms-high-contrast-adjust: none;
    cursor: default;
}

#plugin-contextmenu-container {
    /**
     * This puts the plugin context menu element behind all of our view
     * so that it does not intercept any events. This element is only used
     * to generate HTML passed to the context menu ScriptedSandbox instance
     * and is never shown on this DOM.
     */
    z-index: -1;
}

body {
    margin: 0px;
    padding: 0px;
    font-family: "Segoe Script", Arial, sans-serif; /*[{plugin-font-family}, Arial, sans-serif]*/
    font-size: 12px; /*[{plugin-font-size}]*/
    color: rgb(0, 0, 0); /*[{plugin-color}]*/
    /* This will set the toolbar as the top row and the grid using the remaining space */
    display: -ms-grid;
    -ms-grid-rows: auto 1fr;
    -ms-grid-columns: 1fr;
}

.icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

    .icon svg {
        width: auto;
        height: 100%;
        vertical-align: baseline;
    }

.mainArea {
    -ms-grid-row: 2;
    position: relative;
    -ms-flex-direction: row;
    flex-direction: row;
    display: -ms-flexbox;
    display: flex;
}

.container {
    position: relative;
    overflow: hidden;
}

#GcSummary {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow: hidden;
}

.treeGridContainer {
    width: 100%;
    height: 100%;
}

#sideBar {
    border-left: 1px solid chartreuse; /*[1px solid {Environment-CommandBarOptionsBackground-Background}]*/
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

    #sideBar > div {
        -ms-flex: 1;
        flex: 1;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    #sideBar .title {
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        line-height: 26px; /* TODO(Nik) Match this to the tree grid next to it */
        text-align: center;
        background-color: chartreuse; /*[{Environment-CommandBarGradientBegin-Background}]*/
        white-space: nowrap;
    }

    #sideBar .pieChartContainer {
        /* Setting the basis to 1px forces the chart to resize to whatever the remaining size is */
        -ms-flex: 1 1 1px;
        flex: 1 1 1px;
    }

    #sideBar .legend {
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        margin: 2px;
    }

/* Toolbar style overrides */
.toolbar-container {
    -ms-grid-row: 1;
    grid-row: 1;
}

    .toolbar-container > * {
        margin: auto 3px;
    }

    .toolbar-container > *:first-child {
        /** This anchors our content to the right side of the toolbar */
        margin-left: auto;
    }

/* Default element styles */
.checkboxLabel {
    color: fuchsia; /*[{CommonControls-CheckBoxText-Background}]*/
}

checkboxLabel:hover {
    color: fuchsia; /*[{CommonControls-CheckBoxTextHover-Background}]*/
}

.checkboxLabel:active {
    color: fuchsia; /*[{CommonControls-CheckBoxTextPressed-Background}]*/
}

.checkboxLabel:focus {
    color: fuchsia; /*[{CommonControls-CheckBoxTextFocused-Background}]*/
}

.checkboxLabel:disabled {
    color: fuchsia; /*[{CommonControls-CheckBoxTextDisabled-Background}]*/
}

input[type=checkbox] {
    outline: none;
}

    input[type=checkbox]::-ms-check {
        color: fuchsia; /*[{CommonControls-CheckBoxGlyph-Background}]*/
        background-color: aquamarine; /*[{CommonControls-CheckBoxBackground-Background}]*/
        border: 1px solid red; /*[1px solid {CommonControls-CheckBoxBorder-Background}]*/
    }

    input[type=checkbox]:active::-ms-check {
        color: fuchsia; /*[{CommonControls-CheckBoxGlyphPressed-Background}]*/
        border-color: red; /*[{CommonControls-CheckBoxBorderPressed-Background}]*/
        background-color: red; /*[{CommonControls-CheckBoxBackgroundPressed-Background}]*/
    }

    input[type=checkbox]:focus::-ms-check {
        color: fuchsia; /*[{CommonControls-CheckBoxGlyphFocused-Background}]*/
        border-color: red; /*[{CommonControls-CheckBoxBorderFocused-Background}]*/
        background-color: red; /*[{CommonControls-CheckBoxBackgroundFocused-Background}]*/
    }

    input[type=checkbox]:disabled::-ms-check {
        color: fuchsia; /*[{CommonControls-CheckBoxGlyphDisabled-Background}]*/
        border-color: red; /*[{CommonControls-CheckBoxBorderDisabled-Background}]*/
        background-color: transparent; /*[{CommonControls-CheckBoxBackgroundDisabled-Background}]*/
    }

/* Filter control */
input.filter {
    padding: 0px 0px 0px 3px;
    width: 150px;
    border: 1px solid lawngreen; /*[1px solid {SearchControl-UnfocusedBorder-Background}]*/
    background-color: lawngreen; /*[{SearchControl-Unfocused-Background}]*/
    color: fuchsia; /*[{SearchControl-Unfocused-Foreground}]*/
}

    input.filter:focus {
        color: coral; /*[{SearchControl-FocusedBackground-Foreground}]*/
        background-color: lawngreen; /*[{SearchControl-FocusedBackground-Background}]*/
        border-color: fuchsia; /*[{SearchControl-FocusedBorder-Background}]*/
    }

    input.filter:hover {
        color: deeppink; /*[{SearchControl-MouseOverBackground-Foreground}]*/
        background-color: lawngreen; /*[{SearchControl-MouseOverBackground-Background}]*/
        border-color: fuchsia; /*[{SearchControl-MouseOverBorder-Background}]*/
    }

    input.filter:disabled {
        color: mediumorchid; /*[{SearchControl-Disabled-Foreground}]*/
        background-color: lawngreen; /*[{SearchControl-Disabled-Background}]*/
        border-color: fuchsia; /*[{SearchControl-DisabledBorder-Background}]*/
    }

    input.filter:active {
        color: red; /*[{SearchControl-SearchActive-Foreground}]*/
        background-color: lawngreen; /*[{SearchControl-SearchActive-Background}]*/
    }

    input.filter::selection {
        color: coral; /*[{SearchControl-Selection-Foreground}]*/
        background-color: forestgreen; /*[{SearchControl-Selection-Background}]*/
    }

/** No data overlay */
#message-overlay {
    -ms-grid-row: 2;
    position: relative;
    overflow: hidden;
    z-index: 10000;
    transition: opacity .25s, height 0s;
    background-color: rgba(200,200,200,0.50); /*[{plugin-background-color}]*/
}

    #message-overlay.hide {
        height: 0px;
        opacity: 0;
        transition: opacity .25s, height 0 .25s;
    }

    #message-overlay > div {
        width: 100%;
        display: block;
        position: absolute;
        top: 30%;
        text-align: center;
    }

    #message-overlay span {
        display: block;
        background-color: rgba(200,200,200,0.50); /*[{plugin-background-color}]*/
    }

    #message-overlay progress {
        display: block;
        margin: 5px auto;
        color: fuchsia; /*[{ProgressBar-IndicatorFill-Background}]*/
        background-color: red; /*[{ProgressBar-Background-Background}]*/
    }

/* Empty row sytle */
.treeGridRow.emptyRow > td {
    font-style: italic;
    text-align: left;
    color: chartreuse; /*[{plugin-inactive-color}]*/
}