html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

.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;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        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;
}

/* Revert btn-link to only show underline on hover */
.btn-link {
    text-decoration: none !important;
}

.btn-link:hover {
    text-decoration: underline !important;
}

/*
  This targets a button that has focus but only when that focus
  is NOT designated as "visibly" focused (i.e., a mouse click).
*/
.btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.no-focus-outline:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ced4da !important;
}

.buffer{
    margin-top: 20px;;
}

.calendar-only-picker {
    display: none !important;
}

.bridgeway-green-bg {
    background-color: rgb(20, 140, 151);
}

.bridgeway-green{
    background-color: rgb(20, 140, 151);
}


.octas-flag-blue {
    background: #3f51b5;
    color: white;
    font-weight: bold;
    display: inline-block;
    padding: 0px 5px 0px 5px;
    border-radius: 4px;
    font-size: 16px;
}

.octas-flag-orange {
    background: darkorange;
    color: white;
    font-weight: bold;
    display: inline-block;
    padding: 0px 5px 0px 5px;
    border-radius: 4px;
    font-size: 16px;
}

.octas-flag-red {
    background: red;
    color: white;
    font-weight: bold;
    display: inline-block;
    padding: 0px 5px 0px 5px;
    border-radius: 4px;
    font-size: 16px;
}

.form-check-input:checked {
    background-color: rgb(20, 140, 151) !important; /* Your custom color */
    border-color: rgb(20, 140, 151) !important;     /* Your custom color */
}

.form-check-label{
    margin-left:-3px;
}


@media (max-width: 640px) {
    .elegant-table thead th,
    .elegant-table td { padding: 10px 12px; }
    .cell-host { min-width: 220px; }
  }

.no-focus-shadow .form-check-input:focus {
    box-shadow: none;
}

/* --- Custom Filter Bar --- */

.custom-filter-bar {
    position: relative; 
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.custom-filter-bar .align-to-end {
    position: absolute;
    right: 0;
}

@media (max-width: 1300px) {
    .custom-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-filter-bar > div {
        width: 100% !important;
    }

    .custom-filter-bar .no-focus-outline {
        width: 100% !important;
    }

    .custom-filter-bar .align-to-end {
        position: static;
        text-align: right;
    }
}


/* ============================================================
   Blazored Typeahead Fixes (Single Line / Standard Height)
   Usage: Wrap the <BlazoredTypeahead> in a div with class "octas-typeahead-fix"
   ============================================================ */

/* 1. LOCK CONTAINER HEIGHT */
.octas-typeahead-fix .blazored-typeahead__controls {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    
    padding: 0 !important; 
    background-color: #fff;
    border-radius: 0.375rem; /* Bootstrap standard radius */
}

/* 2. NORMALIZE INPUT & SELECTED TEXT */
.octas-typeahead-fix .blazored-typeahead__input,
.octas-typeahead-fix .blazored-typeahead__input-mask {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 0.75rem !important;
    display: flex;
    align-items: center;
    line-height: 1.5;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. MASK WRAPPER FLEX RULES */
.octas-typeahead-fix .blazored-typeahead__input-mask-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    min-width: 0; /* Critical for flex truncation */
    position: static !important;
}

/* 4. POSITION THE CLEAR (X) BUTTON */
.octas-typeahead-fix .blazored-typeahead__clear {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100% !important;
    
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    
    margin: 0 !important;
    padding: 0 10px 0 5px !important;
    flex: 0 0 auto;
}

/* 5. HIDE INPUT WHEN SELECTED */
.octas-typeahead-fix .blazored-typeahead__input-mask-wrapper ~ input {
    display: none !important;
}

.typeahead-single-line-wrapper .blazored-typeahead__input-mask {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 25px;
    width: 100%;
    display: block;
}

.typeahead-single-line-wrapper .blazored-typeahead__controls {
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Fix for Blazorise DatePicker positioning in Modals/Cards */
.flatpickr-calendar.static {
    top: inherit !important;
}

.blazored-typeahead__results {
    z-index: 9999 !important;
}

.blazored-typeahead__active-item .text-muted,
.blazored-typeahead__result:hover .text-muted,
.blazored-typeahead__result:focus .text-muted {
    color: #fff !important;
}

.fully-booked{
    background: #ca1a1a;
    padding: 0 3px;
    border: 1px solid #ca1a1a;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-weight:bold;
    font-size: 14px;
}

.fill-width{
    display: block !important;; 
    width: 100% !important;; 
    text-align: left !important;
}

/* .red-toggle {
    color: red !important;
}

.red-toggle:focus,
.red-toggle:active {
    color: white !important;
    background-color: red !important;
} */

.red-toggle {
    color: red !important;
}

.red-toggle:hover,
.red-toggle:focus,
.red-toggle:active {
    color: white !important;
    background-color: red !important;
}

.blue-toggle {
    color: #0d6efd !important;
}

.blue-toggle:hover {
    color: #0d6efd !important;
    background-color: #e9ecef;
}
.blue-toggle:focus,
.blue-toggle:active {
    color: white !important;
    background-color: #0d6efd !important;
}
