﻿:root{
    --select-rect-color: #005999;
    --grid-border-color: #cccccc;
    --grid-header-background: #e6e6e6;
    --grid-cell-background: white;
    --grid-text-color: black;

    --vh: 1vh;
}

.sester-grid-2-root{
    width:100%;
    display:flex;
    flex-direction:column;
}

.sester-grid-2-table {
    position: relative;
    overflow-x: auto;
    user-select: none;
    font-size: 14px;
    color: var(--grid-text-color);
    background-color: var(--grid-cell-background);
    border: 1px solid var(--grid-border-color);
}

.sester-grid-2-table:focus{
    outline: none;
}

.sester-grid-2-toolbar{
    overflow-x: auto;
    display: flex;
    flex-direction: row;
    padding-bottom: 8px;
    column-gap: 8px;
    min-height: 38px;
}

.sester-grid-2-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sester-grid-2-header-row {
    display: flex;
    flex-direction: row;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--grid-border-color);
}

.sester-grid-2-row {
    display: flex;
    flex-direction: row;
}

.sester-grid-2-row-header {
    font-weight: bold;
    background-color: var(--grid-header-background);
    position: -webkit-sticky; /* Safari */
    position: sticky;
    left: 0;
    z-index: 90;
}

.sester-grid-2-header-corner {
    background-color: var(--grid-header-background);
    font-weight: bold;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    left: 0;
    top: 0;
    z-index: 10;
    border-right: 1px solid var(--grid-border-color);
}

.sester-grid-2-header-cell, .sester-grid-2-header-cell-locked {
    background-color: var(--grid-header-background);
    font-weight: bold;
    border-right: 1px solid var(--grid-border-color);

    display:flex;
    flex-direction: row;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sester-grid-2-header-cell {
    padding: 4px 8px 5px 8px;
}

.sester-grid-2-header-cell-locked{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    padding: 4px 8px 2px 8px;
    z-index: 10;
}

.sester-grid-2-blue-divider{
    background-color: #3BB7FD;
}

.sester-grid-2-blue-divider-locked{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    z-index: 10;
}

.sester-grid-2-footer-row{
    bottom: 0;
    position: sticky;
    z-index: 400;
    border-top: 1px solid var(--grid-border-color);
}

.sester-grid-2-footer-row, .sester-grid-2-group-footer-row {
    background-color: var(--grid-header-background);
    display: flex;
}

.sester-grid-2-group-footer-row-content {
    flex-grow: 1;
    display: flex;
}

.sester-grid-2-group-footer-row-content > .sester-grid-2-group-footer-row-cell:last-child {
    border-right: 1px solid var(--grid-border-color);
}

.sester-grid-2-group-footer-row-cell {
    border-bottom: 1px solid var(--grid-border-color);
    display: flex;
    align-items: center;
}

.sester-grid-2-row-header, .sester-grid-2-header-corner {
    padding: 4px 8px;
}

.sester-grid-2-cell, .sester-grid-2-row-header {
    border-right: 1px solid var(--grid-border-color);
    border-bottom: 1px solid var(--grid-border-color);

    /* Vertical Alignment */
    display: flex;

    align-items: center;
    align-content: center;
    flex-direction: column;

    /* Horizontal Alginment */
    /*text-align: right;*/
}

.sester-grid-2-menu-content{
    flex-grow:1;
    width:0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sester-grid-2-menu-spacer{
    /*flex-grow:1;*/
    width:0;
}

.sester-grid-2-menu-button{
    position: relative;
    margin-left: 0px;
    margin-right: 0;
    margin-bottom:auto;
}

.sester-grid-2-menu-button-content{
    padding: 6px 5px;
}

.sester-grid-2-menu-button-content:hover{
    background-color: rgb(0,0,0,0.1);
}

.sester-grid-2-menu-button-content:active{
    background-color: rgb(0,0,0,0.2);
}

.sester-grid-2-column-sizer{
    margin: -4px -8px -4px 0;
    min-width:5px;
    width:5px;
    cursor: col-resize;
}

.sester-grid-2-column-sort{
    color: #3bb7fd;
    padding: 4px 2px;
}

.sester-grid-2-header-menu{
    font-weight: normal;
    background-color: #ffffff;
    border: 1px solid var(--grid-border-color);

    position: absolute;
    display: flex;
    flex-direction: column;
    min-width: 230px;
    height: min(70vh, 600px);

    overflow-y: auto;

    right: 0;
    top: 26px;
    z-index: 300;
}

.sester-grid-2-filter-menu-content{
    padding: 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sester-grid-2-filter-menu-checkboxes{
    margin-top: 8px;
    min-height: 80px;
    flex-grow: 1;
    height: 0;
    overflow-y: auto;
}

.sester-grid-2-filter-menu-buttons{
    display:flex;
    flex-direction: row;
    padding-top:8px;
    column-gap:8px;
}

.sester-grid-2-filter-menu-button{
    flex-grow:1;
}

.sester-grid-2-header-menu-item-icon{
    width:16px;
    text-align: center;
}

.sester-grid-2-header-menu-item, .sester-grid-2-header-menu-item-dead{
    padding: 4px 8px;
    /*overflow: hidden;*/
}

.sester-grid-2-header-menu-item:hover{
    background-color: rgb(0, 0, 0, 0.1);
}

.sester-grid-2-header-menu-item:active{
    background-color: rgb(0, 0, 0, 0.2);
}

.sester-grid-2-cell{
    cursor: cell;
    display: flex;
    flex-direction: row;
    padding: 2px 1px 1px 2px;
}

.sester-grid-2-cell-locked{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    z-index: 10;
}

.sester-grid-2-input-container{
    position: relative;
    pointer-events: none;
    z-index: 9;
}

.sester-grid-2-input-container-locked{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    pointer-events: none;
    z-index: 11;
}

.sester-grid-2-input, .sester-grid-2-input-invalid{
    background-color: #ffffff;
    border: none;
    padding: 2px 4px;
    height:100%;
    width: 100%;
    pointer-events: all;
}

.sester-grid-2-input{
    color: black;
}

.sester-grid-2-input-invalid{
    color: red;
}

.sester-grid-2-input:focus, .sester-grid-2-input-invalid:focus{
    outline: none;
}

.sester-grid-2-input-dropdown-container{
    position: fixed;
    pointer-events: none;
    z-index: 100000;
}

.sester-grid-2-input-dropdown{
    right:-2px;
    width: calc(100% + 5px);
    max-height: 240px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid var(--grid-border-color);
    pointer-events: all;
    font-size: 14px;
}

.sester-grid-2-input-dropdown-item{
    padding: 4px 8px;
    min-height: 24px;
}

.sester-grid-2-input-dropdown-item:hover{
    background-color:rgb(0,0,0,0.1);
}

.sester-grid-2-input-dropdown-item-selected{
    background-color:rgb(0,0,0,0.15);
}

.sester-grid-2-cell-selected {
    /*background-color: #355C6F;*/
    background-color: rgb(20, 220, 255, 0.2);
    border-right: 1px solid var(--grid-border-color);
    border-bottom: 1px solid var(--grid-border-color);
    cursor: cell;
}

.sester-grid-2-cell-selected-primary {
    /*background-color: #464B53;*/
    /*background-color: rgb(255, 255, 255, 0.055);*/
    border-right: 1px solid var(--grid-border-color);
    border-bottom: 1px solid var(--grid-border-color);
    cursor: cell;
}

.sester-grid-2-fill-square{
    background-color: var(--select-rect-color);
    border: 1px solid white;
    width: 7px;
    height: 7px;
    cursor: crosshair;
    pointer-events: all;
    z-index: 9;
}

.sester-grid-2-cell-selected-inedit {
    background-color: #3A3F46;
    border-right: 1px solid #585F6A;
    border-bottom: 1px solid #585F6A;
    display: flex;
}

.sester-grid-2-cell-span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    width:0;
    flex-grow:1;

    margin: 0 4px;
}


.sester-grid-2-cell-drop-down-button{
    margin-top:-4px;
    margin-bottom: -4px;
    /*margin-right: -8px;*/

    height: calc(100%);
    width:26px;

    /* Center Content*/
    display: flex;
    justify-content: center;
    align-items: center;

    border-left: 1px solid var(--grid-border-color);

    cursor: auto;
}

.sester-grid-2-cell-drop-down-button:hover{
    background-color: rgb(0,0,0,0.1);
}

.sester-grid-2-cell-drop-down-button:active{
    background-color: rgb(0,0,0,0.2);
}

.sester-grid-2-button-save-disabled{
    color: #66dd66;
    border-color: #66dd66;
    width:72px;
}

.sester-grid-2-button-save{
    color: #6aac6e;
    border-color: #88ff88;
    width:72px;
}

.sester-grid-2-button-save:hover {
    color: #aaffaa;
}

.sester-grid-2-button-cancel{
    color: #ff6666;
    border-color: #ff6666;
}

.sester-grid-2-button-cancel-disabled{
    color: #ff6666;
    border-color: #ff6666;
}

.sester-grid-2-cell-button{
    padding: 0;
    height: 100%;
    width: 100%;
}

.sester-grid-2-green-left{
    border-left: 2px solid var(--select-rect-color);
    padding-left: 0;
}

.sester-grid-2-green-top{
    border-top: 2px solid var(--select-rect-color);
    padding-top: 0;
}

.sester-grid-2-green-right{
    border-right: 2px solid var(--select-rect-color);
    padding-right: 0;
}

.sester-grid-2-green-bottom{
    border-bottom: 2px solid var(--select-rect-color);
    padding-bottom: 0;
}

.sester-grid-2-invalid-input .sester-grid-2-select-left {
    border-left-color: red !important;
}

.sester-grid-2-invalid-input .sester-grid-2-select-top {
    border-top-color: red !important;
}

.sester-grid-2-invalid-input .sester-grid-2-select-right {
    border-right-color: red !important;
}

.sester-grid-2-invalid-input .sester-grid-2-select-bottom {
    border-bottom-color: red !important;
}

.sester-grid-2-context-menu{
    position: absolute;
    background-color:  #31353B;
    border: 1px solid #585F6A;
    z-index: 12;
}

.sester-grid-2-context-menu-button{
    padding: 4px 8px;
    overflow: hidden;
}

.sester-grid-2-context-menu-button:hover{
    background-color: rgb(0, 0, 0, 0.1);
}

.sester-grid-2-context-menu-button:active{
    background-color: rgb(0, 0, 0, 0.2);
}

.sester-grid-2-layout-rect{
    /*border: 1px solid red;*/
    /*background-color: rgb(255, 0, 0, 0.2);*/
    /*z-index: 50;*/
    pointer-events: none;
}

.sester-grid-2-vertical-divider{
    border-left:1px solid #585F6A;
    margin:2px 0;
}


/* Width and height sizing classes modeled after bootstrap */
.w-0{
    width: 0 !important;
}
.w-50{
    width: 50% !important;
}
.w-100{
    width: 100% !important;
}
.h-0{
    height: 0 !important;
}
.h-50{
    height: 50% !important;
}
.h-100{
    height: 100% !important;
}

.vhm-80{
    height: calc(var(--vh, 1vh) * 80) !important;
}
.vhm-90{
    height: calc(var(--vh, 1vh) * 90) !important;
}
.vhm-100{
    height: min(100vh, calc(var(--vh, 1vh) * 100)) !important;
}

@media (min-width:576px){
    .w-sm-0{
        width: 0 !important;
    }
    .w-sm-50{
        width: 50% !important;
    }
    .w-sm-100{
        width: 100% !important;
    }
    .h-sm-0{
        height: 0 !important;
    }
    .h-sm-50{
        height: 50% !important;
    }
    .h-sm-100{
        height: 100% !important;
    }
    .vhm-sm-80{
        height: calc(var(--vh, 1vh) * 80) !important;
    }
    .vhm-sm-90{
        height: calc(var(--vh, 1vh) * 90) !important;
    }
    .vhm-sm-100{
        height: calc(var(--vh, 1vh) * 100) !important;
    }
    .vhm-sm-unset{
        height: unset !important;
    }

    .max-vhm-sm-90{
        max-height: calc(var(--vh, 1vh) * 90) !important;
    }
}

@media (min-width:768px){
    .w-md-0{
        width: 0 !important;;
    }
    .w-md-50{
        width: 50% !important;
    }
    .w-md-100{
        width: 100% !important;
    }
    .h-md-0{
        height: 0 !important;
    }
    .h-md-50{
        height: 50% !important;
    }
    .h-md-100{
        height: 100% !important;
    }
    .vhm-md-80{
        height: calc(var(--vh, 1vh) * 80) !important;
    }
    .vhm-md-90{
        height: calc(var(--vh, 1vh) * 90) !important;
    }
    .vhm-md-100{
        height: calc(var(--vh, 1vh) * 100) !important;
    }
}

@media (min-width:992px){
    .w-lg-unset{
        width: unset !important;
    }
    .w-lg-0{
        width: 0 !important;
    }
    .w-lg-50{
        width: 50% !important;
    }
    .w-lg-100{
        width: 100% !important;
    }
    .h-lg-0{
        height: 0 !important;
    }
    .h-lg-50{
        height: 50% !important;
    }
    .h-lg-100{
        height: 100% !important;
    }
    .vhm-lg-80{
        height: calc(var(--vh, 1vh) * 80) !important;
    }
    .vhm-lg-90{
        height: calc(var(--vh, 1vh) * 90) !important;
    }
    .vhm-lg-100{
        height: calc(var(--vh, 1vh) * 100) !important;
    }
}

@media (min-width:1200px){
    .w-xl-0{
        width: 0 !important;
    }
    .w-xl-50{
        width: 50% !important;
    }
    .w-xl-100{
        width: 100% !important;
    }
    .h-xl-0{
        height: 0 !important;
    }
    .h-xl-50{
        height: 50% !important;
    }
    .h-xl-100{
        height: 100% !important;
    }
    .vhm-xl-80{
        height: calc(var(--vh, 1vh) * 80) !important;
    }
    .vhm-xl-90{
        height: calc(var(--vh, 1vh) * 90) !important;
    }
    .vhm-xl-100{
        height: calc(var(--vh, 1vh) * 100) !important;
    }
}