@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('menu.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 90%; /*1rem=14.5px=2ch 1ch=7.25px=0.5rem*/
    background-color: rgb(245,245,245);
}

ul, li {
    margin: 0;
    padding: 0;
    border: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: #000099;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

label {
    margin-right: 0.4em;
}

div.list-page-button {
    height: 32px;
}

span.comment {
    display: block;
    margin: 0 0.1rem;
    vertical-align: inherit;
    color: #3e98e7;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #F2F2F2;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }


.content {
    padding-top: 1.1rem;
}

.margin-left {
    margin-left: 0.7rem;
}

.margin-right {
    margin-right: 0.7rem;
}

/*form elements*/
.form-labels div.like-label {
    /*display: block;*/
    margin: 0.4rem 0;
    vertical-align: top;
    display: flex;
    color: #000099;
}

    .form-labels div.like-label span.first {
        display: block;
        min-width: 20rem;
        max-width: 20rem;
        border-top: 1px dashed lightgray;
        vertical-align: inherit;
        color: #000000;
        margin-right: 1rem;
    }

    .form-labels div.like-label input[type="text"] {
        min-width: 35rem;
    }

    .form-labels div.like-label select {
        min-width: 35.5rem;
    }

    .form-labels div.like-label .div-overflow-y {
        overflow-y: auto;
        font-size: 90%;
        max-height: 14ch;
        border: 1px dashed lightgrey;
        background-color: rgb(250, 250, 250);
        
    }

.spanMinWidth {
    min-width: 18rem;
    float: left;
    color: #000099;
}

.attachments {
    font-size: smaller;
}

    .attachments > span {
        padding-bottom: 1ch;
        display: inline-block;
    }

.helpIcon {
    vertical-align: top;
    cursor: pointer;
    height: fit-content;
}

.button {
    display: inline-block;
    border: solid 1px #f2eff2;
    border-radius: 4px;
    box-shadow: 0px 0px 5px rgba(0,0,0,1.0);
    color: #fcfcfc;
    padding: 1px 10px;
    background: #053494;
    background-image: linear-gradient(to bottom, #053494 0%, #addbff 100%);
    margin: 0.34rem 0.68rem 0.68rem 0.34rem;
    cursor: pointer;
}

.button-right {
    float: right;
}

.button:hover {
    background-image: linear-gradient(to bottom, #053494 35%, #addbff 100%);
}

.button:active {
    background-image: linear-gradient(to bottom, #053494 75%, #addbff 100%);
}

.button:disabled {
    background-image: linear-gradient(to bottom, #addbff 0%, #addbff 100%);
    cursor: default;
}

.button:focus {
    outline: none;
}

.reportSelection-fieldset {
    margin: 2ch 0ch;
    padding: 2ch;
}

    .reportSelection-fieldset legend {
        font-weight: bold;
        font-size: larger;
    }

    .reportSelection-fieldset label {
        margin-right: 2ch;
    }

.report-fieldset {
    margin: 2ch 0ch;
    padding: 2ch;
}

    .report-fieldset legend {
        font-weight: bold;
        font-size: larger;
    }

    .report-fieldset > div {
        float: left;
        margin-right: 2ch;
        margin-bottom: 2ch;
    }

        .report-fieldset > div > label {
            vertical-align: top;
            position: relative;
            top: 4px;
            margin-right: 1ch;
        }

        .report-fieldset > div > div {
            border: solid 1px black;
            height: 35ch;
            overflow-y: auto;
            float: right;
            display: flex;
            flex-direction: column;
            background-color: #ddeff1;
        }

        .report-fieldset > div > button {
            vertical-align: top;
            position: relative;
            top: -2px;
            margin-right: 1ch;
        }

#AddRemovePositionCommittee {
    border-spacing: 0px;
    border-collapse: collapse;
    margin: 2ch 0;
}

    #AddRemovePositionCommittee tr td {
        padding-left: 0;
        border: 1px dashed lightgray;
        border-collapse: collapse;
    }
/*end of form*/

/*Overwrite jQuery autocomplete*/
.ui-autocomplete-input {
    border: 1px inset rgb(118,118,118);
    /*border-color: red;*/
}

.ui-menu {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 45ch;
    min-width: 50ch;
}

    .ui-menu > li.odd {
        background-color: rgb(245,245,245);
    }

.ui-state-active {
    background-color: rgb(93,140,204) !important;
}
/*End Overwrite jQuery autocomplete*/

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.outlineGreen > div > span {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: rgb(220,0,0)
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.dialog-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    animation: dialog-container-entry 0.2s;
}

.disable-screen {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(0,0,0,0.5);
    z-index: 2000;
    animation: dialog-container-entry 0.4s;
}

@keyframes dialog-container-entry {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.dialog {
    background-color: rgb(220,220,220);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2000;
    align-self: center;
    margin: auto;
    width: 90%;
    max-height: calc(100% - 3rem);
    animation: dialog-entry 0.4s;
    animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
}

@keyframes dialog-entry {
    0% {
        transform: translateY(2rem) scale(0.95);
    }

    100% {
        transform: translateX(0px) scale(1.0);
    }
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: column;
    }

    .sidebar {
        /*        width: 250px;
        height: 100vh;
        position: sticky;
*/ top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/*Grid Css, Checkboxes with filter Css*/
.smaller-button {
    margin-left: 2ch;
    margin-bottom: 0.5ch;
    height: fit-content;
    font-size: 85%;
}

#clearAllFiltersButtonId:disabled {
    color: lightgrey;
}

table.griddy {
    border-collapse: separate;
    margin-bottom: 5px;
    margin-right: 1px;
    font-size: 100%;
    border-spacing: 0px;
}

    table.griddy tr:nth-child(2n+1) {
        background-color: azure;
    }

div.div-for-griddy {
    position: relative;
}

    div.div-for-griddy > div {
        overflow: auto;
        margin-left: 0px;
        max-height: 70vh;
    }

table.griddy-frozen {
    position: absolute;
    top: 0px;
}

table.griddy thead {
    position: sticky;
    top: 0;
}

table.griddy th, table.griddy td {
    border-right: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 2px 4px 2px 2px;
    font-size: smaller;
    text-align: left;
    white-space: nowrap;
    max-width: 100ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.griddy th {
    font-weight: bold;
    background-color: #999999 !important;
    color: #FFFFFF;
    cursor: default;
}

table.griddy tbody tr td:first-child {
    border-left: 1px solid gray;
}

table.griddy th.filter {
    /*background: url(/images/ShowFilter.png) right bottom no-repeat;*/
    text-decoration: underline;
    cursor: pointer;
}

table.griddy th.filtered {
    text-decoration: underline;
    background: url(/images/search_16.png) right bottom no-repeat;
    cursor: pointer;
}

table.griddy th.sorted-az {
    text-decoration: underline;
    background: url(/images/sort_az_indicator.png) right bottom no-repeat;
    cursor: pointer;
}

table.griddy th.sorted-za {
    text-decoration: underline;
    background: url(/images/sort_za_indicator.png) right bottom no-repeat;
    cursor: pointer;
}

table.griddy th.wrap, table.griddy td.wrap {
    max-width: 10ch;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    /*color: blue;*/
}

table.griddy th.nooverflow, table.griddy td.nooverflow {
    max-width: 5ch;
    overflow: hidden;
    text-overflow: ellipsis;
    /*color: green;*/
}

.grid-filter {
    display: flex;
    flex-direction: column;
    width: 40ch;
    height: 60ch;
    background-color: #ddeff1;
    position: absolute;
    z-index: 100;
    /*    margin-collapse: true;*/
}

div.grid-filter-checkboxes {
    margin: 1ch;
    flex-grow: 1;
    overflow: auto;
}

.grid-filter > div.grid-filter-checkboxes table {
    width: 300%;
}

div.grid-filter-checkboxes table td:first-child {
    width: 1ch;
}

    div.grid-filter-checkboxes table td:first-child input {
        margin: 2px;
    }

div.grid-filter-search {
    margin: 0.5ch;
}

    div.grid-filter-search > span {
        position: relative;
    }

        div.grid-filter-search > span > input {
            width: 95%;
        }

        div.grid-filter-search > span > img {
            position: absolute;
            height: 16px;
            right: 0.3ch;
            top: 0ch;
        }

.grid-filter > div.grid-filter-buttons {
    margin: 1ch;
    display: flex;
    justify-content: space-around;
}

    .grid-filter > div.grid-filter-buttons img {
        height: 24px;
        vertical-align: bottom;
        margin-right: 1ch;
    }

.grid-filter-sort-asc {
    background: url('/images/sortsWithBorder.png') 0 0;
}

    .grid-filter-sort-asc:hover {
        background: url('/images/sortsWithBorder.png') -24px 0;
    }

    .grid-filter-sort-asc:active {
        background: url('/images/sortsWithBorder.png') -48px 0;
    }

.grid-filter-sort-desc {
    background: url('/images/sortsWithBorder.png') 0 -24px;
}

    .grid-filter-sort-desc:hover {
        background: url('/images/sortsWithBorder.png') -24px -24px;
    }

    .grid-filter-sort-desc:active {
        background: url('/images/sortsWithBorder.png') -48px -24px;
    }
