@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --mud-typography-body1-size: .75rem !important;
    --mud-typography-button-size: .75rem !important;
}

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;
}

.content {
    padding-top: 1.1rem;
}

.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;
    }

.fa-button{
    cursor: pointer;
    font-size: 14px;
}
.table-container-form{
    margin-bottom: 0;
}
    .table-container-form td {
        border-top: none;
    }

.mud-table-sort-label,
.sortable-column-header {
    font-weight: bold;
}
.note-edit-link {
    color: black;
    cursor: pointer;
}
.note-edit-link:hover {
    color: #147fdb;
}

.mud-text-search-data{
    max-width: 180px;
}
.mud-date-rang-filter-data{
    max-width: 300px;
}
.mud-grid-item {
    padding: 6px 12px !important;
}

.div-filter-data-set-autocomplete .mud-select {
    flex-grow: initial;
}

.badge-upload-remove .mud-badge{
    cursor: pointer;
}

.mud-picker.requested-date-range .mud-input-control-input-container {
    border-bottom: 5px solid #00c0ef;
}
/*
 * Component: Box
 * --------------
 */
.box {
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    border-top: 3px solid #d2d6de;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

    .box.box-primary {
        border-top-color: #3c8dbc;
    }

    .box.box-info {
        border-top-color: #00c0ef;
    }

    .box.box-danger {
        border-top-color: #dd4b39;
    }

    .box.box-warning {
        border-top-color: #f39c12;
    }

    .box.box-success {
        border-top-color: #00a65a;
    }

    .box.box-default {
        border-top-color: #d2d6de;
    }

    .box.collapsed-box .box-body,
    .box.collapsed-box .box-footer {
        display: none;
    }

    .box .nav-stacked > li {
        border-bottom: 1px solid #f4f4f4;
        margin: 0;
    }

        .box .nav-stacked > li:last-of-type {
            border-bottom: none;
        }

    .box.height-control .box-body {
        max-height: 300px;
        overflow: auto;
    }

    .box .border-right {
        border-right: 1px solid #f4f4f4;
    }

    .box .border-left {
        border-left: 1px solid #f4f4f4;
    }

    .box.box-solid {
        border-top: 0;
    }

        .box.box-solid > .box-header .btn.btn-default {
            background: transparent;
        }

        .box.box-solid > .box-header .btn:hover,
        .box.box-solid > .box-header a:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .box.box-solid.box-default {
            border: 1px solid #d2d6de;
        }

            .box.box-solid.box-default > .box-header {
                color: #444444;
                background: #d2d6de;
                background-color: #d2d6de;
            }

                .box.box-solid.box-default > .box-header a,
                .box.box-solid.box-default > .box-header .btn {
                    color: #444444;
                }

        .box.box-solid.box-primary {
            border: 1px solid #3c8dbc;
        }

            .box.box-solid.box-primary > .box-header {
                color: #ffffff;
                background: #3c8dbc;
                background-color: #3c8dbc;
            }

                .box.box-solid.box-primary > .box-header a,
                .box.box-solid.box-primary > .box-header .btn {
                    color: #ffffff;
                }

        .box.box-solid.box-info {
            border: 1px solid #00c0ef;
        }

            .box.box-solid.box-info > .box-header {
                color: #ffffff;
                background: #00c0ef;
                background-color: #00c0ef;
            }

                .box.box-solid.box-info > .box-header a,
                .box.box-solid.box-info > .box-header .btn {
                    color: #ffffff;
                }

        .box.box-solid.box-danger {
            border: 1px solid #dd4b39;
        }

            .box.box-solid.box-danger > .box-header {
                color: #ffffff;
                background: #dd4b39;
                background-color: #dd4b39;
            }

                .box.box-solid.box-danger > .box-header a,
                .box.box-solid.box-danger > .box-header .btn {
                    color: #ffffff;
                }

        .box.box-solid.box-warning {
            border: 1px solid #f39c12;
        }

            .box.box-solid.box-warning > .box-header {
                color: #ffffff;
                background: #f39c12;
                background-color: #f39c12;
            }

                .box.box-solid.box-warning > .box-header a,
                .box.box-solid.box-warning > .box-header .btn {
                    color: #ffffff;
                }

        .box.box-solid.box-success {
            border: 1px solid #00a65a;
        }

            .box.box-solid.box-success > .box-header {
                color: #ffffff;
                background: #00a65a;
                background-color: #00a65a;
            }

                .box.box-solid.box-success > .box-header a,
                .box.box-solid.box-success > .box-header .btn {
                    color: #ffffff;
                }

        .box.box-solid > .box-header > .box-tools .btn {
            border: 0;
            box-shadow: none;
        }

        .box.box-solid[class*='bg'] > .box-header {
            color: #fff;
        }

    .box .box-group > .box {
        margin-bottom: 5px;
    }

    .box .knob-label {
        text-align: center;
        color: #333;
        font-weight: 100;
        font-size: 12px;
        margin-bottom: 0.3em;
    }

    .box > .overlay,
    .overlay-wrapper > .overlay,
    .box > .loading-img,
    .overlay-wrapper > .loading-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .box .overlay,
    .overlay-wrapper .overlay {
        z-index: 50;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 3px;
    }

        .box .overlay > .fa,
        .overlay-wrapper .overlay > .fa {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -15px;
            margin-top: -15px;
            color: #000;
            font-size: 30px;
        }

        .box .overlay.dark,
        .overlay-wrapper .overlay.dark {
            background: rgba(0, 0, 0, 0.5);
        }

.box-header:before,
.box-body:before,
.box-footer:before,
.box-header:after,
.box-body:after,
.box-footer:after {
    content: " ";
    display: table;
}

.box-header:after,
.box-body:after,
.box-footer:after {
    clear: both;
}

.box-header {
    color: #444;
    display: block;
    padding: 10px;
    position: relative;
}

    .box-header.with-border {
        border-bottom: 1px solid #f4f4f4;
    }

.collapsed-box .box-header.with-border {
    border-bottom: none;
}

.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion,
.box-header .box-title {
    display: inline-block;
    font-size: 18px;
    margin: 0;
    line-height: 1;
}

.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion {
    margin-right: 5px;
}

.box-header > .box-tools {
    position: absolute;
    right: 10px;
    top: 5px;
}

    .box-header > .box-tools [data-toggle="tooltip"] {
        position: relative;
    }

    .box-header > .box-tools.pull-right .dropdown-menu {
        right: 0;
        left: auto;
    }

.btn-box-tool {
    padding: 5px;
    font-size: 12px;
    background: transparent;
    color: #97a0b3;
}

    .open .btn-box-tool,
    .btn-box-tool:hover {
        color: #606c84;
    }

    .btn-box-tool.btn:active {
        box-shadow: none;
    }

.box-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    padding: 10px;
}

.no-header .box-body {
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

.box-body > .table {
    margin-bottom: 0;
}

.box-body .fc {
    margin-top: 5px;
}

.box-body .full-width-chart {
    margin: -19px;
}

.box-body.no-padding .full-width-chart {
    margin: -9px;
}

.box-body .box-pane {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 3px;
}

.box-body .box-pane-right {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 0;
}

.box-footer {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top: 1px solid #f4f4f4;
    padding: 10px;
    background-color: #ffffff;
}

.margin-right-15 {
    margin-right: 15px
}

.card-header-additional {
    max-height:50px
}

.mud-table-head .mud-table-cell {
    padding: 3px !important;
}

.mud-table-cell {
    padding-top: 1px !important;
    padding-right: 1px !important;
    padding-bottom: 1px !important;
    padding-left: 2px !important;
    font-size: .75rem;
}

.mud-link.mud-link-underline-hover {
    text-decoration: none;
    font-size: .75rem;
}

.mud-table-head .mud-table-cell,
.mud-table-foot .mud-table-cell {
    font-weight: bold !important;
    line-height: 1.5rem;
}

.mud-input-control:not(.shipment-card-input) .mud-input-slot,
.mud-input-control:not(.shipment-card-input) .mud-input-label,
.mud-picker:not(.shipment-card-input) .mud-input-slot,
.mud-picker:not(.shipment-card-input) .mud-input-label,
.mud-input-slot, p {
    font-size: .75rem !important;
}

.mud-table-pagination,
.mud-select-input {
    font-size: .75rem;
}

    .mud-table-pagination .mud-icon-size-medium {
        font-size: 1.2rem;
    }

.mud-table-pagination-toolbar {
    height: 35px;
}

.mud-list-item-gutters {
    padding-left: 10px;
    padding-right: 10px;
}

.mud-list-item {
    padding-top: 0px;
    padding-bottom: 0px;
}

.mud-radio-content, .mud-checkbox > .mud-typography-body1 {
    line-height: 1 !important;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    line-height: 6px;
}

.mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense, div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    padding-top: 8px;
    padding-bottom: 8px;
    /*background-color: white;*/
}


.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined, .mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(10px,0px) scale(.75);
}
.mud-button-filled-size-small {
    padding: 1px 5px !important;
    font-size: .75rem;
}

.mud-button {
    padding: 4px 8px;
}

.mud-button-filled.mud-icon-button {
    padding: 3px;
}

.mud-table-pagination-toolbar .mud-icon-button {
    padding: 4px;
    font-size: .75rem;
}

.btn {
    padding: 5px 8px;
    font-size: .75rem;
}

.mud-icon-size-small {
    font-size: 1rem;
}

.mud-icon-size-medium {
    font-size: 1.2rem;
}

.mud-table-cell .mud-table-row-expander,
.mud-table-cell .mud-icon-button-size-small {
    padding: 6px !important;
    margin-left: 6px !important;
}

.mud-table-cell .mud-ripple-checkbox {
    padding: 6px !important;
    margin-left: 24px !important;
}

.daterangepicker.auto-apply .drp-buttons{
    display: block !important;
}

.date-range-picker-l .form-control:focus {
    box-shadow: none !important; 
}

.calendar-table .today {
    background-color: #63c4ff9e;
    border-color: transparent;
    color: inherit;
}

.highlight, .mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover {
    background-color: lightblue !important;
}
.drag-icon-container {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: inherit;
}
    .drag-icon-container i {
        font-size: 30px;
        cursor: pointer;
    }
    .drag-icon-container h5 {
        font-size: 20px;
        cursor: pointer;
    }


/*shipment*/

.shipment-container {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    width: 100%;
    margin: auto;
}

.shipment-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.shipment-column {
    flex: 2;
    min-width: 200px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
    .shipment-column .shipment-column-content {
        justify-items: flex-start;
    }
        .shipment-column .shipment-column-content .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
            margin-top: 0px;
        }

    .shipment-column .shipment-column-note {
        margin-top: 10px;
        display: flex;
        align-items: center;
    }

        .shipment-column .shipment-column-note svg {
            font-size: 58px;
            margin-top: 5px;
        }

        .shipment-column .shipment-column-note label {
            font-size: 12px !important;
        }

    .shipment-icon-column {
        flex: 0.5;
        min-width: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        min-width: 140px;
    }

        .shipment-icon-column .mud-picker-inline {
            flex: none !important;
        }
        .shipment-icon-column .mud-select {
            flex-grow: 0;
        }
.shipment-column-content .mud-select,
.shipment-column-content .mud-input-control {
    width: 100%
}

.shipment-column-content .content-flex,
.shipment-column-content .content-flex-address {
    display: flex;
    gap: 6px;
    width: 100%;
}
.content-flex .mud-input-control,
.content-flex-address .mud-select{
    flex: 1
}
.content-flex-address .mud-input-control {
    flex: 2
}

.shipment-icon-column .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 0px;
}

.shipment-poc {
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    word-break: break-word;
}

/* ── /shipments page: each shipment wrapped as a collapsible group ── */
.shipment-group-wrapper {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.15s ease;
    /* Browser-level virtualization: off-screen rows skip layout/paint/event
     * binding, so 700 rows behave like ~20. Placeholder intrinsic size is one
     * collapsed row; expanded rows resize naturally when they scroll in. */
    content-visibility: auto;
    contain-intrinsic-size: auto 72px;
    /* scrollIntoView({ block: 'start' }) aligns the row's top with the
     * viewport top. Without this margin the row would land BEHIND the fixed
     * MudAppBar (~64px) + the page header (~64px) + the filter toolbar
     * (~64px). 200px reserves enough space so the user actually SEES the
     * row's top after a scroll target is invoked (group save, drag-drop,
     * etc.). */
    scroll-margin-top: 200px;
}

/* Brief drop highlight: when a shipment is dropped via drag-and-drop the
 * razor adds the .just-dropped class to that row (in either /shipments or
 * /shipment/driver). The keyframes draw a green outline above and below the
 * row using box-shadow (which doesn't shift layout) and fade it out over
 * ~1.8s. The animation is one-shot — re-applying the class to a different
 * row replays it for that row. */
@keyframes shipment-drop-highlight {
    0%   { box-shadow: 0 -3px 0 0 #22c55e, 0 3px 0 0 #22c55e; }
    85%  { box-shadow: 0 -3px 0 0 #22c55e, 0 3px 0 0 #22c55e; }
    100% { box-shadow: 0 -3px 0 0 transparent, 0 3px 0 0 transparent; }
}
.shipment-group-wrapper.just-dropped,
.driver-group.just-dropped {
    animation: shipment-drop-highlight 1.8s ease-out;
    /* Force the just-dropped row to render immediately so the keyframe plays.
       Without this, .shipment-group-wrapper has content-visibility: auto and
       off-screen rows skip layout/paint — the animation wouldn't run until the
       user scrolled the row in. We also fire scrollIntoView from C# but that
       only matters when the user isn't already looking at the position. */
    content-visibility: visible;
}
.shipment-group-wrapper .shipment-group-drag-handle {
    cursor: grab;
    color: #64748b;
    padding: 6px 4px;
    align-self: center;
}
.shipment-group-wrapper .shipment-group-drag-handle:active {
    cursor: grabbing;
}

/* Drop indicator is rendered inline by the razor as a thick red top border
 * on the on-demand overlay (same as driver-shipments). No extra classes. */
.shipment-group-wrapper {
    margin-top: 4px;
}

/* Summary-line extras: equipment indicator and lease/purchase link */
.shipment-group-summary .shipment-group-eq-indicator {
    color: #7c3aed;
    font-weight: 600;
}
.shipment-group-summary .shipment-group-link,
.driver-group-summary .shipment-group-link {
    color: #2563eb;
    font-weight: 500;
}
/* /shipments lease link is clickable — drill into lease detail.
   Driver-page lease link is informational (driver doesn't need to
   navigate into the lease), so its cursor stays default. */
.shipment-group-summary .shipment-group-link {
    cursor: pointer;
}
.shipment-group-summary .shipment-group-link:hover {
    text-decoration: underline;
}
.shipment-group-wrapper .shipment-group-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    cursor: pointer;
    user-select: none;
}
.shipment-group-wrapper .shipment-group-toggle {
    padding: 2px 6px !important;
    color: #475569;
    align-self: center;
}
.shipment-group-wrapper .shipment-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    flex: 0 0 auto;
    padding-right: 6px;
    min-width: 90px;
}
/* Multi-line per-member summary: each shipment in the group becomes its
 * own row inside .shipment-group-summary. Standalones still render a
 * single row so the visual is unchanged for the 95% case. */
.shipment-group-wrapper .shipment-group-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}
.shipment-group-summary-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
.shipment-group-summary-line > span:not(.driver-group-chip):not(.shipment-group-counter):not(.shipment-group-shipnum) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shipment-group-summary-line > span:not(:last-child):not(.driver-group-chip)::after {
    content: "\00B7";
    margin-left: 8px;
    color: #94a3b8;
}
.shipment-group-counter {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #94a3b8;
    min-width: 28px;
    text-align: right;
}
.shipment-group-shipnum {
    font-weight: 600;
    color: #1f2937;
}

/* Same per-member line treatment for the driver page. */
.driver-group-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.driver-group-summary-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
.driver-group-summary-line > span:not(.driver-group-chip):not(.driver-group-counter):not(.driver-group-shipnum) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.driver-group-summary-line > span:not(:last-child):not(.driver-group-chip)::after {
    content: "\00B7";
    margin-left: 8px;
    color: #94a3b8;
}
.driver-group-counter {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #94a3b8;
    min-width: 28px;
    text-align: right;
}
.driver-group-shipnum {
    font-weight: 600;
    color: #1f2937;
}
.shipment-group-wrapper .driver-group-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.6;
}
.shipment-poc .mud-typography {
    text-align: center;
}

/* Insert-position picker rendered inside the shipment FormModal for
   new shipments only. Top/Bottom radio that decides Order on save.
   Tracks the same visual style as the multi-container panel below. */
.insert-position-panel {
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    border-radius: 6px;
}
.insert-position-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 4px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 4px;
}
.insert-position-icon {
    color: #475569;
    font-size: 14px;
}
.insert-position-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.insert-position-footnote {
    margin-top: 2px;
    padding: 0 4px;
    font-size: 11px;
    color: #94a3b8;
}

/* Additional Serials panel rendered inside the FormModal for shipments
   that carry more than one tracked unit on a single shipment record.
   The primary serial is on the Shipment row above; this panel manages
   the overflow collection (ShipmentAdditionalSerial). */
.additional-serials-panel {
    border: 1px solid #cbd5e1;
    background: #fafbfc;
    border-radius: 6px;
}
.additional-serials-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 6px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
}
.additional-serials-icon {
    color: #64748b;
    font-size: 14px;
}
.additional-serials-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.additional-serials-add {
    margin-left: auto !important;
    text-transform: none !important;
}
.additional-serials-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.additional-serials-table th {
    text-align: left;
    padding: 4px 8px;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.additional-serials-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}
.additional-serials-table .as-col-num {
    width: 32px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #64748b;
}
.additional-serials-table .as-col-serial {
    width: 45%;
}
.additional-serials-table .as-col-unit {
    color: #475569;
    white-space: nowrap;
}
.additional-serials-table .as-col-actions {
    width: 36px;
    text-align: right;
    padding: 0 4px;
}
.additional-serials-empty {
    padding: 10px 8px;
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
}

/* Multi-container group panel rendered inside the shipment FormModal.
   Read-only summary of every container that ships together so editors
   can see siblings without navigating away. */
.multi-container-panel {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 6px;
}
.multi-container-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 6px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
}
.multi-container-icon {
    color: #64748b;
    font-size: 14px;
}
.multi-container-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.multi-container-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.multi-container-table th {
    text-align: left;
    padding: 4px 8px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.multi-container-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}
.multi-container-table .mc-col-num {
    width: 40px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #64748b;
}
.multi-container-table .mc-col-ship {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}
.multi-container-table .mc-col-status {
    color: #64748b;
    white-space: nowrap;
}
.multi-container-table .mc-row-link {
    cursor: pointer;
}
.multi-container-table .mc-row-link:hover {
    background: #eef2ff;
}
.multi-container-table .mc-row-current {
    background: #ecfdf5;
}
.multi-container-table .mc-row-current .mc-col-ship {
    color: #047857;
}
.multi-container-footnote {
    margin-top: 4px;
    padding: 2px 4px;
    font-size: 11px;
    color: #94a3b8;
}
.multi-container-empty {
    padding: 12px 8px;
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
}
.multi-container-add-btn {
    margin-left: auto !important;
    text-transform: none !important;
}
.multi-container-table .mc-col-actions {
    width: 36px;
    text-align: right;
    padding: 0 4px;
}

/* Driver delivery dialog — Additional Serials list. Read-only serial
   summary with a per-row Damaged checkbox so the driver can flag any
   overflow container that arrived damaged. Sized for tablet/phone. */
.additional-serials-delivery-panel {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 6px;
}
.additional-serials-delivery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.additional-serials-delivery-table th {
    text-align: left;
    padding: 6px 10px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.additional-serials-delivery-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}
.additional-serials-delivery-table .asd-col-num {
    width: 48px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #64748b;
}
.additional-serials-delivery-table .asd-col-serial {
    font-weight: 600;
    color: #0f172a;
}
.additional-serials-delivery-table .asd-col-unit {
    color: #475569;
}
.additional-serials-delivery-table .asd-col-dmg {
    text-align: left;
}
.additional-serials-delivery-table .asd-col-actions {
    width: 48px;
    text-align: center;
}

/* Add-Serial autocomplete dropdown row layout — serial number on the
   left in bold + monospace, unit type on the right in a muted color.
   So the driver can verify the unit type before picking, instead of
   round-tripping through the primary picker to check. */
.asd-picker-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
.asd-picker-serial {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    color: #0f172a;
}
.asd-picker-unit {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

/* ── Lease/Order detail products grid: substitution rows ──────────
   When a delivery shipment carried additional serials — substitution
   like 2× 20' for 1× 40' ordered — each overflow renders as its OWN
   top-level group line in the lease products grid (synthetic
   LeaseProduct generated client-side from
   LeaseProduct.DeliveredOverflowSerials, tagged IsOverflowVirtual).
   Billing stays on the primary LP per the boundary rule; substitution
   lines are display-only and visually flagged with the badge below so
   the office can tell them apart from a fully-priced LP at a glance.
   See docs/SHIPMENT-MULTI-SERIAL.md §7.3.
*/
.lease-product-substitution-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    vertical-align: middle;
}
.lease-product-substitution-dash {
    color: #94a3b8;
    font-weight: 600;
}
.additional-serials-delivery-panel .additional-serials-empty {
    padding: 8px 4px;
    color: #64748b;
    font-size: 13px;
}

/* Driver delivery dialog: oversized multi-container card so the driver
   on a tablet / phone can see what containers are on this truck and
   which ones are still pending. */
.driver-multi-container-panel {
    margin: -8px -8px 16px;
    padding: 12px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}
.driver-multi-container-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.driver-multi-container-header i {
    font-size: 18px;
    color: #475569;
}
.driver-multi-container-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.driver-multi-container-table th {
    text-align: left;
    padding: 8px 10px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.driver-multi-container-table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.driver-multi-container-table .dmc-col-num {
    width: 56px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #475569;
    font-weight: 600;
}
.driver-multi-container-table .dmc-col-ship {
    font-weight: 700;
    color: #0f172a;
}
.driver-multi-container-table .dmc-col-status {
    width: 130px;
    text-align: right;
}
.driver-multi-container-table tr.dmc-row-current {
    background: #ecfdf5;
}
.driver-multi-container-table tr.dmc-row-done {
    background: #f8fafc;
    color: #94a3b8;
}
.driver-multi-container-table tr.dmc-row-pending {
    background: #fff;
}
.dmc-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.dmc-badge-done {
    background: #d1fae5;
    color: #065f46;
}
.dmc-badge-current {
    background: #dbeafe;
    color: #1e40af;
}
.dmc-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 600px) {
    .driver-multi-container-table {
        font-size: 14px;
    }
    .driver-multi-container-table th {
        font-size: 11px;
        padding: 6px 6px;
    }
    .driver-multi-container-table td {
        padding: 8px 6px;
    }
    .driver-multi-container-header {
        font-size: 14px;
    }
}

.shipment-group-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.shipment-group-container i {
    font-size: 20px;
}
.shipment-group-container-reorder {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-left: 8px;
}

.shipment-group-container-icon {
    justify-items: center;
}

@media (max-width: 600px) {
    .drag-icon-container {
        flex-direction: row;
        margin-right: 10px;
    }
    .drag-icon-container h5{
        margin-right: 10px;
    }
    .shipment-group-container {
        margin-top: 5px;
        margin-right: 10px;
    }
    .shipment-row {
        flex-direction: column;
    }

    .shipment-column, .shipment-icon-column {
        width: 100%;
        border-bottom: 1px solid #c4c4c4;
        margin-bottom: 10px;
    }
    .shipment-icon-column {
        flex-direction: row;
    }
}

.column-header .sort-direction-icon, .column-header .drag-icon-options {
    display: none;
}

.data-grid-padding-new .mud-table-cell {
    padding-top: 5px !important;
    padding-right: 2px !important;
    padding-bottom: 5px !important;
    padding-left: 2px !important;
    font-size: .75rem;
}
.assign-bill-container .mud-grid-item {
    padding: 0px 12px !important;
}

.table-upload-file .mud-table-toolbar{
    height: 30px !important;
}

.mud-input.mud-input-outlined.mud-input-adorned-end {
    padding-right: 0;
    padding-inline-end: 0;
}

.selected {
    background-color: lightblue !important;
}

    .selected > td {
        color: white !important;
    }

        .selected > td .mud-input {
            color: white !important;
        }

/* ── LeaseConflictAlert dialog ─────────────────────────────────────
   Visually-loud variant of the generic Alert dialog, used ONLY when
   the driver / dispatcher enters a serial that is currently on
   another active lease. Red banner header, callout block with the
   serial + lease number called out in monospace, clear next-step
   text. Designed so the user cannot mistake it for a regular
   "wrong-serial-type" or "missing-data" alert.
   Component: Shared/Components/LeaseConflictAlert.razor
*/

/* Override the dialog chrome so the title bar reads as an alarm */
.mud-dialog:has(.lease-conflict-title) .mud-dialog-title {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 14px 20px;
    margin: 0;
}

.lease-conflict-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.lease-conflict-title .mud-icon-root {
    color: #ffffff;
    font-size: 32px !important;
}

.lease-conflict-body {
    padding: 8px 4px 4px;
}

.lease-conflict-lede {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 16px;
    line-height: 1.5;
}

.lease-conflict-callout {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-left: 6px solid #dc2626;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 16px;
}

.lease-conflict-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 4px 0;
}
.lease-conflict-row + .lease-conflict-row {
    border-top: 1px dashed #fecaca;
    margin-top: 4px;
    padding-top: 8px;
}

.lease-conflict-label {
    flex: 0 0 110px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #991b1b;
}

.lease-conflict-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.lease-conflict-lease {
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 10px;
    border-radius: 4px;
}

.lease-conflict-action {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Right-align the action button and make it visually weighty */
.lease-conflict-actions {
    padding: 12px 20px 16px;
    justify-content: flex-end;
    gap: 8px;
}
.lease-conflict-actions .mud-button {
    min-width: 220px;
}

/* Phone app bar: the "Storage Squared" label is hidden (MainLayout),
   so keep the page title on one line next to the logo and menu. */
@media (max-width: 600px) {
    #page-title {
        margin-left: 8px !important;
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
}
