﻿/* CSS Applicable to whole page */
:root {
    --grid-row-hover-color: #fef6a7;
    --grid-row-select-color: #EEF;
}

* {
    /*    --fontSize: 1.0rem;*/
    font-family: 'Trebuchet MS' "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Tahoma", 'sans-serif';
    line-height: calc(1.5 * var(--fontSize));
    letter-spacing: normal;
    word-spacing: normal;
    font-size: var(--fontSize);
}

input[type=text]:focus,
input[type=submit]:focus,
select:focus {
    outline: 2px solid black;
    outline-offset: 2px;
}

button,
input[type=submit] {
    background-color: rgb(0,25,112);
    color: white;
    width: auto;
    height: 29px;
}

.displayOff {
    display: none;
    visibility: hidden;

}


h1, h2, h3, h4 {
    font-weight: bold;
    font-size: 18px;
}
#warningMessage,
.warningMessage {
    color: red;
    outline: 2px solid red;
    outline-offset: 2px;
    display: none;
    width: max-content;
    margin: 1% 0;
}
/* MAIN CONTENT */

.mainGridContainer {
    text-align: center;
    margin: 0 10% 0 10%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 0.25fr 1fr;
    grid-template-areas:
        "searchOptions"
        "dataGrid"
}

.gridItem1{
    grid-area: searchOptions;
   /* border-bottom: solid black 1px;*/
}

.gridItem2 {
    align-self:center;
    grid-area: dataGrid;
    overflow-y: scroll;
    max-height: 39vh;
    margin-top: 1rem;
}

.searchOptions{
    text-align: left;
}


.table-hover tbody tr:not(tr.fixedHeader):hover,
.table-hover tbody tr:not(tr.fixedHeader):focus {
    background-color: var(--grid-row-hover-color);
    outline: 2px solid #005A9C;
}

.table tbody tr.selected {
    background-color: var(--grid-row-select-color);
}

.fixedHeader {
    position: sticky;
    top: 0;
    background-color: rgb(0,25,112);
    color: white;
    border: solid white 2px;
}

footer{
    text-align: center;
}

@media (min-resolution: 2dppx) {
    .mainGridContainer {
        margin: 0 30% 0 0;
    }
    #warningMessage{
        margin-top: 28% !important;
    }

    .gridItem2 {
        align-self: center;
        grid-area: dataGrid;
        overflow-y: scroll;
        max-height: 300vh;
    }
}

@media (min-resolution: 3dppx) {
    .mainGridContainer {
    }
}

@media (min-resolution: 4dppx) {
    .mainGridContainer {
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.ag-theme-alpine .ag-keyboard-focus .ag-header-cell:focus {
    outline: solid !important;
}
