/* Accessibility Utility Classes */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.ml-2 {
    margin-left: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Job Search Detail Layout replacements for UL/LI */
.detail-row {
    overflow: hidden;
    margin: 1em 0;
    width: 100%;
}

.detail-item {
    float: left;
    width: 33.33%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media screen and (max-width : 767px) {
    .detail-item {
        width: 100%;
        padding: 0;
        margin-bottom: 10px;
    }
}

.captcha-form {
    width: 50%;
    float: left;
    padding: 0 .5em;
    box-sizing: border-box;
}

.detail-section {
    overflow: hidden;
    width: 100%;
}

.detail-section .detail-item {
    width: 100%;
    margin-bottom: 1em;
}

@media screen and (max-width : 767px) {
    .captcha-form {
        width: 100%;
        padding: 0;
    }
}

/* --- Color Contrast Accessibility Fixes --- */

/* 1. Form Validation Error Messages */
span[style*="color:Red"], span[style*="color:red"], span[style*="color: Red"], .text-danger, .error-msg {
    color: #D90D0D !important;
}

/* 2. Header Main Menu & Profile Dropdown */
.main_menu > li > a {
    background-color: #254399 !important;
    color: #fff !important;
}
    .main_menu > li > a:hover,
    .main_menu > li > a.menu-active {
        background-color: #996806 !important;
        color: #ffffff !important;
    }
    .main_menu > li > a:focus {
        background-color: #996806 !important;
        color: #ffffff !important;
        outline: 2px solid #fff !important;
        outline-offset: -9px !important;
    }
/* Sheet 09 — DocumentsUpload_B13: My Profile icon button foreground */
li.log--out a {
    color: #887330 !important;
}

/* Sub-Menu Items */
.submenu li a:hover,
.submenu a.menu-active {
    background-color: #D7B271 !important;
    color: #000000 !important;
}
.submenu li a:focus {
    background-color: #D7B271 !important;
    color: #000000 !important;
    outline: 2px solid #000000 !important;
    outline-offset: -2px !important;
}

/* Profile / Logout Dropdown Menu — stronger specificity to beat master.css */
/* Normal state */
.dropdown .dropdown-ul-li .dropdown-ul-li-a {
    color: #000000 !important;
    background-color: #ffffff !important;
}
/* Hover state */
.dropdown .dropdown-ul-li .dropdown-ul-li-a:hover,
.dropdown-ul-li-a:hover {
    background-color: #D7B271 !important;
    color: #000000 !important;
}
/* Focus state */
.dropdown .dropdown-ul-li .dropdown-ul-li-a:focus,
.dropdown-ul-li-a:focus {
    background-color: #D7B271 !important;
    color: #000000 !important;
    outline: 2px solid #000000 !important;
    outline-offset: -2px !important;
}

/* 3. Main Content & Side Navigation */
/* Left side panel navigation / Tabs */
.nav-tabs > li > a, .left-panel a {
    background-color: #E0EDF4 !important;
    color: #000 !important;
}
    .nav-tabs > li.active > a, .nav-tabs > li > a:hover {
        background-color: #916308 !important;
        color: #ffffff !important;
    }

.nav-tabs > li.active > a {
	i {
		filter: invert(1);
	}
}
.nav-tabs > li.active > a:hover {
	i {
		filter: invert(0);
	}
}
.nav-tabs > li.active > a:focus {
	color : #000 !important;
	i {
		filter: invert(0);
	}
}
.nav-tabs > li > a:focus {

    outline: 2px solid #000000 !important;
    outline-offset: -2px !important;
}

/* Main background info headers/panels */
.info-header, .content-header, .panel-default > .panel-heading {
    background-color: #F6F6F6 !important;
    color: #89641F !important;
}
/* Notification OK Buttons */
#btnOkay, .btn-ok, .modal-footer .btn-small {
    background-color: #D2AB66 !important;
    color: #000000 !important;
    outline: none !important;
}

/* 6. Rating Scale Component (Pre-Boarding Survey) */
/* Ratings stars */
.rating-star, .fa-star {
    color: #000000 !important; 
}
.rating-star.selected, .fa-star.selected, .fa-star.checked, .rating-star:hover, .fa-star:hover {
    color: #B35F00 !important;
    background-color: #ffffff !important;
}

/* Comments Textarea */
#txtComments, textarea.comments-box {
    border: 1px solid #000000 !important;
    background-color: #E4E2E2 !important;
}
#txtComments:focus, textarea.comments-box:focus {
    outline: 2px solid #1E6DAE !important;
    background-color: #EBEBEB !important;
}

/* Review and Submit Bullet Point */
.bullet-point, .review-submit-list li::before, ul.review-list li {
    background-color: #254399 !important;
}

nav ul li > ul.submenu li a.menu-active {
    color: #000 !important;
    background: #f7a600;
}

/* Contact tab address rows (mp_personal) — desktop 3-column / 2-column layout */
@media screen and (min-width: 769px) {
    .tab-table-group ul.fields-row-3 {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.5em;
        overflow: hidden;
    }
    .tab-table-group ul.fields-row-3 > li {
        flex: 1 1 0;
        float: none;
        width: auto;
        margin-left: 0;
    }
    .tab-table-group ul.fields-row-2 {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.5em;
        overflow: hidden;
    }
    .tab-table-group ul.fields-row-2 > li {
        flex: 0 0 calc(50% - 0.75em);
        float: none;
        width: auto;
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .tab-table-group ul.fields-row-3 > li,
    .tab-table-group ul.fields-row-2 > li {
        flex: none;
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 1em;
    }
    .tab-table-group ul.fields-row-3,
    .tab-table-group ul.fields-row-2 {
        display: block;
    }
}