@font-face {
    font-family: DinotBold;
    src: url('/fonts/FontFont - DINOT-Bold.otf');
}

@font-face {
    font-family: DinotMedium;
    src: url('/fonts/FontFont - DINOT-Medium.otf');
}

@font-face {
    font-family: Dinot;
    src: url('/fonts/FontFont - DINOT.otf');
}

@font-face {
    font-family: Klavika;
    src: url('/fonts/klavika-bold.otf');
}

:root {
    /* Legacy AMR aliases — kept for existing .amr-* rules, but point at the
       canonical Command Center tokens (cc-chrome.css :root) so brand red/black
       have exactly one literal definition. */
    --amr-primary: var(--cc-black);
    --amr-secondary: var(--cc-red);
    --amr-font-header: DinotBold !important;
    --amr-font-body: Dinot !important;
    --amr-font-title: Klavika !important;
    --amr-font-medium: DinotMedium !important;
    --mud-typography-default-size: unset !important;
}

html,
body {
    font-family: var(--amr-font-body) !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
   
}


a, .btn-link {
    color: #006bb7;
}

.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;
}

.amr-text {
    color: #F3002B;
}

.amr-text-header {
    color: #000000;
    font-family: var(--amr-font-header);
    margin-top: -0.4rem;
}

.amr-title {
    font-family: var(--amr-font-title);
}

h1:focus {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--amr-font-title);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
}

h1 {
    font-size: 60px;
    line-height: 64px;
    text-transform: uppercase;
    color: #000000;
}

h2 {
    font-size: 48px;
    line-height: 52px;
    text-transform: uppercase;
    color: #F3002B;
}

h3 {
    font-size: 40px;
    line-height: 44px;
    text-transform: uppercase;
    color: #000000;
}

h4 {
    font-size: 30px;
    line-height: 38px;
    text-transform: uppercase;
    color: #000000;
}

h5 {
    font-size: 24px;
    line-height: 30px;
    color: #000000;
}

h6 {
    font-size: 20px;
    line-height: 26px;
    color: #000000;
}

p, li, td, th, label, input, textarea, select {
    font-family: var(--amr-font-body);
    font-size: 18px;
    line-height: 28px;
}

ul, ol {
    line-height: 34px;
    padding-left: 20px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}
.mower-online {
    background-color: #d4edda; 
    color: #155724; 
}
.page-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.search-box {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-primary:hover {
        background-color: #005fa3;
    }
button[data-bs-toggle="popover"] {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}
/* error*/
.card-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .card-header:hover {
        background-color: #f8f9fa;
    }

.collapse-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

    .collapse-container.expanded {
        max-height: 1500px; 
    }

.btn-outline-secondary {
    border-color: #ddd;
    font-size: 13px;
}
.speed-cell {
    width: 80px;
    display: inline-block;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.card {
    transition: all 0.2s ease;
}

    .card:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

.card-header:hover {
    background-color: #f8f9fa;
}

.error-body {
    display: none;
    transition: all 0.3s ease;
}

    .error-body.expanded {
        display: block;
    }
.comment-section {
    background-color: #f8f9fa;
}

.input-group-text.avatar-circle {
    background-color: #6c757d;
    color: #fff;
    font-weight: bold;
    border: none;
}
/* LOGS*/
.metric-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.15s ease;
}

    .metric-card:hover {
        transform: translateY(-2px);
    }

.table th {
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}


.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.pointer {
    cursor: pointer;
}

.map-filters-floating {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

    .map-filters-floating input,
    .map-filters-floating select {
        min-width: 120px;
        height: 30px;
    }

    .map-filters-floating button {
        height: 30px;
    }

.map-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.map-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px;
}

    .map-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

    .slider::before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

.map-toggle input:checked + .slider {
    background-color: #007bff;
}

    .map-toggle input:checked + .slider::before {
        transform: translateX(26px);
    }

.toggle-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-dialog.modal-xl {
    max-width: 98%;
    height: calc(100vh - 70px - 48px - 1rem);
    margin: calc(70px + 0.5rem) auto 0.5rem;
}

.modal-content {
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}
/* Settings Button */
.settings-btn {
    border: none;
    background-color: gray;
    color: #6c757d;
    transition: all 0.2s ease;
}

    .settings-btn:hover {
        color: #0d6efd;
    }

.mower-online {
    background-color: #e8f5e9;
}
 /*Body styling */
.map-modal .map-modal-body {
    padding: 0;
    height: calc(100vh - 70px - 48px - 75px - 1rem);
}

.map-container {
    width: 100%;
    height: 100%;
}
.fault-modal .fault-modal-body {
    all: unset; 
    padding: 1rem; 
    font-size: 1rem; 
    color: inherit; 
}

.offline-mode {
    background-color: #f8f9fa; 
    opacity: 0.6; /* semi-transparent */
    pointer-events: none; 
}

    .offline-mode .text-muted {
        color: #6c757d !important; 
    }
/*=== Status label===*/
.status-success {
    color: green;
    font-weight: bold;
}

.status-error {
    color: red;
    font-weight: bold;
}
/* toast container */
.app-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.app-toast {
    min-width: 440px; 
    max-width: 840px; 
    padding: 1rem 1.25rem; 
    border-radius: 0.9rem; 
    box-shadow: 0 16px 40px rgba(0,0,0,.16), 0 3px 10px rgba(0,0,0,.1);
    color: #fff; 
    font-size: 1.125rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
}

.app-toast--show {
    opacity: 1;
    transform: translateY(0);
}

.app-toast--closing {
    opacity: 0;
    transform: translateY(-10px);
}

.app-toast--success {
    background: #22c55e; 
}

.app-toast--error {
    background: #dc3545;
}

.app-toast--info {
    background: #0ea5e9;
}

.app-toast--warn {
    background: #f59e0b;
}

.app-toast__row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.app-toast__body {
    flex: 1;
}

.app-toast__title {
    font-weight: 700;
    margin: 0 0 .25rem 0;
}

.app-toast__content {
    margin: 0;
    opacity: .95;
}

.app-toast__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
    margin-left: .5rem;
}

    .app-toast__close:hover {
        opacity: 1;
    }

@keyframes app-toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.app-toast__close {
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    margin-left: .5rem;
    opacity: .8;
    cursor: pointer;
}

.app-toast__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

/* LOGO */
#logo {
    width: 250px;
}

/* AVATAR */
.user-avatar {
    width: 42px;
    height: 42px;
    background: #38bdf8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

    .user-avatar:hover {
        background: #0ea5e9;
        transform: scale(1.05);
    }

/* DROPDOWN MENU */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
    animation: fadeIn 0.15s ease-in-out;
}

.user-initials-circle {
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #2da8ff; 
}

    .user-initials-circle:hover {
        box-shadow: 0 0 10px rgba(0, 140, 255, 0.6);
        transform: scale(1.05);
    }

    /* Role-based colors */
    .user-initials-circle.SuperAdmin {
        background: #f3002B;
        color: #FFFFFF;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    }

    .user-initials-circle.Manager {
        background: #f59e0b;
    }

    .user-initials-circle.User {
        background: #22c55e;
    }

    .user-initials-circle.SuperAdmin:hover {
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    }

    .user-initials-circle.Manager:hover {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    }

    .user-initials-circle.User:hover {
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
    }

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: 180px;
    z-index: 2000;
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

    .profile-dropdown.show {
        display: block;
    }

    .profile-dropdown .dropdown-item {
        width: 100%;
        padding: 8px 12px;
        background: none;
        border: none;
        text-align: left;
        font-size: 1rem;
        transition: background 0.2s;
    }

        .profile-dropdown .dropdown-item:hover {
            background-color: #f3f3f3;
        }

.dropdown-item.active,
.dropdown-item:active {
    background-color: unset !important;
    color: unset !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-modal {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    background: #fff;
    color: #333;
    z-index: 1050;
    border-radius: 10px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1040;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    background: #f1f5f9;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0ea5e9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 8px auto;
}

.dropdown-name {
    font-weight: 600;
    font-size: 1rem;
}

.dropdown-role {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.2s;
}

    .dropdown-item:hover {
        background: #f1f5f9;
    }

    .dropdown-item.logout {
        color: #ef4444;
    }

/*=== Info Modal===*/
.icon-color {
    color: #B3B3B3
}

.info-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    margin-right: 20px
}

.info-title {
    font-family: var(--amr-font-title);
}

.info-body {
    font-family: var(--amr-font-medium);
}

a {
    text-decoration: none;
    color: black;
}

    a:active {
        color: var(--amr-secondary);
    }

    a:hover {
        color: var(--amr-secondary);
    }

h1, h2, h4, h5 {
    font-family: var(--amr-font-header);
}

h3 {
    font-family: var(--amr-font-title);
}
/*=== Navbar ===*/
img.navbar-brand {
    width: 150px;
}

#logo {
    width: 250px;
}

.navbar-nav {
    margin-left: auto;
}

    .navbar-nav .nav-link {
        color: black;
        font-weight: bold;
    }

        .navbar-nav .nav-link:hover {
            color: var(--amr-secondary);
            font-weight: bold;
        }

.nav-tabs {
    border: none;
    justify-content: right;
    margin-right: 70px;
}

    .nav-tabs .nav-link {
        border: none;
    }

.nav-item .nav-link {
    font-size: 20px;
    text-align: right;
    width: 130px;
    color: black !important;
    font-family: var(--amr-font-medium);
}

.active-link {
    color: black !important;
    border-bottom: 3px solid #E0411F !important;
    background-color: transparent !important;
}

.nav-link.active {
    color: black !important;
    border-bottom: 3px solid #F3002B !important;
    background-color: #EBEBEB !important;
}

.amr-text-primary {
    color: var(--amr-primary);
}

.amr-text-secondary {
    color: var(--amr-secondary);
}
/*=== Background color ===*/
.amr-bg-primary {
    background: var(--amr-primary);
}

.amr-bg-secondary {
    background: var(--amr-secondary);
}
/*=== Button color ===*/
.btn {
    font-weight: bold;
    color: white;
    font-family: var(--amr-font-header);
    border-radius: 7px;
    height: 37px;
}

.amr-btn-primary {
    color: var(--amr-secondary);
    background: white;
    width: 80px;
}

a.btn.amr-btn-primary:focus {
    color: white !important;
}

.amr-btn-secondary {
    color: white;
    background: var(--amr-secondary);
}

.amr-btn-white {
    color: black;
    background: white;
    border: solid 3px white;
}

.welcome {
    padding-left: 130px;
}

.companyTxt {
    padding-left: 30px;
    text-align: center;
}

.page-size-chooser {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

    .page-size-chooser select {
        margin: 0 1rem;
        padding: 0.25rem 0.5rem;
    }
/*=== Search Box ===*/
.search-adaptive .input-group-text {
    background-color: #fff;
    color: #000; /* black icon */
    border-color: #ccc;
}

.search-adaptive .form-control {
    background-color: #fff;
    color: #000; /* black text */
    border: 1px solid #ccc;
}

    .search-adaptive .form-control::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }
.session-row-selected {
    background-color: rgba(0, 120, 255, 0.15) !important;
}
/* === Dropdowns === */
.simple-select {
    appearance: none;
    width: 12rem;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem; /* rounded */
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 16px 16px;
    color: #111827; /* gray-900 */
    font-size: 0.95rem;
    line-height: 1.25rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .simple-select:hover {
        border-color: #9ca3af; /* gray-400 */
    }

    .simple-select:focus {
        outline: none;
        border-color: #60a5fa; /* blue-400 */
        box-shadow: 0 0 0 4px rgba(96,165,250,.25);
    }

    .simple-select:disabled {
        background: #f3f4f6;
        color: #6b7280;
        border-color: #e5e7eb;
        cursor: not-allowed;
    }

.simple-select--sm {
    padding: 0.4rem 2rem 0.4rem 0.6rem;
    font-size: .9rem;
}

.simple-select--lg {
    padding: 0.7rem 2.4rem 0.7rem 0.85rem;
    font-size: 1.05rem;
}

.w-full {
    width: 100%;
}

.modal-dark-auto .modal-content {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.modal-dark-auto .modal-header,
.modal-dark-auto .modal-body,
.modal-dark-auto .modal-footer {
    background: transparent;
    color: inherit;
}
    .modal-dark-auto .modal-header.border-bottom.border-danger {
        border-color: var(--amr-secondary, #F3002B) !important;
    }

.modal-dark-auto .form-control {
    background-color: var(--input-bg, #fff);
    color: var(--input-text, #111827);
    border-color: var(--input-border, #e5e7eb);
}

    .modal-dark-auto .form-control::placeholder {
        color: var(--input-placeholder, #9ca3af);
    }

.modal-dark-auto .btn-close {
    filter: none;
}

.modal-backdrop.show {
    background-color: #000;
    opacity: .45; 
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    .simple-select {
        background: #0b0f14;
        color: #e5e7eb;
        border-color: #22303c;
        background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.6rem center;
        background-size: 16px 16px;
    }

        .simple-select:hover {
            border-color: #2f3e4c;
        }

        .simple-select:disabled {
            background: #0f141a;
            border-color: #1c2833;
            color: #9ca3af;
        }

    .input-group-text {
        background-color: #333;
        color: #eee;
        border-color: #555;
    }

    .form-control {
        background-color: #222;
        color: #eee;
        border-color: #555;
    }

        .form-control::placeholder {
            color: #aaa;
        }

    .search-adaptive .input-group-text {
        background-color: #000;
        color: #fff; 
        border-color: #333;
    }

    .search-adaptive .form-control {
        background-color: #000;
        color: #fff; 
        border: 1px solid #333;
    }

        .search-adaptive .form-control::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .search-adaptive .form-control:focus {
            background-color: #000;
            border-color: #666;
            box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
        }

    .modal-dark-auto .modal-content {
        background-color: #121821; 
        color: #e5e7eb; 
        border-color: #22303c;
        box-shadow: 0 24px 70px rgba(0,0,0,.6);
    }

    .modal-dark-auto .modal-header.border-bottom.border-danger {
        border-color: var(--amr-secondary, #F3002B) !important; 
        opacity: .95;
    }

    .modal-dark-auto .form-control {
        background-color: var(--input-bg, #0f141a);
        color: var(--input-text, #e5e7eb);
        border-color: var(--input-border, #22303c);
    }

        .modal-dark-auto .form-control::placeholder {
            color: var(--input-placeholder, #8a94a6);
        }

    .modal-dark-auto .btn-close {
        filter: invert(1) grayscale(1);
    }

    .modal-backdrop.show {
        background-color: #000;
        opacity: .6;
    }
}
/* === QuickGrid Container === */
.quickgrid-container {
    width: 1200px; 
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

/* === Responsive Widths === */
@media (min-width: 1600px) {
    .quickgrid-container {
        width: 1600px;
    }
    /* Large monitors */
}

@media (max-width: 1599px) and (min-width: 1280px) {
    .quickgrid-container {
        width: 1200px;
    }
    /* Standard laptops */
}

@media (max-width: 1279px) and (min-width: 1024px) {
    .quickgrid-container {
        width: 1000px;
    }
    /* Small laptops */
}

@media (max-width: 1023px) and (min-width: 768px) {
    .quickgrid-container {
        width: 800px;
    }
    /* Tablets */
}

@media (max-width: 767px) {
    .quickgrid-container {
        width: 600px; /* Mobile */
        margin-bottom: 0.5rem;
    }
}

.quickgrid-container table {
    width: auto;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 1rem;
    table-layout: auto;
}

/* Font scaling by breakpoint */
@media (min-width: 1600px) {
    .quickgrid-container table {
        font-size: 1.05rem;
        min-width: 1000px;
    }
}

@media (max-width: 1599px) and (min-width: 1024px) {
    .quickgrid-container table {
        font-size: 1rem;
        min-width: 900px;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .quickgrid-container table {
        font-size: 0.9rem;
        min-width: 700px;
    }
}

@media (max-width: 767px) {
    .quickgrid-container table {
        font-size: 0.8rem;
        min-width: 600px;
    }
}

/* === Scrollbar Styling === */
.quickgrid-container::-webkit-scrollbar {
    height: 10px;
}

.quickgrid-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

    .quickgrid-container::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

/* === QuickGrid Theme: RCM (Light Mode Default) === */
.quickgrid[theme="RCM"] {
    min-width: max-content;
    table-layout: auto;
}

    .quickgrid[theme="RCM"] thead {
        background-color: #d32f2f;
        color: #fff !important;
    }

    .quickgrid[theme="RCM"] th {
        text-align: left;
        padding: 10px;
        border: 1px solid #ddd;
        color: #fff;
    }

    .quickgrid[theme="RCM"] tbody tr:nth-child(even) {
        background-color: #f4f4f4;
    }

    .quickgrid[theme="RCM"] tbody tr:nth-child(odd) {
        background-color: #ffffff;
    }

    .quickgrid[theme="RCM"] tbody tr:hover {
        background-color: #ffebee;
        cursor: pointer;
    }

    .quickgrid[theme="RCM"] td {
        padding: 10px;
        border: 1px solid #ddd;
        text-align: left;
    }

    .quickgrid[theme="RCM"] th,
    .quickgrid[theme="RCM"] td {
        white-space: nowrap;
    }

/* === Dark Mode Support === */
@media (prefers-color-scheme: dark) {
    .quickgrid[theme="RCM"] thead {
        background-color: #9a0007;
        color: #fff;
    }

    .quickgrid[theme="RCM"] tbody tr:nth-child(even) {
        background-color: #2b2b2b;
    }

    .quickgrid[theme="RCM"] tbody tr:nth-child(odd) {
        background-color: #1e1e1e;
    }

    .quickgrid[theme="RCM"] tbody tr:hover {
        background-color: #3a0e0e;
    }

    .quickgrid[theme="RCM"] th,
    .quickgrid[theme="RCM"] td {
        border: 1px solid #444;
        color: #f5f5f5;
    }

    .quickgrid-container::-webkit-scrollbar-thumb {
        background: #555;
    }

        .quickgrid-container::-webkit-scrollbar-thumb:hover {
            background: #777;
        }
}

.wrap-text {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 400px;
    display: block;
}

.col-title-text {
    font-weight: 600;
    color: white;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: #29292e;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e5dfe4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 5px;
    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.form-check {
    position: relative;
    display: block;
    padding-left: 8.70rem;
}
/*=== Footer OuterLayout ===*/
.custom-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    min-height: 70px;
    font-family: var(--amr-font-header);
}

.custom-nav {
    background-color: #EBEBEB;
    /*height: 115px;*/
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3.5rem;
}

.custom-footer {
    background-color: #EBEBEB;
    height: 70px;
}

.logo-text {
    font-family: var(--amr-font-header);
    font-size: 13px;
    white-space: nowrap;
}
/*=== MainLayout ===*/
.top-row {
    position: center;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: red;
}

.title {
    position: center;
    justify-content: center;
    align-items: center;
}

.required-asterisk {
    color: red;
}

.custom-nav-main-layout {
    background-color: #EBEBEB;
    height: 100px;
}

.logo-width {
    width: 250px;
}

.logo-width-outer {
    width: 300px;
}

.help_btn_main {
    display: flex;
    justify-content: end;
    align-items: center;
}
/*=== Login ===*/
.checkbox {
    border-radius: 0px;
    border: solid 2px #d9d9d9;
    width: 20px;
    height: 20px;
}

.checkbox-div {
    padding-left: 210px;
}

.form-check-input[type=checkbox] {
    border-radius: 0px !important;
}

table {
    margin: auto;
}

    table th, table td {
        padding: 10px 0px 10px 10px;
        border-color: #ccc;
    }

.custom-font-size {
    font-size: 13px;
    font-family: var(--amr-font-medium);
}

/* Dealers → Customer Companies: count pill that opens the customer popover. */
.cc-customer-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: var(--cc-black);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

.cc-customer-count-chip:hover {
    background: #f5f5f5;
    border-color: #c9c9c9;
}

.cc-customer-count-chip .mud-icon-root {
    font-size: 1.05rem;
}

.cc-customer-count-caret {
    color: var(--cc-medium-gray);
}

.cc-customer-popover-footer {
    padding: 4px 10px 8px;
}

.amr-btn-login {
    background-color: #F3002B;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 50%;
}

/* Access Denied "Go Back" button. */
.cc-access-btn {
    display: inline-flex;
    align-items: center;
    background-color: #F3002B;
    color: #fff;
    font-weight: 600;
    padding: 10px 26px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.cc-access-btn:hover,
.cc-access-btn:focus,
.cc-access-btn:active,
.cc-access-btn:visited {
    color: #fff;
    text-decoration: none;
}

.cc-access-btn:hover,
.cc-access-btn:focus {
    background-color: #CC0024;
    box-shadow: 0 2px 8px rgba(243, 0, 43, 0.35);
}

.custom-input {
    height: 60px;
    line-height: 60px;
    background-color: #EBEBEB;
    padding: 0 20px;
    display: inline-block;
    border: none;
    background: #f1f1f1;
    width: 50%;
}

    .custom-input:focus {
        background-color: #ddd;
        outline: none;
        border: 1px solid red;
        box-shadow: 0 1px 4px 0 red;
        border-radius: 3px;
    }


.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
}

    .custom-checkbox input {
        opacity: 0; 
        position: absolute;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .custom-checkbox .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 22px;
        width: 22px;
        background-color: #fff;
        border: 2px solid #ccc;
        border-radius: 4px;
        transition: background-color 0.3s, border-color 0.3s;
    }

    .custom-checkbox input:checked + .checkmark {
        background-color: #4CAF50; 
        border-color: #4CAF50;
    }

    .custom-checkbox .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .custom-checkbox input:checked + .checkmark:after {
        display: block;
        left: 8px;
        top: 4px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
    }


.imgcontainer {
    text-align: center;
    margin: 24px 0px 12px 0;
}

img.avatar {
    width: 55%;
}

.main-div {
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 900px;
}

/* LOGIN PAGE */

.login-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 60px rgba(0,0,0,0.25);
}

/* Field layout */
.login-field {
    width: 100%;
}

.login-label {
    display: block;
    font-size: 0.9rem;
    font-family: var(--amr-font-medium);
    margin-bottom: 0.35rem;
}

.login-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%; 
}

.login-input {
    width: 100%;
    padding-left: 38px; /* space for lock icon */
    padding-right: 38px; /* space for eye icon */
    height: 48px;
    border-radius: 6px;
}

/* Left icon */
.login-input-icon {
    position: absolute;
    left: 12px; /* closer to input */
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.login-input-toggle {
    position: absolute;
    right: 12px; 
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #9ca3af;
    cursor: pointer;
}

    .login-input-toggle:hover {
        color: #4b5563;
    }

/* Login button + spinner */
.login-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* Hidden by default */
.btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: btn-spin 0.7s linear infinite;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .15s ease, transform .15s ease;
}

.login-btn.is-loading .btn-spinner {
    opacity: 1;
    transform: scale(1);
}

.login-btn.is-loading .btn-text {
    opacity: 0.9;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}


.login-shell {
    min-height: calc(100vh - 100px - 70px); 
    display: flex;
    flex-direction: column;
}

/* Center the login content */
.login-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    overflow: hidden;
}

.login-background {
    background-image: url('Images/Login_Background_Pattern.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-nav .row,
.custom-footer .row {
    margin-left: 0;
    margin-right: 0;
}

/* ============================================
   MUDBLAZOR COMPONENT OVERRIDES - RC MOWERS BRAND
   ============================================ */

/* AppBar */
.mud-appbar {
    background-color: #EBEBEB !important;
    color: #000 !important;
}

.mud-appbar .mud-icon-button {
    color: #000 !important;
}

/* Drawer/Navigation */
.mud-drawer {
    background-color: #fff;
    border-right: 1px solid #EBEBEB;
}

.mud-nav-link {
    color: #000;
    transition: all 0.2s ease;
}

.mud-nav-link:hover {
    background-color: #EBEBEB;
}

.mud-navmenu {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mud-navmenu .mud-tooltip-root {
    display: block !important;
    width: 100% !important;
}

.mud-navmenu .mud-nav-link {
    display: flex !important;
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

.mud-nav-link.mud-nav-link-active,
.mud-navlink-active,
.rcm-nav-active {
    background-color: rgba(243, 0, 43, 0.06) !important;
    color: #F3002B !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border-left: 3px solid #F3002B !important;
    font-weight: 700 !important;
}

.mud-nav-link.mud-nav-link-active .mud-nav-link-text,
.mud-nav-link.mud-nav-link-active .mud-icon,
.rcm-nav-active .mud-nav-link-text,
.rcm-nav-active .mud-icon,
.rcm-nav-active i {
    color: #F3002B !important;
}

/* Nav link default state */
.mud-navmenu .mud-nav-link {
    border-left: 3px solid transparent !important;
    color: #4D4D4D !important;
    font-family: var(--amr-font-body) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}

.mud-navmenu .mud-nav-link:hover {
    background-color: #F5F5F5 !important;
    color: #000 !important;
    border-left-color: #B3B3B3 !important;
}

/* Nav link icons */
.mud-nav-link .mud-icon,
.mud-nav-link i {
    color: #4D4D4D;
    opacity: 0.7;
    font-size: 18px;
    transition: opacity 0.15s;
}

.mud-nav-link:hover .mud-icon,
.mud-nav-link:hover i {
    opacity: 1;
}

body:has([data-page="monitor"]) .main-footer {
    display: none;
}

body:has([data-page="monitor"]) .mud-main-content {
    overflow: hidden;
    padding-bottom: 0 !important;
}

body:has([data-page="monitor"]) .mud-main-content > .mud-container {
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.main-div.login {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .main-div.login .card {
        border-radius: 18px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
    }

    .main-div.login .card-body {
        padding: 2.75rem 3.5rem;
    }
/*=== Branch ===*/
.note-text {
    font-weight: normal !important;
    font-size: 14px
}
/*=== Plan ===*/
.grid-plan-page {
    height: 45rem;
    overflow-y: auto;
}
/*=== Help ===*/
.square-card {
    width: 400px;
    height: 200px;
}

.card-body-help {
    display: flex;
    align-items: center;
    justify-content: center;
}
/*=== Machines-SA ===*/
.password-text {
    font-family: Consolas !important;
}
@media (min-width: 1024px) {
    .login-main {
        padding: 0 !important;
    }
}
/* Responsive: phones to tablets */
@media only screen and (max-width: 1466px) {
   
    .quickgrid[theme=RCM] {
        font-size: 12px;
        overflow-x: auto;
    }

        .quickgrid[theme=RCM] th,
        .quickgrid[theme=RCM] td {
            padding: 5px; 
        }

        .quickgrid[theme=RCM] .col-title.hide-on-mobile,
        .quickgrid[theme=RCM] .col-options-button.hide-on-mobile {
            display: none; 
        }
}

@media only screen and (max-width: 992px) {
   
    .quickgrid[theme=RCM] {
        font-size: 12px;
        overflow-x: auto;
    }

        .quickgrid[theme=RCM] th,
        .quickgrid[theme=RCM] td {
            padding: 5px; /* Adjust padding for mobile */
        }

        .quickgrid[theme=RCM] .col-title.hide-on-mobile,
        .quickgrid[theme=RCM] .col-options-button.hide-on-mobile {
            display: none; /* Hide specific columns on mobile */
        }

    .welcome {
        padding-left: 30px;
    }

    .companyTxt {
        margin-top: 15px;
        text-align: center;
        padding-left: 0px;
    }

    .space {
        margin-left: 0px;
    }

    .custom-flex {
        display: block;
    }

    .page {
        overflow-x: auto;
    }

    .nav-item .nav-link {
        font-size: 15px;
    }
}

@media only screen and (max-width: 768px) {
   
    .quickgrid[theme=RCM] {
        font-size: 14px; /* Adjust font size for mobile */
    }

        .quickgrid[theme=RCM] th,
        .quickgrid[theme=RCM] td {
            padding: 8px; /* Adjust padding for mobile */
        }

        .quickgrid[theme=RCM] .col-title.hide-on-mobile,
        .quickgrid[theme=RCM] .col-options-button.hide-on-mobile {
            display: none; /* Hide specific columns on mobile */
        }

    .custom-flex {
        display: block;
    }
}

@media only screen and (max-width: 800px) {
    .quickgrid[theme=RCM] {
        font-size: 12px;
        overflow-x: auto;
    }

        .quickgrid[theme=RCM] th,
        .quickgrid[theme=RCM] td {
            padding: 5px; 
        }

        .quickgrid[theme=RCM] .col-title.hide-on-mobile,
        .quickgrid[theme=RCM] .col-options-button.hide-on-mobile {
            display: none; 
        }

    .custom-flex {
        display: block;
    }
}

@media only screen and (max-width: 576px) {
    .custom-flex {
        display: block;
    }

    .terms-text {
        font-size: 10.5px;
    }

    .help_btn {
        padding-left: 160px;
    }

    .logo-width {
        width: 180px;
        margin-top: 45px;
    }

    .logo-width-outer {
        width: 180px;
        margin-top: 25px;
    }

    .help_btn_main {
        display: flex;
        justify-content: start;
        align-items: stretch;
        flex-direction: column;
    }

    .quickgrid[theme=RCM] {
        font-size: 12px;
        overflow-x: auto;
    }

        .quickgrid[theme=RCM] th,
        .quickgrid[theme=RCM] td {
            padding: 5px;
        }

        .quickgrid[theme=RCM] .col-title.hide-on-mobile,
        .quickgrid[theme=RCM] .col-options-button.hide-on-mobile {
            display: none; 
        }
}