@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

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

h1:focus {
    outline: none;
}

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

.btn-primary {
    color: #fff;
    background-color: #0a3161;
    border-color: #0a3161
}

    .btn-primary:hover {
        color: #fff;
        background-color: #0c4387;
        border-color: #0c4387
    }

    .btn-primary.focus, .btn-primary:focus {
        color: #fff;
        background-color: #0c4387;
        border-color: #0c4387;
        box-shadow: 0 0 0 .2rem rgba(10,49,97,.5)
    }

    .btn-primary.disabled, .btn-primary:disabled {
        color: #fff;
        background-color: #919191;
        border-color: #919191
    }

    .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
        color: #fff;
        background-color: #0c4387;
        border-color: #0c4387
    }

        .btn-primary:not(:disabled):not(.disabled).active:focus, .btn-primary:not(:disabled):not(.disabled):active:focus, .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 .2rem rgba(10,49,97,.5)
        }


.bg-primary {
    color: #fff;
   /* background-color: #11519e !important;*/
    background-color: #0a3161 !important;

}
.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6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43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/*Custom CSS*/
.dropdown-divider {
    border-top: 2px solid rgba(255,255,255,.8);
}

/* Mobile navigation toggle button */
.navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*Textbox Style form Syncfusion*/
/*.e-input:not(:valid), .e-input:valid, .e-float-input.e-control-wrapper input:not(:valid), .e-float-input.e-control-wrapper input:valid, .e-float-input input:not(:valid), .e-float-input input:valid, .e-input-group input:not(:valid), .e-input-group input:valid, .e-input-group.e-control-wrapper input:not(:valid), .e-input-group.e-control-wrapper input:valid, .e-float-input.e-control-wrapper textarea:not(:valid), .e-float-input.e-control-wrapper textarea:valid, .e-float-input textarea:not(:valid), .e-float-input textarea:valid, .e-input-group.e-control-wrapper textarea:not(:valid), .e-input-group.e-control-wrapper textarea:valid, .e-input-group textarea:not(:valid), .e-input-group textarea:valid {
    font-size: 16px;
    height: 35px;
}*/

.e-grid td.e-active {
    background: #0D6EFD !important;
    color: white !important;
}

.e-grid.e-gridhover tr[role='row']:not(.e-editedrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover tr[role='row']:hover .e-detailrowcollapse:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover tr[role='row']:hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-rtl .e-gridhover tr[role='row']:hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover tr[role='row']:hover .e-detailrowexpand:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
    background: #e8f5ff !important;
    cursor: pointer !important;
}

.e-grid .e-altrow {
    background-color: #fafafa !important;
}

.e-grid .e-rowcell {
    cursor: pointer;
}


/*This section is for the new quote styles that were inside the actual razor file*/

.e-accordion .e-acrdn-item.e-select > .e-acrdn-header {
    color: #FF0000 !important;
    justify-content: center;
    background-color: rgba(0,0,0,.03);
}

.e-accordion .e-acrdn-item.e-selected > .e-acrdn-header > .e-acrdn-header-content {
    color: black !important;
}

.e-accordion .e-acrdn-item.e-select.e-active > .e-acrdn-header,
.e-accordion .e-acrdn-item.e-select.e-item-focus > .e-acrdn-header {
    background-color: rgba(0,0,0,.03) !important;
}

.onclick {
    text-decoration: underline;
    color: blue;
    font-weight: bold;
}

    .onclick:hover {
        cursor: pointer;
    }
a.disabledAnchor {
    color: currentColor;
    cursor: default !important;
    opacity: 0.5;
    text-decoration: none;
}
/* Modern Close Button Styling for Blazorise CloseButton */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: none;
    opacity: 0.5;
    transition: opacity 0.15s ease-in-out;
}

.btn-close:hover {
    cursor: pointer;
    opacity: 0.75;
}

.btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Blazorise Modal Header Close Button */
.modal-header .btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

/* Custom styling for consistent close button appearance */
.close-button-modern {
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #6c757d;
    text-shadow: none;
    opacity: 0.5;
    transition: all 0.15s ease-in-out;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.close-button-modern:hover {
    cursor: pointer;
    opacity: 0.75;
    background-color: rgba(0, 0, 0, 0.05);
}

.close-button-modern:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.valid {
    border-color: #198754;
}

.invalidBorder {
    border-color: #dc3545;
}

/*Checkbox style*/

.onclick {
    text-decoration: underline;
    color: blue;
    font-weight: bold;
}

/*CSS TO FIX DROPDOWN SELECTION*/
.e-ddl.e-input-group .e-input-value {
    margin: 5px;
}

table, td, th {
    border: none;
}

th {
    text-align: left;
    padding: 5px;
}

a {
    text-decoration: none;
}

.anchorFunction {
    font-size: 0.875em;
    color: #0A3161;
    font-weight: bold;
    text-decoration: underline;
}
    .anchorFunction:hover {
        cursor: pointer;
    }

.tableFill {
    width: 0%;
}

.tableSmall {
    width: 10%;
}

.tableBig {
    width: 40%;
}
/*This is used for quotes landing page formal quote table resize*/
@media (min-width: 768px) {

    .tableFill {
        width: 60%;
    }

    .tableSmall {
        width: 5%;
    }

    .tableBig {
        width: 15%;
    }
}

/* Modern Navigation Styling */
.nav-menu .nav-link {
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.nav-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
}

.nav-menu .nav-link.active {
    background-color: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
}

.nav-menu .anchor {
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease-in-out;
    display: block;
}

.nav-menu .anchor:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    text-decoration: none;
}


/* Top Navigation Bar */
.TopBar {
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

/* Dropdown Menu Styling - Fixed Z-Index Issue */
.dropdown-menu {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050 !important; /* Above Bootstrap navbar and action bars */
    position: absolute !important;
    min-width: 200px;
}

.dropdown-item {
    transition: all 0.15s ease-in-out;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Ensure dropdown toggle has proper z-index */
.dropdown-toggle {
    z-index: 1051 !important;
}

/* Fix for Bootstrap 5 dropdown positioning */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    right: 0;
    left: auto;
    margin-top: 0.5rem;
}

/* Navigation Module Active States */
.nav-module {
    position: relative;
    transition: all 0.3s ease-in-out;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.nav-module-expanded {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    padding-left: 0.75rem;
}

.nav-module-collapsed {
    background-color: transparent;
    border-left: none;
}

/* Chevron Icons */
.nav-chevron {
    transition: transform 0.3s ease-in-out;
    float: right;
    margin-left: auto;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.nav-chevron-expanded {
    transform: rotate(180deg);
}

.nav-chevron-collapsed {
    transform: rotate(0deg);
}

/* Enhanced Navigation Link Styling */
.nav-menu .nav-module .anchor {
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-menu .nav-module .anchor:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    text-decoration: none;
}

/* Sub-menu enhanced styling */
.expandMenu {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
    min-width: 200px;
}

.expandMenu .anchor {
    color: #e0e0e0 !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.expandMenu .anchor:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    transform: translateX(0.25rem);
}

/* Ensure NavLink keeps proper styling in submenu */
.expandMenu .nav-link,
.expandMenu .nav-link:hover {
    color: #e0e0e0 !important;
    text-decoration: none !important;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

/* Active page indicator */
.expandMenu .anchor.active {
    background-color: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    font-weight: 600;
    border-left: 3px solid rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Fix for NavLink active state text formatting */
.expandMenu .nav-link.active,
.expandMenu .nav-link:active {
    background-color: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-left: 3px solid rgba(255, 255, 255, 0.8);
    text-decoration: none !important;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .TopBar {
        padding: 0.5rem;
    }
    
    .nav-module-expanded {
        border-left: 2px solid rgba(255, 255, 255, 0.6);
    }
    
    .expandMenu {
        margin-left: 0.5rem;
    }
}
