﻿/*html, body * {
    scrollbar-width: none !important;
}*/

/*.mud-table-toolbar {
    background-color: rgb(49,56,94);
    color:white;
}

.mud-table-toolbar.mud-icon-root {
    fill: white;
}*/

.mud-button {
    text-transform: none !important;
}

/* Colours come from the CSS variables in contra-theme.css (loaded first). */

/* Read-only and disabled inputs: the whole box gets the Mist tint (contra-theme.css), not just the text slot. */
input.mud-input-slot[readonly],
input.mud-input-slot:disabled {
    background-color: transparent;
}

/* Table and data grid headers: soft blue-grey with dark navy bold text and icons. */
.mud-table-head {
    background-color: var(--ct-th-bg) !important;
}

    /* !important: MudBlazor's sticky-header rule would otherwise paint it white. */
    .mud-table-head .mud-table-cell {
        background-color: var(--ct-th-bg) !important;
        color: var(--ct-th-text) !important;
        font-weight: 600;
        border-bottom: 1px solid var(--ct-table-line);
    }

    .mud-table-head .mud-table-cell .column-header,
    .mud-table-head .mud-table-cell .mud-icon-root,
    .mud-table-head .mud-table-cell .mud-button-root,
    .mud-table-head .mud-table-cell .mud-table-sort-label,
    .mud-table-head .mud-table-cell .mud-typography {
        color: var(--ct-th-text) !important;
    }

.paperLightBlueBackground {
    background-color: var(--ct-mist);
}

/*.mud-card-header-forms {
    background-color: rgb(49,56,94);
    color: white;
    height:40px;
}*/

/* Card header bars: the original Contra gradient bar, 40px, white title (same as .ct-card-header in contra-theme.css). */
.mud-card-header-forms,
.mud-card-header-forms-green,
.mud-card-header-forms-double,
.mud-card-header-forms-red,
.mud-card-header-forms-light {
    background: var(--ct-header-gradient);
    color: var(--ct-white);
    /* One height for every header bar (contra-theme.css variables). Spacing utilities
       such as py-2 still win, so the larger OCR hub headers keep their size. */
    min-height: var(--ct-header-height);
    padding: var(--ct-header-pad-y) var(--ct-header-pad-x);
}

    .mud-card-header-forms .mud-typography,
    .mud-card-header-forms-green .mud-typography,
    .mud-card-header-forms-double .mud-typography,
    .mud-card-header-forms-red .mud-typography,
    .mud-card-header-forms-light .mud-typography {
        color: inherit !important;
        font-weight: 500;
    }

    /* Icons and text/icon buttons in a header bar follow the white text. */
    .mud-card-header-forms .mud-icon-root,
    .mud-card-header-forms .mud-button-text,
    .mud-card-header-forms .mud-icon-button,
    .mud-card-header-forms-red .mud-icon-root,
    .mud-card-header-forms-green .mud-icon-root,
    .mud-card-header-forms-double .mud-icon-root,
    .mud-card-header-forms-light .mud-icon-root {
        color: inherit !important;
    }

/* The original double-height, green and red bars. */
.mud-card-header-forms-double {
    min-height: 80px;
    background: var(--ct-header-solid);
}

.mud-card-header-forms-green {
    background: var(--ct-header-gradient-green);
}

.mud-card-header-forms-red {
    background: var(--ct-header-red);
}

.mud-card-header-forms-light-text {
    color: var(--ct-white) !important;
    font-weight: bold !important;
}

.mud-dialog .mud-dialog-title {
    background: var(--ct-header-gradient) !important;
    color: var(--ct-white) !important;
    font-weight: 700;
    /* Same height as every other header bar; title and close button centred vertically. */
    display: flex !important;
    align-items: center;
    height: var(--ct-header-height) !important;
    padding: 0 var(--ct-header-pad-x) !important;
    margin-bottom: 10px !important;
}

    .mud-dialog .mud-dialog-title > p,
    .mud-dialog .mud-dialog-title .mud-typography {
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .mud-dialog .mud-dialog-title .mud-button-close {
        top: 50% !important;
        right: 8px !important;
        transform: translateY(-50%);
        color: var(--ct-white);
    }

.validation-message {
    color: var(--mud-palette-error);
    margin: 0;
    font-size: .8rem;
    margin-top: 3px;
    text-align: start;
    font-weight: 400;
    line-height: 1.66;
    letter-spacing: .03333em;
}

.mud-snackbar-location-bottom-left {
    bottom: 50px !important;
}

.mud-snackbar-location-bottom-right {
    bottom: 50px !important;
}

/*-----------------------------------------------------------------------
                        Custom
  -----------------------------------------------------------------------
*/

/* Expansion panel headers: Navy bar like card headers (list-style .ct-panels stay light). */
.mud-expand-panel .mud-expand-panel-header {
    min-height: var(--ct-header-height);
    padding: var(--ct-header-pad-y) var(--ct-header-pad-x) !important;
    background: var(--ct-header-gradient);
    color: var(--ct-white);
}

    .mud-expand-panel .mud-expand-panel-header .mud-icon-root,
    .mud-expand-panel .mud-expand-panel-header .mud-typography {
        color: inherit;
    }

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: var(--ct-navy-tint);
    color: var(--ct-navy);
    border-right: 5px solid var(--ct-navy);
}




/*---------------------------LOADING MODAL-------------------------------------------------*/

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--ct-navy);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}


.disabledSelect {
    background-color: var(--ct-mist) !important;
}

/* pickup/delivery City: white when the user can pick, grey like the other read-only fields when locked to the route */
.city-select .mud-input-slot,
.city-select .mud-input {
    background-color: var(--ct-white) !important;
}

.city-select.city-select-locked .mud-input-slot,
.city-select.city-select-locked .mud-input {
    background-color: var(--ct-mist) !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/*---------------------------END LOADING MODAL-------------------------------------------------*/
