@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/*BASE CLASSES*/
html, body {
    font-family: 'Lato', Arial, sans-serif;
}

.main {
    flex: 1;
}

.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;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

a, .btn-link {
    color: #000;
    border-radius: 4px;
    cursor: pointer;
}
    a .btn-link a:hover {
    background-color: rgba(255,255,255,0.1);
    color: black;
}

.btn-primary {
    color: #FFF;
    background-color: #008080;
    border-color: #FFF;
}

.btn-primary:hover {
    color: #FFF;
    background-color: #797979;
    border-color: #FFF;
}

.btn-fill {
    width: 100%;
}

.btn-inherited {
    z-index: 5000;
    position: absolute;
    left: 18rem;
    top: 5rem;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}


/*********************************/

/*GLCS CLASSES*/





.header-logo {
    background-image: url(../assets/GLCS-logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    height: 5rem;
    width: 10rem;
    margin-left: 1rem;

}

.glcs-bg {
    background-image: url(../assets/trucklineup.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    min-height: 100%;
}

/**********************************/
.sidebar {
    background-color: #c99b58;
}
.navbar-spacer {
    height: 2rem;
}
.sidebar .top-row {
    background-image: url(../assets/GLCS-logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    height: 5rem;
}


.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 a {
    color: #000;
    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: black;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: black;
}

.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;
}

#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;
    }


/*Custom Styling*/
.main-spacer {
    padding-top: 4rem;
}

.form-spacer {
    padding-top: 2rem;
}

.col-pad {
    padding-left: 2rem;
    padding-right: 2rem;
}

.card-container:after {
    content: "";
    display: table;
    clear: both;
}
/*Media Queries*/
/*Mobile*/
@media (max-width: 768px) {
    .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;
    }
    .glcs-card-col {
        min-width: 100%;
    }

    .nim-logo {
        background-image: url(../assets/Norfolk-Iron-Metal-logo-footer-white.png);
        background-size: contain;
        background-repeat: no-repeat;
        height: 5rem;
        width: 10rem;
        display: block;
        margin-left: 25%;
    }
}
/*Small Screen*/
@media (min-width: 769px) and (max-width: 1024px) {
    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;
    }
    .glcs-card-col {
        float: left !important;
        width: calc(50% - 1rem);
        min-height: 14rem;
        margin-right: 1rem;
    }

    /*NIM CUSTOM*/
    .nim-logo {
        background-image: url(../assets/Norfolk-Iron-Metal-logo-footer-white.png);
        background-size: contain;
        background-repeat: no-repeat;
        height: 5rem;
        width: 10rem;
        display: block;
        margin-left: 45%;
    }

    .modal-default {
        min-width: 95%;
    }
}
/*Typical Screen*/
@media (min-width: 1025px) and (max-width: 1200px) {
    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;
    }
    .glcs-card-col {
        float: left !important;
        width: calc(33% - 1rem);
        min-height: 14rem;
        margin-right: 1rem;
    }

    /*NIM CUSTOM*/
    .nim-logo {
        background-image: url(../assets/Norfolk-Iron-Metal-logo-footer-white.png);
        background-size: contain;
        background-repeat: no-repeat;
        height: 5rem;
        width: 10rem;
        display: block;
        margin-left: 45%;
    }

    .modal-default {
        max-width: fit-content;
        min-width: 40rem;
    }

}
/*Extra large Screens*/
@media (min-width: 1200px) and (max-width: 5000px) {
    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;
    }
    .glcs-card-col {
        float: left !important;
        width: calc(33% - 1rem);
        min-height: 14rem;
        margin-right: 1rem;
    }

    /*NIM CUSTOM*/
    .nim-logo {
        background-image: url(../assets/Norfolk-Iron-Metal-logo-footer-white.png);
        background-size: contain;
        background-repeat: no-repeat;
        height: 5rem;
        width: 10rem;
        display: block;
        margin-left: 45%;
    }

    .modal-default {
        max-width: fit-content;
        min-width: 40rem;
    }
}

.glcs-card {
    background-color: #FFF;
    opacity: .9;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.glcs-card-lg {
    background-color: #FFF;
    opacity: .9;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    min-height: 30rem;
    text-transform: uppercase;
}

.bg-glcs-pending {
    background-color: #566df4;
}

.bg-glcs-processed {
    background-color: #75db7e;
}

.bg-glcs-warning {
    background-color: #f3e338;
}

.bg-glcs-error {
    background-color: #ff5e5e;
}

.card {
    margin-top: 1rem;
}
select.minimal {
    background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%), linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
}

select.minimal:focus {
    background-image: linear-gradient(45deg, green 50%, transparent 50%), linear-gradient(135deg, transparent 50%, green 50%), linear-gradient(to right, #ccc, #ccc);
    background-position: calc(100% - 15px) 1em, calc(100% - 20px) 1em, calc(100% - 2.5em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
    border-color: green;
    outline: 0;
}

/*MISC CLASSES*/
.extra-bold {
    font-weight: 900;
}


/*********************************/
/*NAV CLASSES*/
.top-nav {
    background-color: #c99b58;
}

.top-nav-logo {
    background-image: url(../assets/GLCS-logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    height: 5rem;
}

/*********************************/
.a-expand {
    cursor: pointer;
    color: blue;
}

.glcs-dark-text {
    color: #41240f;
}

a.glcs-dark-text:hover {
    color: #eae1a6;
}

/*AUTO COMPLETE*/
.autocomplete {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: gray !important;
    color: #ffffff;
}
/*********************************/

/*Sticky classes*/
.sticky {
    position: fixed;
    top: 0;
    padding-top: 1rem;
    padding-right: 18rem;
    padding-bottom: 1rem;
    width: 100%;
    z-index: 5;
    text-align: center;
    align-content: center;
    background-color: #f5f5f5;
}

.body-sticky {
    padding-top: 9.5rem;
}
/*********************************/

/*ALERT CLASSES*/
.glcs-alert {
    position: fixed;
    top: 0;
    right: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 30%;
    z-index: 50;
}
/*TABLE OVERWRITES*/
table, th, td, .table {
    padding: 1rem !important;
}

.table-white {
    background-color: #FFF;
}

/*********************************/

/* Used for Setting Display Stacking */
.setting-stack {
    display: flex;
    flex-direction: column;
}
