/* Last Updated: 7-31-2025 */

/* responsive styling for #mainBodyContainer for smaller side margins on mobile at 767px and below - to see more of the tables - was .px-5 */
@media screen and (max-width: 767.98px) {
    #mainBodyContainer {
        padding-right: 1em !important;
        padding-left: 1em !important;
    }
}

/* ****** POSSIBLE STYLES TO ADD TO A NEW STYLESHEET - OR CUSTOMIZE THE IDMBS5 ONE AND FIGURE THAT OUT ****** */
.larger-text {
    font-size: 1.2rem;
}

.nav-link {
    font-size: 1rem;
    text-decoration: underline;
    color: #003A70;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
    color: #fff;
    background-color: #003A70;
}

@media (max-width: 991px) {
    .navbar-collapse {
        border-bottom: 2px solid #212529;
    }

    .container {
        max-width: 100%;
    }

    header .banner .headLogo img.large {
        margin-top: 0;
    }

    header .banner .headLogo img.small {
        padding-top: 0;
        padding-bottom: 4px;
    }
}

/* using SVG for external link icon, for any target="_blank" anchors - modified from https://codepen.io/fathy_ar/pen/WNvZjgK */
a[target="_blank"]::after {
    top: 0em;
    /* to override the idembs5 stylesheet style */
}

/* adding this so that the actual anchor and external link icon are never separated on different lines - revisit if this class is good for the mobile UX - horizontal scrollbars might show up for long links */
a.nowrap {
    white-space: nowrap;
}

/* possible new button to add to PL, for buttons inside the alerts */

.btn-alert-light {
    background-color: #FFFFFF !important;
    text-decoration: none !important;
    border: 1px solid #15354F !important;
    border-radius: 3px !important;
}

.btn-alert-light:hover {
    background-color: #F4F4F4 !important;
    text-decoration: underline !important;
    border-color: #212529 !important;
}

.btn-alert-light.active {
    color: #FFFFFF;
    background-color: #15354F !important;
    text-decoration: none !important;
    border: 1px solid #15354F !important;
    border-radius: 3px !important;
}

.btn-alert-light-gray {
    background-color: #F4F4F4 !important;
    text-decoration: none !important;
    border: 1px solid #15354F !important;
    border-radius: 3px !important;
}

.btn-alert-light-gray:hover {
    background-color: #FFFFFF !important;
    text-decoration: underline !important;
    border-color: #212529 !important;
}

hr.apateal {
    border: 0;
    height: 0px;
    border-top: 8px solid #33BFD5;
    box-shadow: 0 2px 0 0 #004C97;
    margin-bottom: 2em;
}

/* styles for the datatables PDF anchors, along with target blank - to override styles of the anchors within .card-body */
.card-body a.pdf {
    background-color: #D22730;
    border-color: #D22730;
    color: #FFFFFF;
    display: inline-block;
}

.card-body a.pdf:hover {
    background-color: #93001C;
    border-color: #93001C;
    color: #EFB1B6;
}

/* possible tweak to the PL for longer labels on radio buttons - currently inline-block */
label.custom-control-label {
    display: inline;
}

/* ###################### top navigation styles - TO DISCUSSS WITH IUX ABOUT FINAL STYLES AND ACCESSIBILITY ###################### */

#mobileTopNavbar .nav-link {
    padding-bottom: 9px;
    border-radius: 0;
}

#mobileTopNavbar .nav-link.active {
    background-color: #003A70;
    color: #FFFFFF;
}

#mobileTopNavbar .nav-link:hover {
    background-color: #D6F2F7;
}

#mobileTopNavbar .nav-link.active:hover {
    color: #212529;
}

/* mobile menu padding */
@media (max-width: 991px) {
    #mobileTopNavbar .nav-link {
        padding: 12px;
    }
}

/* offcanvas styles */

.offcanvas {
    width: 320px !important;
}

.sidebar-links .nav-link {
    display: block;
    padding: .5rem 1rem;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.sidebar-links .nav-link.active {
    background-color: #E9EA75;
}

.sidebar-links {
    position: relative;
    overflow: hidden;
}

.sidebar-link {
    color: #003A70;
    display: flex;
    align-items: center;
}

.sidebar-link:hover {
    background-color: #D6F2F7;
}

/*----------multiple-file-upload-----------*/
.file-upload-contain {
    position: relative;
    margin-bottom: 40px;
}

.file-upload-contain .file-input,
.file-upload-contain .file-preview {
    position: initial;
}

.file-upload-contain .file-drop-zone {
    border: 1px dashed #676767;
    transition: 0.3s;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background-color: #f4f4f4;
    min-height: auto;
}

.file-upload-contain .file-drop-zone.clickable:hover,
.file-upload-contain .file-drop-zone.clickable:focus,
.file-upload-contain .file-highlighted {
    border: 1px dashed #676767 !important;
    background-color: #E9E9EA;
}

.upload-area h3 {
    font-size: 21px;
}

.file-preview {
    padding: 0;
    border: none;
    margin-bottom: 30px;
}

.file-preview .fileinput-remove {
    display: none;
}

.file-drop-zone-title {
    padding: 55px 10px;
}

.file-drop-zone .file-preview-thumbnails {
    cursor: pointer;
}

.file-preview-frame {
    cursor: default;
    display: flex;
    align-items: center;
    border: 1px solid #676767;
    background-color: #fff;
    box-shadow: none;
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    margin: 8px 0px;
}

.file-preview-frame:not(.file-preview-error):hover {
    background-color: #f4f4f4;
}

.file-preview-frame .kv-file-content {
    min-width: 45px;
    min-height: 45px;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    margin-right: 10px;
    background-color: #fff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-image {
    border-radius: 4px;
}

.file-preview-frame .file-footer-caption {
    padding-top: 0;
}

.file-preview-frame .file-footer-caption {
    text-align: left;
    margin-bottom: 0;
}

.file-detail {
    font-size: 18px;
    height: auto;
    width: 90%;
    line-height: initial;
}

.file-detail .file-caption-name {
    color: #212529;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.file-detail .file-size {
    color: #212529;
    font-size: 16px;
}

.kv-zoom-cache {
    display: none;
}

.file-preview-frame .file-thumbnail-footer {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.file-preview-frame .file-drag-handle,
.file-preview-frame .file-upload-indicator {
    float: none;
}

.file-preview-frame .file-footer-buttons {
    float: none;
    display: flex;
    align-items: center;
}

.file-preview-status.text-center {
    display: none;
}

.kv-file-remove.file-remove {
    border: none;
    background-color: transparent;
    color: #212529;
    width: 25px;
    height: 25px;
    font-size: 16px;
    border-radius: 4px;
    margin: 0px 4px;
}

.kv-file-remove.file-remove:hover {
    color: #DC3545;
}

.kv-file-upload.file-upload {
    border: none;
    background-color: #fff;
    color: #212529;
    width: 25px;
    height: 25px;
    font-size: 16px;
    border-radius: 4px;
    margin: 0px 4px;
}

.file-thumb-loading {
    background: none !important;
}

.file-preview-frame.sortable-chosen {
    background-color: #fff;
    border-color: #676767;
    box-shadow: none !important;
}

.file-drop-zone-title {
    color: #212529;
}

.kv-hidden {
    display: none;
}

.file-preview-frame .kv-file-content {
    background-color: transparent;
}

.kv-preview-data {
    width: 45px !important;
    height: 45px !important;
    font-size: 40px;
    margin-top: -15px;
}

.file-review {
    border: 1px solid #eeeeee;
    background-color: #eeeeee;
}

.file-review:not(.file-preview-error):hover {
    background-color: #eeeeee;
}

.files .file-detail .file-caption-name {
    font-size: 16px;
}

.files .kv-preview-data {
    font-size: 28px;
    margin-top: 0;
}

.files .file-preview-frame .kv-file-content {
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 40px;
}

.files .file-preview-frame {
    padding: 8px 15px;
}

/* ******* flexbox button bar responsive styles ******* */
.button-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .button-bar {
        /* Changes from row to column */
        flex-direction: column;
        gap: 10px;
    }
}

/* ********************* SPECIFIC STYLES FOR THE EAL DB ********************* */

/* top nav adjustments so links not cut-off on desktop - to cascade over the banner stles from idembs5css.css */
@media screen and (max-width: 1180px) {
    header .banner .headLogo img.large {
        max-width: 360px;
        height: auto;
        margin: 0 0 0 10px;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        margin-top: 10px;
    }
}

/* for top nav links: Hide the element between 768px and 1024px */
@media (min-width: 992px) and (max-width: 1420px) {
    .hideBetween1420and992 {
        display: none;
    }
}

/* ******************** datatables styles ******************** */

/* width of search box */
.dt-search input {
    width: 100%;
    float: left;
    margin-left: 0;
    min-height: 38px;
}

/* show # entries control */
div.dt-container div.dt-length select {
    width: 60px !important;
    font-size: 16px;
    line-height: 1;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.4rem center;
    background-size: 8px 10px;
    border: 2px solid #ccc;
    border-radius: 0;
    padding-right: 5px;
    margin: 0;
}

/*
.dt-container td {
    text-transform: capitalize;
}
*/

.dt-length {
    align-self: flex-end;
}

/* pagination control */
.pagination .page-link {
    color: rgb(33, 37, 41);
    text-decoration: none;
}

.dt-paging-button a.ellipsis {
    border-color: #003A70;
    background-color: #ffffff;
}

thead tr {
    border-bottom: 0;
}

th a {
    color: #212529;
}

table.dataTable th.dt-right,
table.dataTable td.dt-right {
    text-align: left;
}

.dt-placeholder {
    color: #6c757d;
}

@media (max-width:628px) {
    .dt-search {
        width: 100% !important;
    }
}

/* for the column searching */
tfoot input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box;
}

/* selected row color - to make it accessible - see https://datatables.net/forums/discussion/74172/background-color-of-selected-row-can-not-be-changed */
table.dataTable tbody tr.selected>* {
    box-shadow: inset 0 0 0 9999px rgb(0, 76, 151) !important;
    /* APA Brand Blue - #004C97 */
}

/* when there is a selected tr row, then change the responsive caret so that it shows up with the brand blue */
table.dataTable.dtr-inline.collapsed>tbody>tr.selected.dtr-expanded>td.dtr-control::before {
    border-top: 10px solid #D6F2F7;
}

/* when there is a selected tr row, then change the "Edit" and "Delete" links so they are white and accessible */
table.table.dataTable>tbody>tr.selected a {
    color: #FFFFFF;
}

table.table.dataTable>tbody>tr.selected a:hover {
    color: #D6F2F7;
}

/* conditional highlighting style for DataSource rows with "Salesforce" to help show the user the results are from SF - using .alert-warning background color - NOT WORKING - box-shadow styling for these rows was strange, so now using a red border around these rows/cells instead */

table.table.dataTable>tbody>tr.rowFromSalesforce {
    border: 3px solid red;
    /* color: red; */
    /* rgb(124.5, 100.2916666667, 0) !important; */
    /* background-color: red; */
    /* #FFF4D7 !important; */
    /* box-shadow: 1px 1px 1px 2px rgb(235.0632911392, 139.9367088608, 149.0506329114); */
    /* also try 5px 5px 0 2px red */
    /* red alert border color */
}

table.table.dataTable>tbody>tr.rowFromEALDatabase {
    border: 3px solid green;
    border-bottom: none;
    /* color: red; */
    /* rgb(124.5, 100.2916666667, 0) !important; */
    /* background-color: red; */
    /* #FFF4D7 !important; */
    /* box-shadow: 1px 1px 1px 2px rgb(235.0632911392, 139.9367088608, 149.0506329114); */
    /* red alert border color */
}

/***** loading indicator - not sure if using (for datatables fake loading indicator - might be needed depending on how fast AJAX response is *****/

#loading {
    height: 100%;
    width: 100%;
    z-index: 999;
    position: absolute;
    background-color: #fff;
}

/* center text with lines for the "OR" between buttons - see https://stackoverflow.com/questions/16009654/horizontal-line-in-the-middle-of-text */
.line-center {
    margin: 0;
    padding: 10px 10px;
    background: #EEEEEE;
    display: inline-block;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.line-center-div {
    text-align: center;
    position: relative;
    z-index: 2;
    font-size: 0.8em;
    width: 170px;
    margin: 15px 0;
}

.line-center-div:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: solid 1px #004C97;
    z-index: -1;
}

/* ***************** FROM idempsycnet.css STYLESHEET but replacing the PSN blue of #2c72b7 with APA Brand Blue of #004C97 ***************** */

.nav-tabs {
    border-bottom: 5px solid #004C97;
    color: #004C97;
}

.nav-tabs .nav-link {
    color: #004C97;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-bottom: 0;
    border: 1px solid #004C97;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: #004C97;
    color: #FFFFFF;
    border: 0;
}

/* ***************** OVERRIDES FROM PL2.0 STYLESHEET ***************** */

.nav-link,
.standard-tabs .nav-tabs .nav-link:not(:disabled) {
    text-decoration-line: none;
}

.standard-tabs .nav-tabs .nav-link.active {
    background-color: #004C97;
    padding-bottom: 10px;
    color: #fff;
    border: 0;
}

.standard-tabs .nav-tabs .nav-link:not(:disabled):not(.active):hover {
    background-color: #FFFFFF;
    color: #212529;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    background-color: red;
    color: #212529;
}

/* ***** */

.apaTealBox {
    background-color: #D6F2F7;
    padding: 10px;
}

/* for the info icon on the Search tab panels */

.info-icon {
    color: #004c97;
    font-size: 20px;
    cursor: pointer;
    margin-left: 5px;
}

.info-icon:hover {
    color: #003a70;
}

.search-instructions-icon-placement {
    position: relative;
    float: right;
    top: 0;
    right: 0;
}

/* for the "Add a New Member Into Group" button on B&C list table view */
.top-right-location {
    position: relative;
    float: right;
    top: 0;
    right: 0;
}

/* 520px breakpoint responsive switch - being used for EAL Search Tabs responsive switch for "Council of Representatives" to "Council" <520px */

.screen-only520 {
    display: block;
}

.mobile-only520 {
    display: none;
}

@media screen and (max-width: 520px) {
    .screen-only520 {
        display: none;
    }

    .mobile-only520 {
        display: block;
    }
}

/* Select2-BS5 customizations */
.select2-container--bootstrap-5 .select2-selection {
    background-color: #D6F2F7;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    background-color: #FFFFFF;
}

/* accordion - APA Teal variant */

.accordion .accordion-item .accordion-header .btn,
.accordion .accordion-item .accordion-header .btn:focus {
    background-color: #D6F2F7;
}

.accordion .accordion-item .accordion-header .btn:hover {
    background-color: #DEDEDF;
}

/* croppie styles - see https://codepen.io/shilwantgupta/pen/ZEGJZWJ */
.croppie-container .cr-slider-wrap {
    width: 95%;
    margin: 0 6px;
    text-align: center;
    padding-top: 5px;
}

.cr-viewport {
    outline: none;
    box-shadow: 0;
}

.cr-boundary {
    width: 100%;
}

#uploadImageModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Moves the element back by half its width and height */
    /* Add any specific styling for your modal here */
}