@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;
}

.dev-database-banner {
    background-color: #d32f2f;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    padding: 6px 12px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

app {
    padding-top: 32px;
}

.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: 32px;
    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: 32px;
    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;
    }

/* 3x2 grid used for Waste Codes cell - always shows 6 bordered boxes */
.waste-codes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    min-height: 60px;
    border: 1px solid black;
    box-sizing: border-box;
}

.waste-codes-cell {
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    min-height: 28px;
    box-sizing: border-box;
    background-color: transparent;
}

/* 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;
}

[class*="blazored-toast-container"] {
    z-index: 2147483647 !important;
    position: fixed !important;
}
/* Notification center (bell + live toasts) */
.lm-notif-bell { position: relative; border: 0; background: transparent; color: #2c2b5e; font-size: 1.25rem; line-height: 1; padding: .35rem .5rem; cursor: pointer; }
.lm-notif-bell:hover { color: #0d6efd; }
.lm-notif-bell-inline { margin-right: .75rem; }
.lm-notif-sticky { position: sticky; top: 0; height: 0; z-index: 1040; }
body:has(.dev-database-banner) .lm-notif-sticky { top: 32px; }
.lm-notif-bell-floating { position: absolute; top: 6px; right: 16px; background: #fff; border: 1px solid #ced4da; border-radius: 50%; width: 40px; height: 40px; box-shadow: 0 2px 6px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; }
.lm-notif-badge { position: absolute; top: -4px; right: -6px; font-size: .65rem; }
.lm-notif-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 2147483000; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.lm-notif-toast { position: relative; background: #2c2b5e; color: #fff; border-radius: 8px; padding: .6rem 2.2rem .6rem .8rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: lm-notif-in .25s ease-out; }
.lm-notif-toast-close { position: absolute; top: 2px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; opacity: .8; cursor: pointer; }
.lm-notif-toast-close:hover { opacity: 1; background: rgba(255,255,255,.18); }
.lm-notif-toast-head { display: flex; align-items: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; opacity: .85; }
.lm-notif-toast-title { font-weight: 600; margin-top: .25rem; }
.lm-notif-toast-msg { font-size: .85rem; margin-top: .15rem; white-space: pre-wrap; max-height: 6em; overflow: hidden; }
.lm-notif-toast-actions { display: flex; gap: .4rem; margin-top: .5rem; align-items: center; }
.lm-notif-delay { width: 110px; }
@keyframes lm-notif-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Drag/drop upload zone */
.lm-dropzone { border: 2px dashed #b0b7c3; border-radius: 6px; padding: .5rem .75rem; background: #fafbfd; transition: background .15s, border-color .15s; }
.lm-dropzone.lm-dropzone-active { border-color: #0d6efd; background: #eaf2ff; }
.lm-dropzone-hint { font-size: .8rem; color: #6c757d; margin-top: .25rem; }

/* Hide DxUpload built-in "Remove all" / clear-list button */
.dxbl-upload-cancel-btn,
.dxbl-upload .dxbl-upload-clear-button,
.dxbl-upload .dxbl-upload-clear-list-button,
.dxbl-upload .dxbl-upload-remove-all-button,
.dxbl-upload-file-list-toolbar .dxbl-upload-clear-button,
.dxbl-upload-file-list-toolbar { display: none !important; }

/* Capitalize (uppercase) all combobox/dropdown data */
.dxbl-combobox input.dxbl-text-edit-input,
.dxbl-combobox-dropdown .dxbl-listbox-item,
.dxbl-combobox-dropdown .dxbl-grid-table td { text-transform: uppercase; }

/* Home dashboard (WTS Admin) */
.lm-home-dashboard { max-width: 1600px; margin: 15px auto 0; }
.lm-dashboard-title { font-size: 1.35rem; font-weight: 600; }
.lm-dashboard-widget-tools { white-space: nowrap; flex-shrink: 0; }
.lm-dashboard-widget-tools .dxbl-btn { padding: 0 2px; }
.lm-dashboard-widget-header { cursor: grab; }
.lm-dashboard-widget-header:active { cursor: grabbing; }
.lm-drag-grip { font-size: .8rem; opacity: .5; }
.lm-dashboard-widget-body { min-height: 60px; border: 2px dashed transparent; border-radius: 4px; }
.lm-drag-over { border: 2px dashed #0d6efd !important; background: rgba(13,110,253,.06); }
.lm-dashboard-grid { font-size: .85rem; }
.lm-dashboard-grid .dxbl-grid-table td { overflow: hidden; text-overflow: ellipsis; }
.lm-dashboard-grid .dxbl-grid-table td a,
.lm-dashboard-grid .dxbl-grid-table td { text-transform: none; }

/* Field caption tooltip indicator */
.lm-field-info {
    display: inline-flex; align-items: center; justify-content: center;
    width: .95em; height: .95em; margin-left: .3em; vertical-align: text-top;
    border: 1px solid currentColor; border-radius: 50%;
    font-size: .8em; font-weight: 700; font-style: italic; font-family: Georgia, serif; line-height: 1;
    text-transform: none; opacity: .6; cursor: default; user-select: none;
}
.lm-field-info:hover { opacity: 1; }
