html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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;
    max-width: 100%;
    overflow-x: hidden;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMj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{
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*  Calendar Styles */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: 'Segoe UI', sans-serif;
}

    .calendar-table th {
        background-color: #f0f0f0;
        text-align: center;
        padding: 8px;
        font-weight: 600;
        border: 1px solid #ddd;
    }

.calendar-cell {
    height: 100px;
    vertical-align: top;
    padding: 6px;
    border: 1px solid #eee;
    position: relative;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

    .calendar-cell:hover {
        background-color: #f9f9f9;
        cursor: pointer;
    }

.date-number {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

.today-highlight {
    background-color: #ffe58f;
    border-radius: 50%;
    padding: 4px 8px;
    display: inline-block;
}

.wo-count a {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    background-color: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

    .wo-count a:hover {
        background-color: #0056b3;
    }

.selected-day {
    background-color: #ffeeba; /* soft highlight */
    border: 2px solid #f0ad4e; /* orange border */
    font-weight: bold;
}

/* Fix dropdown clipping inside cards */
select.form-control {
    position: relative;
    z-index: 1000;
}
/* added on 01/22/26*/
.small-table td,
.small-table th {
    font-size: 0.70rem;
    padding: 0.20rem 0.35rem;
}

.small-table .form-control,
.small-table input,
.small-table select {
    font-size: 0.70rem;
    padding: 0.15rem 0.25rem;
    height: auto;
}

.small-table .form-check-input {
    transform: scale(0.8);
    margin: 0;
}

.small-buttons .btn {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    line-height: 1;
}

/* 01/23/26*/
.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    -moz-appearance: textfield;
}

.compact-input {
    width: 120px;
    max-width: 120px;
    padding: 2px 4px;
    font-size: 0.85rem;
}

.compact-select {
    width: 130px;
    max-width: 130px;
    padding: 2px 4px;
    font-size: 0.85rem;
}

.compact-date {
    width: 140px;
    max-width: 140px;
    padding: 2px 4px;
    font-size: 0.85rem;
}

/* Responsive app foundation */
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-actions .btn {
    min-width: 10rem;
}

.responsive-panel {
    width: 100%;
}

.content .card,
.content .border,
.content .alert {
    max-width: 100%;
}

.content .form-control,
.content .form-select,
.content .btn {
    min-height: 2.45rem;
}

.content textarea.form-control {
    min-height: 7rem;
}

@media (max-width: 991.98px) {
    .content {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .content .row {
        row-gap: 0.85rem;
    }

    .content [class^="col-"],
    .content [class*=" col-"] {
        min-width: 0;
    }

    .content .table,
    .content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .content .table td,
    .content .table th {
        vertical-align: middle;
    }

    .page-actions {
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4,
    h5 {
        font-size: 1.1rem;
    }

    .content {
        padding-top: 0.75rem;
    }

    .content .card-body {
        padding: 0.85rem;
    }

    .content .btn {
        width: 100%;
        justify-content: center;
    }

    .content table .btn {
        width: auto;
        min-width: 5rem;
    }

    .content .btn-sm {
        min-height: 2.25rem;
    }

    .content .d-flex {
        flex-wrap: wrap;
    }

    .page-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* Phone layout foundation */
@media (max-width: 575.98px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content {
        width: 100%;
        max-width: 100%;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        overflow-x: hidden;
    }

        .content > .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

            .content > .row > [class^="col-"],
            .content > .row > [class*=" col-"] {
                padding-left: 0 !important;
                padding-right: 0 !important;
                max-width: 100%;
            }

        .content .border,
        .content .card,
        .content .bg-info-subtle,
        .content .bg-light {
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .content .float-end {
            float: none !important;
            display: block;
            width: 100%;
        margin-top: 0.5rem;
    }
}

/* Customer list mobile */
.customer-search-input {
    max-width: 350px;
}

.customer-add-button {
    min-width: 250px;
}

.customer-results {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.customer-results-table {
    min-width: 850px;
    margin-top: 2rem;
}

/* Customer info workspace */
.customer-info-title {
    margin-bottom: 1rem;
    color: #101828;
}

.customer-info-search-panel {
    margin-bottom: 1rem;
    border: 1px solid #d7e2ee;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.customer-info-toolbar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customer-info-actions {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.customer-info-actions .btn {
    min-width: 9.5rem;
}

.customer-balance-card {
    display: grid;
    min-width: 230px;
    align-content: center;
    border: 1px solid #12bff0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: #fff;
}

.customer-balance-card span {
    color: #344054;
    font-weight: 700;
}

.customer-balance-card strong {
    color: #101828;
    font-size: 1.2rem;
    font-weight: 700;
}

.customer-info-body {
    padding: 0;
}

.customer-info-grid {
    align-items: stretch;
}

.customer-info-panel {
    height: 100%;
    border: 1px solid #12bff0;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    background: #d7f6ff;
    color: #101828;
    overflow: hidden;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.customer-info-card {
    display: flex;
    flex-direction: column;
}

.customer-related-card {
    background: #fff;
    border-color: #d7e2ee;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.customer-info-panel strong {
    color: #101828;
    font-weight: 800;
}

.customer-info-card-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    color: #1d2939;
    font-size: 1.05rem;
    font-weight: 800;
}

.customer-info-card-title i {
    color: #1f73c9;
    font-size: 1.35rem;
}

.customer-info-field {
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.2fr);
    gap: 0.75rem;
    padding: 0.54rem 0;
    border-bottom: 1px solid rgba(16, 24, 40, 0.12);
}

.customer-info-field:last-child {
    border-bottom: 0;
}

.customer-info-field span {
    color: #1d2939;
    font-weight: 800;
}

.customer-info-field strong {
    color: #253044;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.customer-info-section-title {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(16, 24, 40, 0.12);
    color: #1d2939;
    font-weight: 800;
}

.customer-info-phone-list,
.customer-info-bill-to {
    display: grid;
    gap: 0.2rem;
    padding: 0.45rem 0 0.2rem;
    color: #253044;
}

.customer-info-stack {
    display: grid;
    gap: 1rem;
    height: 100%;
}

.customer-status-card {
    height: auto;
}

.customer-status-balance {
    color: #1f73c9 !important;
    font-size: 1.25rem;
    font-weight: 800 !important;
}

.customer-info-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #1d2939;
    font-weight: 800;
}

.customer-info-panel .table {
    margin-bottom: 0;
    background: #fff;
}

.customer-info-related-table {
    border: 1px solid #d7e2ee;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.86rem;
    background: #fff;
}

.customer-info-related-table thead th {
    color: #101828;
    background: #eef2f6;
    font-weight: 800;
    white-space: nowrap;
}

.customer-info-related-table tbody td {
    border-color: #e4eaf1;
}

.customer-info-boiler-table {
    font-size: 0.72rem;
}

.customer-info-boiler-table thead td,
.customer-info-boiler-table thead th,
.customer-info-boiler-table tbody td {
    padding: 0.28rem 0.22rem;
    vertical-align: middle;
    white-space: nowrap;
}

.customer-info-boiler-table .form-control,
.customer-info-boiler-table .form-select {
    min-width: 72px;
    font-size: 0.68rem;
    padding: 0.14rem 0.24rem;
}

.customer-info-boiler-table .form-check-input {
    width: 0.86rem;
    height: 0.86rem;
}

.customer-info-boiler-table .btn-sm {
    font-size: 0.68rem;
    padding: 0.12rem 0.32rem;
}

.customer-info-related-table a {
    color: #146fc6;
}

.customer-info-related-table a:hover {
    color: #0b4f91;
    text-decoration: underline !important;
}

.customer-info-compact-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.82rem;
}

.customer-info-page-link {
    border: 0;
    padding: 0;
    color: #146fc6;
    background: transparent;
    font-weight: 700;
    line-height: 1.2;
}

.customer-info-page-link:hover:not(:disabled) {
    color: #0b4f91;
    text-decoration: underline;
}

.customer-info-page-link:disabled {
    color: #8a98a8;
    cursor: default;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .customer-info-toolbar {
        flex-direction: column;
    }

    .customer-balance-card {
        min-width: 0;
    }

    .customer-info-field {
        grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 575.98px) {
    .customer-search-actions {
        flex-direction: column;
    }

    .customer-search-input,
    .customer-search-button,
    .customer-add-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .customer-info-field {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .customer-results {
        margin-top: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 6px;
    }

    .customer-results-table {
        margin-top: 0;
    }

    .customer-scroll-hint {
        display: block;
        font-size: 0.8rem;
        color: #6c757d;
        margin: 0.5rem 0 0.25rem;
        text-align: center;
    }
}

.maproute-map {
    width: 100%;
    height: 620px;
    min-height: 620px;
    overflow: hidden;
    position: relative;
}

.maproute-map .azure-map-canvas,
.maproute-map .atlas-map {
    width: 100%;
    height: 100%;
}

.maproute-popup {
    min-width: 180px;
    font-size: 0.9rem;
}
