@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.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;
}

.top-row-solid {
    height: 3.5rem;
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content:flex-start;
    position: sticky;
    top: 0;
    z-index: 10;
}

.custom-rename-box {
    width: 500px;
    align-items: center;
    justify-content: center;
    border-width: 2px !important;
    padding:25px;
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 25px;
}

.custom-drop-zone {
    height: 200px;
    width: 500px;
    align-items: center;
    justify-content: center;
    border-width: 2px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 25px;
}

.top-row-solid-right {
    height: 3.5rem;
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-button {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

.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: #f7f7f7;
    }

    .sidebar .navbar-brand {
        padding-top: 0rem;
        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;
}

/* Force all text to uppercase.  use on inputs.  Does not change text.  just changes apearance*/

.forceuppertextbox input, textarea {
    text-transform: uppercase;
}

.forcecheckboxtoheadingheight {
    padding-top: 5px;
}

.tsdrpopup {
    max-width: 1200px;
}

.tsdrselectgrid.dxbs-gridview > .card > div:last-of-type {
    height: 100%;
}



.form-control-blank {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #fff;
}

.ShipDocButtonFullWidth {
    width: 100%;
    margin: 1px;
}

/* css override for bootstrap tables to force border colors */
table.table-bordered-black {
    border: 1px solid black;
    margin-top: 20px;
}

    table.table-bordered-black > thead > tr > th {
        border: 1px solid black;
    }

    table.table-bordered-black > tbody > tr > td {
        border: 1px solid black;
    }

/* Try to force bootstrap form-group items to align properly when some headings go to two rows */
.form-group.valign {
    display: flex;
    flex-direction: column;
    vertical-align: bottom;
    justify-content: space-between;
}
.form-group.halign {
    display: flex;
    flex-direction: row;
    vertical-align: bottom;
    justify-content: space-between;
    margin-bottom: 0px;
}
#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;
}



@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;
    }

    .LocationHistoryPopupCss {
        max-width: 1200px;
    }

    .AdjustContainerQuantitiesPopupCss {
        max-width: 900px;
    }

    .DebulkPopupCss {
        max-width: 900px;
    }

    .BulkPopupCss {
        max-width: 1100px;
        min-width: 1100px;
    }

    .PricingPopupCss {
        /*max-width: 900px;*/
        width: 900px;
    }

    .ShipDocAddContainersPopupCss {
        max-width: 1400px;
        min-width: 1400px;
    }

    .PlannedShipmentAddContainersPopupCss {
        max-width: 1600px;
        min-width: 1600px;
    }

    .QuickSearchListPopupCss {
        max-width: 1450px;
        min-width: 1450px;
    }

}


.loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
}

.loader {
    left: 50%;
    margin-left: -4em;
    font-size: 10px;
    border: .8em solid rgba(218, 219, 223, 1);
    border-left: .8em solid rgba(58, 166, 165, 1);
    animation: spin 1.1s infinite linear;
}

    .loader, .loader:after {
        border-radius: 50%;
        width: 8em;
        height: 8em;
        display: block;
        position: absolute;
        top: 50%;
        margin-top: -4.05em;
    }

@keyframes spin {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.dxGrid-380{
    height: 380px;
}

.dxGrid-350 {
    height: 350px;
}

.dxGrid-500 {
    height: 500px;
}

.dxGrid-650 {
    height: 650px;
}

.dxGrid-1000 {
    height: 1000px;
}