﻿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}]*/
    display: -ms-grid;
    -ms-grid-rows: auto 1fr;
    -ms-grid-columns: 1fr;
}

.mainArea {
    -ms-grid-row: 2;
    position: relative;
    -ms-flex-direction: row;
    flex-direction: row;
    display: -ms-flexbox;
    display: flex;
}

#EventsList {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow: hidden;
}

.dataGridContainer {
    width: 100%;
    height: 100%;
}

#sideBar {
    border-left: 1px solid chartreuse; /*[1px solid {Environment-CommandBarOptionsBackground-Background}]*/
    display: -ms-grid;
    -ms-grid-rows: auto 1fr;
    -ms-grid-columns: 1fr;
}

    #sideBar .title {
        -ms-grid-row: 1;
        line-height: 26px; /* TODO(amali) Match this to the data grid next to it */
        text-align: center;
        font-weight: bold;
        background-color: chartreuse; /*[{Environment-CommandBarGradientBegin-Background}]*/
        white-space: nowrap;
    }

    #sideBar #additionalProperties {
        -ms-grid-row: 2;
    }

    #sideBar #additionalPropertiesPlaceholder {
        margin: 20px;
        top: 30%;
        text-align: center;
        position: absolute;
        display: block;
    }

/** 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}]*/
    }


/* 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;
        }