* {
    font-family: "Lato", sans-serif;
}
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUg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ZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress-bar {
    position: relative;
    width: 75%;
    height: 5px;
    margin: 40px auto;
    background-color: #e0e0e0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background-color: #1b6ec2;
    transition: width 0.2s ease-in-out;
}

.loading-progress-text {
    text-align: center;
    font-weight: bold;
    margin-top: 0.5rem;
}

    .loading-progress-text::after {
        content: var(--blazor-load-percentage-text, "Loading...");
    }


code {
    color: #c02d76;
}

.bottom-appbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--mud-palette-appbar-background);
    z-index: 1100;
    height: 85px
}

.nav-link-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--mud-palette-primary);
    font-size: 0.75rem;
}

    .nav-link-vertical .mud-icon-button,
    .nav-link-vertical .mud-icon,
    .nav-link-vertical .nav-text,
    .nav-link-vertical .mud-svg-icon {
        color: var(--mud-palette-primary);
        fill: var(--mud-palette-primary);
        height: 24px;
    }

        .nav-link-vertical .mud-icon-button:hover {
            box-shadow: none !important;
        }



.svg-primary {
    color: var(--mud-palette-primary);
}

.svg-secondary {
    color: var(--mud-palette-secondary);
}

.custom-layout .mud-main-content {
    padding-top: 16px !important;
}

.styled-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-family: "Roboto", "Segoe UI", sans-serif;
    font-size: 0.875rem;
}

    .styled-table thead tr {
        background-color: #f5f5f5;
    }

    .styled-table th {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12); /* MudBlazor-like border */
        padding: 0.75rem 1rem;
        text-align: left;
    }
    .styled-table td {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12); /* MudBlazor-like border */
        padding: 0.75rem 1rem;
        text-align: left;
    }

    .styled-table tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.04); /* hover effect like MudTable */
        transition: background-color 0.2s;
    }
th, td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mud-table th {
    font-size: 1.05rem !important;
    color: #d11c1c !important;
}

.aws-red-head .mud-table-head th,
.aws-red-head .mud-table-head th .mud-table-sort-label,
.aws-red-head .mud-table-head th .mud-table-sort-label .mud-button-label {
    font-size: 1.05rem !important;
    color: #d11c1c !important;
}
/* brand red for stacked headers on small devices */
.mud-table td[data-label]::before {
    color: #cf0c0c; /* brand red */
    font-weight:500;
}

.nav-link-vertical a {
    padding: 0 !important;
}

#toolbar-large .mud-nav-item a {
    width: 150px;
    max-width: 10vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
    #toolbar-large .mud-nav-item a .mud-nav-link-text{
        margin: 0 !important;
    }

#toolbar-medium .mud-nav-item a {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18vw;
    color: var(--mud-palette-primary);
    fill: var(--mud-palette-primary);
}

    #toolbar-medium .mud-nav-item a .mud-nav-link-text {
        margin: 0 !important;
        text-align:center;
    }

.row-alert {
    background-color: #fdecea !important;
}

.row-afterhours {
    background-color: #fff8e1 !important;
}

.row-notrailer {
    background-color: #f5f5f5 !important;
}

.row-emptytrailer {
    background-color: #fce4ec !important;
}

.row-trailerstorage {
    background-color: #fce4ec !important;
}

.row-ready {
    background-color: #e8f5e9 !important;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
}

.timestamp-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.cover-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 400px;*/
    width: 100%;
    overflow: hidden;
}

    .cover-img-container img {
        object-fit: cover !important;
    }

/*.responsive-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    margin: 10px
}*/

.o-10 {
    opacity: .1;
}

.o-20 {
    opacity: .2;
}

.o-30 {
    opacity: .3;
}

.o-40 {
    opacity: .4;
}

.o-50 {
    opacity: .5;
}

.o-60 {
    opacity: .6;
}

.o-70 {
    opacity: .7;
}

.o-80 {
    opacity: .8;
}

.o-90 {
    opacity: .9;
}


.LightMode .mud-table-row-group-indented-0 {
    background: rgba(253, 168, 242, .20);
    transition: .2s ease;
    -webkit-transition: .2s ease;
}

    .LightMode .mud-table-row-group-indented-0.mud-table-row:hover,
    .LightMode .mud-table-row-group-indented-0.mud-table-row:focus {
        background: rgba(253, 168, 242, .3) !important;
    }

.DarkMode .mud-table-row-group-indented-0 {
    background: rgba(93, 71, 90, .20);
    transition: .2s ease;
    -webkit-transition: .2s ease;
}

    .DarkMode .mud-table-row-group-indented-0.mud-table-row:hover,
    .DarkMode .mud-table-row-group-indented-0.mud-table-row:focus {
        background: rgba(93, 71, 90, .3) !important;
    }


.image-container {
    position: relative; /* Needed for absolute positioning of background */
    overflow: hidden; /* Crop blurry overflow */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the contained image horizontally */
}

    .image-container .background {
        /*filter: blur(11px);*/ /* Blur effect */ /*get rid of ... customer dislikes*/
        z-index: 0; /* Send it behind */
        position: absolute; /* Overlay background behind main image */
        width: 100%;
        height: 100%;
        object-fit: cover; /* Fill background properly */
    }

    .image-container .front-image {
        width: 100%;
        /*z-index:1;*/ /*get rid of ... customer dislikes*/
        object-fit: contain; /* Scale proportionally inside container */
    }


    .image-container .expand-btn {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
        padding: 5px;
        background-color: rgba(0, 0, 0, 0.6);
        color: #fff;
        border-radius: 4px;
    }

/* Fullscreen dialog image */
.fullscreen-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    height: 100%;
    width: 100%;
}

    .fullscreen-image-container .zoomable-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.rl-select {
    margin-right: 8px;
}

@media (max-width: 600px) {
    .rl-select .mud-input-root {
        padding: 6px 8px;
        border-radius: 8px;
    }
}

.env-banner {
    position: sticky;
    top: 0;
    padding: 6px 12px;
    z-index: 1;
    text-align: center;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    background: #b91c1c;
    border-bottom: 1px solid rgba(0,0,0,.1)
}

.cta-note {
    max-width: 40vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: center;
    font-weight: 600;
    color: red;
    opacity: .7;
}

.cta-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .cta-scroll::-webkit-scrollbar {
        display: none;
    }

.cta-note-mobile {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .9;
    justify-content: space-evenly;
    font-weight: 600;
    color: red;
    opacity: .7;
}


/* MOBILE dense list */
.mobile-list .compact-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    column-gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
}

.mobile-list img.thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.mobile-list .name {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.1;
}

.mobile-list .boat {
    font-size: .85rem;
    margin-top: 2px;
}

.mobile-list .loc {
    font-size: .75rem;
    opacity: .75;
}

.mobile-list .pill {
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--mud-palette-error);
    color: var(--mud-palette-error-contrastText);
}

.mobile-list .right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.mud-tabs-toolbar .mud-tab-scroll-button {
    display: none !important;
}