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

.hp-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ==== Global Colors ==== */
:root {
    --nbmc-blue-color: #8bc8ca;
    --nbmc-blue-color-light: #e5eff3;
    ;
    --nbmc-blue-color-hover: #6e9ea9;
    --nbmc-blue-color-dark: #29979b;
}

.cursor-pointer {
    cursor: pointer;
}

.logo-thumb-44 {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.marker-popup-close {
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 1000;
}

.marker-popup-card {
    min-width: 200px;
}

.spinner-overlay.d-flex,
.spinner-message {
    animation: spinnerFadeIn 0.8s ease-out forwards;
}

@keyframes spinnerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-header-nbmc {
    background-color: var(--nbmc-blue-color);
    /* color: white; */
    font-weight: bold;
}

/* ==== Buttons ==== */
.search-button {
    background-color: var(--nbmc-blue-color);
    border-color: var(--nbmc-blue-color-hover);
}

.search-button:hover {
    color: var(--nbmc-blue-color-hover);
    border-color: var(--nbmc-blue-color);
}

.search-all-button {
    background-color: var(--nbmc-blue-color-hover);
}

.search-all-button:hover {
    color: var(--nbmc-blue-color-hover);
    border-color: var(--nbmc-blue-color-hover);
}

.edit-lookup-button {
    color: var(--nbmc-blue-color-dark);
}

.edit-lookup-button:hover {
    color: var(--nbmc-blue-color);
}

.nav-link {
    font-size: 14px;
    color: #4a4a4a;
    text-align: center;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    align-items: center;
    justify-content: center;
}

.nav-link.active {
    background-color: #c4e1ed;
    color: #fff;
}

.nav-link:hover {
    background-color: #d4e8f0;
    color: #222;
}

/* Autocomplete */
/* Base styles for all autocomplete suggestions */
.autocomplete-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

/* Base item styles (applies to ALL autocomplete items) */
.autocomplete-item {
    padding: 8px;
    cursor: pointer;
}

/* Hover state for ALL autocomplete items */
.autocomplete-item:hover {
    background-color: #f0f0f0;
}

/* Address-specific overrides */
.address_suggestions {
    background-color: var(--nbmc-blue-color-light) !important;
}

.address_suggestions .autocomplete-item:hover {
    background-color: var(--nbmc-blue-color) !important;
}

/* ==== Boostrap Table override styles ==== */
button[name="clearSearch"] {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
/* Bootstrap-table filters and header sizing */
.bootstrap-table .filter-control input,
.bootstrap-table .filter-control select,
.bootstrap-table .fixed-table-toolbar .search input {
    padding: .25rem .5rem !important;
    font-size: .875rem !important;
    height: 31px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* Let dropdowns fill the header cell */
.bootstrap-table .filter-control select {
    width: auto !important;
    min-width: 100% !important;
    display: inline-block;
}

/* Keep headers aligned and sized naturally */
.bootstrap-table th {
    white-space: nowrap !important;
    min-width: max-content !important;
    max-width: 400px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle !important;
    background-color: #fff !important;
}

/* Allow columns to size naturally */
.bootstrap-table .table {
    table-layout: auto !important;
    width: 100% !important;
}

/* Shrink data-cell font size */
.bootstrap-table .table td {
    font-size: .875rem !important;
    vertical-align: middle !important;
    white-space: nowrap; /* Keeps data on one line like the headers */
}

/* Compact padding for table-sm */
.bootstrap-table .table-sm td {
    padding: .3rem .5rem !important;
}


/* Header */
nav.navbar {
    max-width: 1200px;
    /* Match the reference width */
    margin: 0 auto;
    /* Center the header */
    padding: 10px 0;
    /* Adjust padding for proper spacing */
}

.language-toggle {
    display: inline-flex;
    border: 1px solid #dce6e9;
    border-radius: 20px;
    overflow: hidden;
    width: 160px;
    /* Adjust width to match the reference */
    height: 36px;
    /* Reduce height for a thinner appearance */
}

.language-btn {
    flex: 1;
    padding: 6px 20px;
    /* Increase horizontal padding */
    font-size: 14px;
    /* Reduce font size for better fit */
    font-weight: bold;
    color: #4a4a4a;
    text-align: center;
    background-color: var(--nbmc-blue-color-light);
    border: none;
    transition: background-color 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-btn.active {
    background-color: #c4e1ed;
    color: #333;
}

.language-btn:hover {
    background-color: #d4e8f0;
    color: #222;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.primary {
    color: #03888D;
    /* Set the header text color */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    /* Adjusted font size for headers */
    margin-bottom: 15px;
    /* Increased space between header and content */
}

.badge-custom {
    padding: 5px 15px;
    margin: 3px;
    font-size: 16px;
    margin-top: 15px;
    color: var(--color-white);
    background-color: var(--nbmc-blue-color);
    border-color: var(--nbmc-blue-color-dark);
    /* Increased space from other elements */
}

.badge-custom:hover {
    color: var(--nbmc-blue-color-hover);
    background-color: var(--color-white);
    border-color: var(--nbmc-blue-color);
}

.container p {
    color: #4c4f56;
    font-size: 18px;
    margin-bottom: 0;
}

@media (max-width: 576px) {

    /* Reduce logo size in footer */
    .footer .img-fluid {
        max-height: 80px !important;
    }

    /* Reduce text size for paragraphs and headings in foot   er */
    .footer p,
    .footer h6 {
        font-size: 0.8rem !important;
    }

    /* Adjust button size in footer */
    .footer .btn {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem;
    }
}

.required-label:after {
    content: " *";
    color: red;
}

/* ===== Select2 Multi-Select Wrapping Fix ===== */
/* Targets the Bootstrap 5-themed Select2 */
.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: auto !important;
    padding-bottom: 4px !important;
}

/* Individual choice items */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    white-space: normal !important;
    word-break: break-word !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
    padding: 0.25em 0.5em !important;
}

/* Remove button alignment */
.select2-container--bootstrap-5 .select2-selection__choice__remove {
    position: relative !important;
    top: -1px !important;
    margin-right: 4px !important;
}

/* Mobile responsiveness (optional) */
@media (max-width: 768px) {
    .select2-container--bootstrap-5 {
        width: 100% !important;
    }
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Password toggle spacing */
.password-toggle {
    position: relative;
}

.password-toggle input[type="password"],
.password-toggle input[type="text"] {
    padding-right: 2.5rem;
}

[data-password-toggle-button] {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding-right: 1.75rem;
}

/* Hide native invalid icon on password toggles but keep red outline */
.password-toggle input:required:invalid {
    background-image: none;
    box-shadow: inset 0 0 0 1px #dc3545;
}

/* Standard progress height for strength meters */
.progress {
    height: 6px;
}

/* Shared password strength bar styling */
.password-strength .progress {
    height: 0.5rem;
}

/* ===== Auth card layout ===== */
.card-narrow {
    max-width: 450px;
}

/* ===== END Auth card layout ===== */

/* ===== Event Logs ===== */
.text-danger [data-detail-icon],
.text-danger .detail-icon {
    color: var(--bs-danger) !important;
}

.text-success [data-detail-icon],
.text-success .detail-icon {
    color: var(--bs-success) !important;
}
