﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    --font-family-sans-serif: 'HelveticaNeue';
}

a, .btn-link {
    color: #0366d6;
}

.Search-Criteria {
    color: #0f0f0f;
    height: 13px;
    margin: 0 0 0 12px;
    --font-family-sans-serif: HelveticaNeue;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    font-size: 1.05rem;
    line-height: normal;
    letter-spacing: normal;
    width: 79px;
}

.Search-Criteria-Label {
    font-weight: 600;
}

.-Search-partial-car {
    vertical-align: middle;
}

/* Banner along the top of the main screen */
#banner-header {
    background-color: #2893d7 !important;
}

/* Chevron changes color in search bar */
.Search-Chevron {
    color: #2893d7;
}

/* Icon for tool tips */
.Tooltip-Icon {
    color: #d0d0d0;
}

.Search-Result-Header {
    color: #0f0f0f;
    font-weight: bold;
    padding: 3px 6px;
    font-size: 1.05rem;
    vertical-align: middle;
}

.Search-Result-Detail {
    vertical-align: middle;
    font-size: 1.05rem;
}

.Required-Field-Text {
    color: red;
    font-size: .9rem;
}

.WorldpayExtractMessage {
    white-space: pre-line;
}

/* Old export to Excel button likely to be deprecated */
.btn-export-to-excel {
    background-image: url( '/images/ExportToExcelButton.png');
    background-size: cover;
    width: 151px;
    height: 42px;
}

/* New export to Excel button */
#Export-to-Excel {
    --font-family-sans-serif: HelveticaNeue;
    font-size: 1.05rem;
    font-weight: bold;
    color: #2893d7;
    text-decoration: underline;
}

/* New export to Excel button but with better element id*/
#btnExcelExport {
    --font-family-sans-serif: HelveticaNeue;
    font-size: 1.05rem;
    font-weight: bold;
    color: #2893d7;
    text-decoration: underline;
}

#SecureFilePicker .b-text-drop {
    min-height: 150px;
    background-color: #f2f2f2;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
}

/* Data grid style  !important attribute overrides color selection from Bootstrap */
tr.table-primary > td {
    background-color: #94c9eb !important;
    border-color: #f2f2f2 !important;
}

/* Removes black border around a selected row within a data grid. */
.dataGridSelectedRowWithNoBlackBorder tr {
    outline: none;
}

/* Data grid detail row. Selects the first table row (tr) after a selected row (tr.table-primary)
inside a datagrid with class dataGridWithBlueDetailRow*/
.dataGridWithBlueDetailRow tr.table-primary + tr {
    background-color: #d4e9f7 !important;
}

/* Fixes issues in dataGridWithBlueDetailRow by only effecting the Data grid detail row. 
   Looks for a class name set within RssDataGrid for the DetailRowTemplate
*/
.dataGridWithBlueDetailRowOnly tr.table-primary + tr:has(> td > div.rssGridDetailRow) {
    background-color: #d4e9f7 !important;
}

/* Compact data grid. Apply to a DataGrid via Class="dataGridCompact" for reports with many
   columns that need tighter cell spacing to fit more data horizontally. */
.dataGridCompact th,
.dataGridCompact td {
    padding: 0.45rem 0.3rem;
}

/* Compact, vertically centered table header cells, allowing long captions to wrap instead of widening
   the column. (The height:1px is intentional, to allow the flex wrapper (below) to stretch to height:100%.) */
.dataGridCompact th {
    white-space: normal;
    line-height: 1.05;
    vertical-align: middle;
    height: 1px;
}

/* This flex wrapper div keeps each column's caption text and filter button together, centered within
   the header cell by filling its full height. Text settings are inherited from the th above. */
.dataGridCompact thead th > div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
}

/* Reduces the filter button's padding and content size so it remains compact within the header, 
   fitting tightly to the column's caption text. */
.dataGridCompact thead button {
    padding: 0.05rem 0.2rem;
    line-height: 1;
    font-size: 0.72rem;
    margin: 0;
    flex: 0 0 auto;
}

.storeFilter, .laneFilter, .stateFilter {
    min-width: 70px;
}

.cityFilter, .commandFilter, .posFilter, resolvedFilter {
    min-width: 100px;
}

.DropdownCheckListExpandIcon {
    padding: 0px 5px 0px 5px;
    pointer-events: none;
    position: absolute;
    top: 0.1em;
    right: 1em;
}

.DropdownCheckListContractIcon {
    padding: 0px 5px 0px 5px;
    pointer-events: none;
    position: absolute;
    top: 0.5em;
    right: 1em;
}

.DropdownCheckListCollapseScrollable {
    margin-top: 2.25em;
    z-index: 11;
    position: absolute;
    border-color: lightgray;
    border-width: 1px;
    border-style: solid;
    overflow: auto !important;
    /*height: 250px;*/
    background-color: white;
}

/* Keeps the borders on fixed data-grid headers visible while scrolling.
   The border color matches Bootstrap's standard table border color.
*/
.table-fixed-header thead th {
    box-shadow: inset 0 1px 0 0 #dee2e6, 0 -1px 0 0 #dee2e6;
}

.table-fixed-header:has(.GCDetailGrid) {
    height: auto !important;
}

.UnsetOverflow {
    overflow: unset !important
}

.booleanFilter {
    min-width: 90px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        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;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.VerticalFormFieldLabel {
    padding-left: 1.5rem;
    width: 10rem;
}

#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;
    text-align: center;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.datagrid-toprow-filters {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
    column-gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.datagrid-toprow-filter-checkbox {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

    .datagrid-toprow-filter-checkbox .form-check {
        margin-bottom: 0;
    }

.datagrid-toprow-filter-select {
    flex: 0 0 12rem;
    width: 12rem;
    max-width: 12rem;
    min-width: 12rem;
}

.datagrid-toprow-filter-select .custom-select,
.datagrid-toprow-filter-select select {
    width: 12rem;
    max-width: 12rem;
}

@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: row;
    }

    .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;
    }
}