/* ============================================================
   custom.css — custom admin panel styling for EtihadRails.
   Loaded globally via AbpBundlingOptions (see EtihadRailsBlazorModule.ConfigureBundles).
   Add your style overrides below.
   ============================================================ */

/* Example: tweak the LeptonX brand area / page background.
   These are sample overrides — adjust or remove as needed. */

/*
:root .lpx-content {
    background-color: #f5f7fa;
}

.lpx-navbar {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
*/

:root {
    --lpx-brand: #c10505 !important;
    --lpx-content-bg: #F3E6DD !important;
    --bs-btn-bg: #C10505 !important;
    --lpx-navbar-text-color: #24272A !important;
    --bs-nav-tabs-link-active-color: #C10505 !important;
    --bs-card-color: #2f3033 !important;
}

.card-body{
    color: #2f3033 !important;
}


.btn:disabled, .btn.disabled, fieldset:disabled .btn {
    background-color: #C10505 !important
}

.btn:hover.btn-warning {
    border-color: #ff9f38 !important;
}

.accordion-button:not(.collapsed) {
    color: #c10505 !important;
}
.nav-pills .nav-link {
color: #737373 !important;
}


.btn:hover {
    color: #fff !important;
    background-color: #C10505 !important;
    border-color: #C10505 !important;
}

button.btn.btn-outline-secondary:hover {
    color: #C10505 !important;
}

button.btn.btn-outline-secondary:active {
    color: #fff !important;
}


.modal-body .text-primary {
    color: #C10505 !important;
}

.checklist-template-row .text-primary {
    color: #C10505 !important;
}


.nav-link:not(.active):hover, .nav-link:not(.active):focus, .nav-link:not(.active):active {
    color: #434548 !important;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #C10505 !important;
    background-color: var(--bs-nav-tabs-link-active-bg) unset;
    border-color: #C10505 !important;
}

.form-check .form-check-input:checked {
    border-color: #C10505 !important;
    background-color: #C10505 !important;
}

.lpx-sidebar-container .lpx-sidebar .lpx-nav {
    min-width: 280px !important;
    height: 100vh;
}


.hover-trigger .lpx-sidebar-container:not(:hover) .hidden-in-hover-trigger {
    display: revert-rule !important;
}

li:has(a[data-lpx-setting-group="appearance"]), li:has(a[data-lpx-setting-group="containerWidth"]) {
    display: none !important;
}

#appearance {
    display: none !important;
}

#containerWidth{
display: none !important;
}

.setting-icon:has(> i[data-lpx-ctx-toggle="settings-context-menu"]) {
    display: none !important;
}

.lpx-settings#lpx-settings {
    display: flex;
    justify-content: center;
}

.lpx-settings .setting-icon {
    background: #2f3033;
    width: 36px;
    color: #fff;
    border-radius: 10px;
    text-align : center;
}

.lpx-settings .setting-icon:hover {
    background: #C10505;
}

#lpx-wrapper.hover-trigger .lpx-sidebar-container,
#lpx-wrapper.hover-trigger .lpx-sidebar-container:hover {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

#lpx-wrapper.hover-trigger {
    --lpx-sidebar-width: 280px !important;
}


#lpx-wrapper.hover-trigger .lpx-sidebar-container:not(:hover) {
    min-width: 280px !important;
    max-width: 280px !important;
}


@media only screen and (min-width: 1200px) {
    #lpx-wrapper.hover-trigger .lpx-content-container {
        margin-left: 280px !important;
    }
}



.btn-primary {
    --bs-btn-bg: #C10505 !important;
    border-color: #C10505 !important
}

.btn-primary:hover {
    color: #C10505 !important;
    background-color: #fff !important;
    border-color: #C10505 !important;
}

.btn-outline-secondary {
    color: #C10505 !important;
    background-color: #fff !important;
    border-color: #C10505 !important;
}

.btn-outline-secondary:hover {
    background-color:#fff !important;
    border-color: #C10505 !important
}

.btn-info {
    --bs-btn-bg: #C10505 !important;
    border-color: #C10505 !important
}

.btn:hover {
    --bs-btn-bg: #C10505 !important;
    border-color: #C10505 !important
}


.btn-check:checked + .btn, :not(.btn-check) + .btn:active, .btn:first-child:active, .btn.active, .btn.show {
    background-color: #C10505 !important;
    border-color: #C10505 !important;
    color:#fff !important;
}

.table-responsive .dropdown .btn.dropdown-toggle:not(.btn-outline) {
    border: 1px solid;
}

.btn-outline-primary {
    --bs-btn-color: #C10505 !important;
    --bs-btn-border-color: #C10505 !important;
    --bs-btn-hover-color #fff;
    --bs-btn-hover-bg: #C10505 !important;
    --bs-btn-hover-border-color: #C10505 !important;
}

.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: #c10505 !important;
}

.btn-secondary {
    --bs-btn-color: #C10505 !important;
    --bs-btn-bg: #fff !important;
    --bs-btn-border-color: #C10505 !important
}

.btn-secondary:hover {
    color: #fff !important;
    background-color: #C10505 !important;
    border-color: #C10505 !important;
}

.form-check-input:checked {
    border-color: #C10505 !important;
    background-color: #C10505 !important;
}

.table-primary {
    background-color: rgb(243 230 221 / 50%) !important;
    --bs-table-bg : rgb(243 230 221 / 50%) !important;
    border-color: #f6ece6 !important;
    color: #325168;
}

.card-body .pagination .page-item.active .page-link {
    background-color: #C10505 !important;
}

.lpx-logo-container {
    padding: 10px 5px !important;
}


.lpx-brand-logo {
    background-size: auto 40px !important;
    height: 45px !important;
    background-position: center !important;
}

.lpx-mobile-nav-tab a i{
    transition: color 0.2s ease;
    color: #24272A;
}

@media (max-width: 767px) {
    .lpx-brand-logo {
        background-size: auto 50px !important;
        height: 75px !important;
        background-position: left center !important;
    }

    .lpx-content-container{
        border-radius:0 !important;
    }

    .lpx-content-container .lpx-content {
        padding: 3.5em 24px 16px !important;
    }

    .lpx-content-wrapper {
        border: 0 !important;
    }
}

.lpx-sidebar .lpx-logo-container .menu-collapse-icon{
    display:none!important;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: rgb(243 230 221 / 50%) !important;
}

.lpx-content-container .pagination .page-item.active .page-link {
    color: #fff !important;
    border-radius: 0.5rem;
    background-color: #c10505 !important;
}

.lpx-topbar-container .lpx-topbar {
    padding: 4px 16px !important;
    border: 0 !important;
    border-radius : 0 !important;
    border-bottom: 1px solid #fff !important;
}

.lpx-breadcrumb-item{
    color: #24272A !important;
    font-size: 0.825rem !important;
}

.lpx-breadcrumb-separator {
    background : #fff!important;
}

.lpx-mobile-nav-tab a i {
    transition: color 0.2s ease;
    color: rgb(47 48 51 / 100%) !important;
}


.lpx-main-title {
    color: #24272A !important;
}


.form-check-input[type=checkbox]:indeterminate {
    background-color: #c10505;
    border-color: #c10505;
}

.table thead th .form-check .form-check-input:checked, .form-check-input[type=checkbox]:indeterminate {
    background-color: #c10505 !important;
}

.table thead th .form-check .form-check-input {
    border-radius: 0.25em !important;
    font-size: 14px;
    margin: 0 -21px;
}

.table.table-striped > tbody > tr:nth-of-type(odd) > td, .table.table-bordered > tbody > tr:nth-of-type(odd) > td {
    background-color : transparent !important;
}

.table.table-striped > tbody > tr:nth-of-type(even) > td, .table.table-bordered > tbody > tr:nth-of-type(even) > td {
    background-color: transparent !important;
}

.table.table-striped > tbody > tr.table-primary.table-row-selectable > td, .table.table-bordered > tbody > tr.table-primary.table-row-selectable > td{
    color: #24272A !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link{
    color: #fff !important;
    background-color: #24272A !important;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: rgb(205 205 205 / 30%) !important;
}


.table thead th {
    font-weight: 500 !important;
    color: rgb(47 48 51 / 80%) !important;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

.table > :not(caption) > * > * {
    color: #51534A !important;
}


.lpx-settings {
    top: 100px !important;
    bottom: unset !important;
    color: #24272A !important;
}

.lpx-avatar .lpx-avatar-img, .lpx-avatar .lpx-avatar-icon {
    border-radius: 10px!important;
}


.lpx-user-menu .lpx-menu-item-link .lpx-menu-item-text {
    color: #24272A !important;
    text-transform: capitalize;
}
select.form-select option:checked, select.form-select option:focus, select.form-select option:active{
    background: #c10505 !important;
}

/* ============================================================
   Brand-colored highlights for pickers, selects & autocomplete
   Aligns the default pink/blue highlight of native date/time
   pickers, <select> options, flatpickr calendars, Select2 and
   Blazorise autocomplete with the site color (#C10505).
   ============================================================ */

/* Native form-control accents: the highlighted value inside the
   Chromium <input type="time"> / <input type="date"> popup, plus
   checkboxes, radios and range sliders. */
:root {
    accent-color: #C10505;
}

/* Closed-state branding for native inputs, <select> and time/date
   fields: focus ring and border in the site color instead of the
   default Bootstrap blue. NOTE: the OPEN native <select> / time
   popup is drawn by the browser and keeps its own highlight color —
   that cannot be changed with CSS in Chrome. */
.form-control:focus,
.form-select:focus,
input[type="time"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
.form-check-input:focus {
    border-color: #C10505 !important;
    box-shadow: 0 0 0 0.2rem rgba(193, 5, 5, 0.25) !important;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(193, 5, 5, 0.55) !important;
}

/* Tint the native <select> dropdown caret to match the brand color */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C10505' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

input[type="time"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
select.form-select {
    accent-color: #C10505 !important;
}

/* Native <select> option list (highlighted / selected / hovered).
   Browser support is limited on the OS-drawn dropdown, but this
   covers the cases that are stylable. */
option:checked,
option:hover,
option:focus,
select option:checked {
    background: #C10505 linear-gradient(0deg, #C10505 0%, #C10505 100%) !important;
    color: #fff !important;
}

/* Chromium 135+: opt <select> into the customizable (in-page) popup so
   the option highlight can actually be styled brand red instead of the
   fixed native blue. Browsers without support ignore this block and
   keep their native dropdown. */
@supports (appearance: base-select) {
    select,
    select.form-select {
        appearance: base-select;
    }

    select::picker(select) {
        appearance: base-select;
        border: 1px solid rgba(193, 5, 5, 0.35);
        border-radius: 0.375rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    /* .form-select already draws its own red caret via background-image —
       hide the base-select built-in icon to avoid a double arrow. */
    select::picker-icon {
        display: none;
    }

    select option:hover,
    select option:focus {
        background: rgba(193, 5, 5, 0.12) !important;
        color: #24272A !important;
    }

    select option:checked {
        background: #C10505 !important;
        color: #fff !important;
    }
}

/* Flatpickr calendars used by Blazorise DatePicker/TimePicker */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange {
    background: #C10505 !important;
    border-color: #C10505 !important;
    color: #fff !important;
}

.flatpickr-day:hover,
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange {
    background: rgba(193, 5, 5, 0.12) !important;
    border-color: rgba(193, 5, 5, 0.12) !important;
}

.flatpickr-day.today {
    border-color: #C10505 !important;
}

.flatpickr-day.today:hover {
    background: #C10505 !important;
    color: #fff !important;
}

span.flatpickr-weekday {
    color: #C10505 !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
    background: rgba(193, 5, 5, 0.08) !important;
}

.flatpickr-time .form-control, .form-select {
    height : 2.8rem;
}

.form-group select.form-select option:checked,
select.form-select option:focus, 
select.form-select option:active {
    background: #c10505 !important;
}

.form-group select.form-select option:focus {
    background: #c10505 !important;
}


.bootstrap-timepicker-widget table td a:hover,
.bootstrap-timepicker-widget table td input,
.bootstrap-timepicker-widget table td span.active,
.bootstrap-timepicker-widget table td.active,
.bootstrap-timepicker-widget .active {
    background: #c10505 !important;
    color: #fff !important;
}


/* Highlighted digits inside the flatpickr time picker (hour/minute
   inputs select their text on focus — brand it red instead of blue) */
.flatpickr-time input::selection {
    background: #C10505 !important;
    color: #fff !important;
}

.flatpickr-time .numInputWrapper span.arrowUp:after {
    border-bottom-color: #C10505 !important;
}

.flatpickr-time .numInputWrapper span.arrowDown:after {
    border-top-color: #C10505 !important;
}

.flatpickr-monthDropdown-months .flatpickr-monthDropdown-month:hover {
    background: rgba(193, 5, 5, 0.12) !important;
}

/* Select2 dropdown (highlighted / selected option) */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background-color: #C10505 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
    background-color: rgba(193, 5, 5, 0.12) !important;
    color: #24272A !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #C10505 !important;
    border-color: #C10505 !important;
    color: #fff !important;
}

/* Blazorise autocomplete / dropdown suggestion list */
.b-is-autocomplete .dropdown-menu .dropdown-item.active,
.b-is-autocomplete .dropdown-menu .dropdown-item:hover,
.b-is-autocomplete .dropdown-menu .dropdown-item.focus,
.autocomplete .dropdown-item.active,
.autocomplete .dropdown-item:hover {
    background-color: #C10505 !important;
    color: #fff !important;
}


@media (max-width: 767.98px) {
    .col-3:has(.form-group) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ============================================================
   PasswordEdit component — masked field with a show/hide eye
   toggle (see Components/Shared/PasswordEdit.razor). The eye is
   overlaid on the right of the input so the existing Blazorise
   validation DOM (input + .invalid-feedback) is preserved.
   ============================================================ */
.er-password-field {
    position: relative;
}

/* leave room for the eye button so long secrets don't run under it */
.er-password-field > .form-control {
    padding-right: 2.75rem;
}

.er-password-field .er-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: calc(1.5em + 0.75rem + 2px); /* bootstrap .form-control height */
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: #6c757d;
    cursor: pointer;
    z-index: 3;
}

.er-password-field .er-password-toggle:hover,
.er-password-field .er-password-toggle:focus {
    color: #C10505;
}

