﻿/* wwwroot/css/custom.css */

:root {
    --uac-primary: #1E4F98;
    --uac-primary-dark: #17407B;
    --uac-border: #E7EBF0;
    --uac-radius-sm: .375rem;
    --uac-radius-md: .5rem;
    --uac-radius-lg: .75rem;
    --uac-shadow: 0 4px 14px rgba(16, 24, 40, .08);
}

body {
    font-family: 'Inter', sans-serif;
    background: #F5F7FA;
    font-size:0.9rem;
}

/* Bootstrap primary override so .btn-primary / .text-primary / .badge use the brand color */
.btn-primary {
    --bs-btn-bg: var(--uac-primary);
    --bs-btn-border-color: var(--uac-primary);
    --bs-btn-hover-bg: var(--uac-primary-dark);
    --bs-btn-hover-border-color: var(--uac-primary-dark);
}

.text-primary {
    color: var(--uac-primary) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--uac-primary);
    --bs-btn-border-color: var(--uac-primary);
    --bs-btn-hover-bg: var(--uac-primary);
    --bs-btn-hover-border-color: var(--uac-primary);
}

/* Match mock's slightly-rounded, flat-bordered inputs/buttons */
.form-control,
.input-group-text,
.btn {
    border-radius: var(--uac-radius-sm);
}

.input-group > .form-control:not(:first-child),
.input-group > .input-group-text:not(:first-child) {
    border-top-right-radius: var(--uac-radius-sm);
    border-bottom-right-radius: var(--uac-radius-sm);
}

.input-group > .form-control:not(:last-child),
.input-group > .input-group-text:not(:last-child) {
    border-top-left-radius: var(--uac-radius-sm);
    border-bottom-left-radius: var(--uac-radius-sm);
}

/* Top bar */
.uac-topbar {
    background: var(--uac-primary);
}

.uac-brand-sub {
    font-size: .72rem;
    opacity: .85;
}

/* Sub nav */
.uac-subnav {
    background: #fff;
    border-bottom: 1px solid var(--uac-border);
    --bs-navbar-padding-y: 0rem;
}

    .uac-subnav .nav-link {
        color: #4B5563;
        font-weight: 500;
        font-size: .9rem;
        padding: .9rem .25rem;
        border-bottom: 2px solid transparent;
    }

    .uac-subnav .nav-item {
        margin-right: 1.75rem;
    }

    .uac-subnav .nav-link.active,
    .uac-subnav .nav-link:hover {
        color: var(--uac-primary);
        border-bottom-color: var(--uac-primary);
    }

    .uac-subnav .navbar-toggler {
        border-color: var(--uac-border);
        padding: .35rem .6rem;
    }

        .uac-subnav .navbar-toggler:focus {
            box-shadow: 0 0 0 .15rem rgba(30, 79, 152, .25);
        }

    /* All dropdowns (Accounts, Catalog Data) get a visible border + soft shadow */
    .uac-subnav .dropdown-menu {
        border: 1px solid var(--uac-border);
        border-radius: 0;
        box-shadow: var(--uac-shadow);
        /*padding: 0.2rem 11px;*/
        margin-top: 3px !important;
        border-top-color: #1a5aba;
    }

    .uac-subnav .dropdown-item {
        padding: .5rem 1.25rem;
        font-size: .9rem;
    }

        .uac-subnav .dropdown-item:hover,
        .uac-subnav .dropdown-item:focus {
            background: #F0F4FA;
            color: var(--uac-primary);
        }

/* Catalog Data mega-menu */
.uac-megamenu {
    min-width: 420px;
    padding: 0;
}

    .uac-megamenu .megamenu-col {
        padding: .5rem 0.5rem 0rem;
    }

        .uac-megamenu .megamenu-col + .megamenu-col {
            border-left: 1px solid var(--uac-border);
        }

    .uac-megamenu .megamenu-heading {
        font-size: .72rem;
        font-weight: 700;
        color: var(--uac-primary);
        text-transform: uppercase;
        padding: .35rem 1.25rem;
        border-bottom: 1px solid #e7ebf0;
    }

/* Card wrapping the table */
.card {
    border-radius: var(--uac-radius-lg) !important;
}

    .card.shadow-sm {
        box-shadow: var(--uac-shadow) !important;
    }

/* Customers table */
.data-table {
    border-top: 1px solid var(--uac-border);
}

    .data-table thead th {
        font-size: .72rem;
        text-transform: uppercase;
        color: #6B7280;
        font-weight: 600;
        border-bottom: 1px solid var(--uac-border);
        padding: .9rem 1rem;
        background-color: #f5f7fa;
    }

    .data-table td {
        vertical-align: middle;
        font-size: .9rem;
        padding: .55rem 1rem;
        border-bottom: 1px solid var(--uac-border);
    }

        .data-table th:first-child,
        .data-table td:first-child {
            padding-left: 1.5rem;
        }

        .data-table th:last-child,
        .data-table td:last-child {
            padding-right: 1.5rem;
        }

.account-pin {
    font-weight: 600;
    color: #111827;
}

/* Status badges: tighter pill like the mock, not Bootstrap's default padding */
.badge.rounded-pill {
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .7rem;
}

/* Small square icon buttons (row actions) */
.btn-icon-sm {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--uac-radius-sm);
}

/* Dashboard: stat pills */
.stat-pill {
    border: 1px solid var(--uac-border);
    border-radius: .5rem;
    background: #fff;
}

    .stat-pill .fa-solid,
    .stat-pill .fa-regular {
        color: var(--uac-primary);
    }

    .stat-pill.pass .fa-solid {
        color: #198754;
    }

/* Dashboard: info cards */
.info-card {
    border: 1px solid var(--uac-border);
    border-radius: .6rem;
}

    .info-card .card-header {
        background: #fff;
        border-bottom: 1px solid var(--uac-border);
    }

    .info-card ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

        .info-card ul li {
            font-size: .85rem;
            padding: .15rem 0;
            color: #374151;
        }

            .info-card ul li span.label {
                color: #6B7280;
            }

.photo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: .35rem;
    background: #F1F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ADB5BD;
}

.last-updated {
    font-size: .72rem;
    color: #9CA3AF;
}

/* Pagination: spaced rounded-square buttons, not Bootstrap's default joined bar */
.uac-pagination {
    gap: .4rem;
    padding: 5px;
}

    .uac-pagination .page-item {
        margin: 0;
    }

    .uac-pagination .page-link {
        width: 2.1rem;
        height: 2.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: var(--uac-radius-md);
        border: 1px solid var(--uac-border);
        color: #374151;
        font-size: .85rem;
    }

        .uac-pagination .page-link:hover {
            background: #F0F4FA;
            border-color: var(--uac-border);
            color: var(--uac-primary);
        }

    .uac-pagination .page-item.active .page-link {
        background: var(--uac-primary);
        border-color: var(--uac-primary);
        color: #fff;
        box-shadow: none;
    }

    .uac-pagination .page-item.disabled .page-link {
        border: none;
        background: transparent;
        color: #9CA3AF;
        width: auto;
        padding: 0 .25rem;
    }

.card-header {
    background-color: #fff;
    border-bottom: 0px;
    padding: 15px;
}

.card-footer {
    background-color: #f5f7fa;
    border-top: 0px;
    padding: 15px;
}

.text-primary .btn:hover {
    color: #fff !important;
}

.custom-badge-active {
    background-color: #e7f6ed;
    color: #1a8a4a;
}

.custom-badge-inactive {
    background-color: #fbeaea;
    color: #c43d3d;
}

/* Edit Account modal */
.uac-modal {
    border-radius: var(--uac-radius-lg);
    overflow: hidden;
    border: none;
}

.uac-modal-header {
    background: var(--uac-primary);
    color: #fff;
    border-bottom: none;
    padding: 1rem 1.5rem;
    justify-content: space-between;
}

.btn-close-uac {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

    .btn-close-uac:hover {
        background: rgba(255,255,255,.25);
    }

/* Read-only "locked" fields with a lock icon */
.locked-input {
    position: relative;
}

    .locked-input .form-control {
        background: #F1F3F5;
        color: #374151;
        padding-right: 2.25rem;
        cursor: not-allowed;
    }

    .locked-input i {
        position: absolute;
        right: .75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        font-size: .85rem;
    }

/* Bordered sub-sections inside the modal (Primary Contact / Primary Ship To) */
.account-subcard {
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-md);
    background: #FAFBFC;
    padding: 1rem 1.25rem;
}

.account-subcard-title {
    font-weight: 600;
    font-size: .9rem;
}

.form-select, .form-control {
    font-size: 0.9rem;
}
.table {
    --bs-table-striped-bg: #f5f7fa !important;
}

/* Search field add/remove buttons (Model, Year, Sub Model, Engines) */
/*.field-btn {
    width: 2.35rem;
    flex-shrink: 0;
    border-radius: var(--uac-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.field-btn-add {
    background: var(--uac-primary);
    border-color: var(--uac-primary);
    color: #fff;
}


.field-btn-remove {
    background: #DC3545;
    border-color: #DC3545;
    color: #fff;
}*/


.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #F8F9FA;
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-sm);
    padding: .35rem .7rem;
    font-size: .82rem;
    color: #374151;
}

    .filter-chip i {
        cursor: pointer;
        color: #9CA3AF;
    }

        .filter-chip i:hover {
            color: #DC3545;
        }


.btn-info-outline {
    background: #EAF2FB;
    border: 1px solid var(--uac-primary);
    color: var(--uac-primary);
    font-size: .82rem;
    font-weight: 600;
}

    .btn-info-outline:hover {
        background: #DCEAF9;
        color: var(--uac-primary);
    }


.data-table-dark thead th {
    background: #10233F;
    color: #fff;
    border-bottom: none;
    font-weight: 600;
}

    .data-table-dark thead th .form-check-input {
        border-color: rgba(255,255,255,.5);
    }


.table-empty-state {
    text-align: center;
    color: #9CA3AF;
    padding: 4rem 1rem;
}

    .table-empty-state i {
        display: block;
        font-size: 2rem;
        color: #CBD5E1;
        margin-bottom: .75rem;
    }


.btn-bulk {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .55rem 1.1rem;
}

.uac-field-dropdown {
    width: 340px;
    max-width: 90vw;
    border: none;
    border-radius: var(--uac-radius-md);
    box-shadow: var(--uac-shadow);
    overflow: hidden;
}

.uac-field-dropdown-wide {
    width: 380px;
}

.uac-field-dropdown-header {
    background: var(--uac-primary);
    color: #fff;
    padding: .65rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

    .uac-field-dropdown-header i {
        cursor: pointer;
    }

.uac-field-dropdown-body {
    padding: 1rem;
}

.uac-field-dropdown-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-sm);
    padding: .5rem .75rem;
    margin-bottom: 1rem;
}

    .uac-field-dropdown-list .form-check-label {
        font-size: .85rem;
    }

.uac-selected-label {
    font-size: .7rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

/* Selected chips (Model/Engines picker) */
.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--uac-primary);
    color: var(--uac-primary);
    background: #EAF2FB;
    border-radius: 999px;
    padding: .2rem .6rem;
    font-size: .78rem;
}

    .selected-chip i {
        cursor: pointer;
    }

/* Add Attributes modal: warning banner + breakdown rows */
.uac-alert-warning {
    background: #FFF4E5;
    border: 1px solid #FFE1B3;
    border-radius: var(--uac-radius-sm);
    padding: .75rem 1rem;
    display: flex;
    gap: .6rem;
    font-size: .85rem;
    color: #7A5200;
}

    .uac-alert-warning i {
        color: #E8A33D;
        margin-top: .15rem;
    }

.breakdown-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-sm);
    padding: .65rem .9rem;
    margin-bottom: .5rem;
}

/* Delete Comments modal: danger banner */
.uac-alert-danger {
    background: #FDECEC;
    border: 1px solid #F5C2C2;
    border-radius: var(--uac-radius-sm);
    padding: .75rem 1rem;
    font-size: .85rem;
    color: #B02A2A;
}

/* Add Part modal: selectable part list */
.part-pick-list {
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-sm);
    overflow: hidden;
}

.part-pick-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--uac-border);
    cursor: pointer;
}

    .part-pick-item:last-child {
        border-bottom: none;
    }

    .part-pick-item:hover {
        background: #F8FAFC;
    }

    .part-pick-item input:checked ~ span,
    .part-pick-item:has(input:checked) {
        background: #EAF2FB;
    }

/* Numeric flag badge in the listing table */
.flag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-sm);
    font-size: .78rem;
    color: #6B7280;
}

/* Selected row highlight (checked checkbox rows) */
.table-row-selected {
    background: #EAF2FB;
}

/* Import Crosses modal: example table label + info banner */
.uac-example-label {
    font-size: .72rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
}

.uac-alert-info {
    background: #EAF2FB;
    border: 1px solid #C7DEF5;
    border-radius: var(--uac-radius-sm);
    padding: .75rem 1rem;
    display: flex;
    gap: .6rem;
    font-size: .85rem;
    color: #1E4F98;
}

.uac-alert-info i {
    margin-top: .15rem;
}

/* Compare Parts: Part A/B labels + swap icon */
.compare-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--uac-primary);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.compare-swap-icon {
    font-size: 1.2rem;
    color: #9CA3AF;
}

/* Comparison table: matched vs. different rows */
.table-row-match {
    background: #EAF7EE;
}

.match-yes {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #198754;
    font-weight: 600;
    font-size: .85rem;
}

.match-no {
    color: #9CA3AF;
    font-size: .85rem;
}

/* Teal "Submit Order" button (distinct from primary blue) */
.btn-submit-order {
    background: #0F5E5E;
    border: 1px solid #0F5E5E;
    color: #fff;
    font-weight: 600;
    padding: .55rem 1.5rem;
}

    .btn-submit-order:hover {
        background: #0C4B4B;
        border-color: #0C4B4B;
        color: #fff;
    }

/* Legend cards at the bottom of Ordering */
.legend-card {
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-md);
    padding: .75rem 1rem;
    height: 100%;
}

.legend-desc {
    font-size: .76rem;
    line-height: 1.3;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-red {
    background: #DC3545;
}

.dot-gray {
    background: #9CA3AF;
}

.dot-orange {
    background: #FD7E14;
}

.dot-blue {
    background: #1E4F98;
}

.dot-green {
    background: #198754;
}

.dot-yellow {
    background: #E8B93D;
}

.dot-purple {
    background: #7C4DBD;
}

.suggest-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #fff;
    border: 1px solid var(--uac-primary);
    color: var(--uac-primary);
    border-radius: 999px;
    padding: .20rem .5rem;
    font-size: .82rem;
    font-weight: 500;
}

.suggest-chip:hover {
    background: #EAF2FB;
}
.suggest-chip.active {
    background: #EAF2FB;
}
/* Match bootstrap-tagsinput to the UAC field style */
.bootstrap-tagsinput {
    width: 100%;
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    padding: .375rem .5rem;
    box-shadow: none;
}

    .bootstrap-tagsinput .tag {
        background: #EAF2FB;
        color: var(--uac-primary);
        border-radius: 999px;
        padding: .25rem .65rem;
        margin: .15rem;
        font-size: .8rem;
    }

    .bootstrap-tagsinput input {
        font-size: .9rem;
    }
    .h-250{
        height:250px;
    }
.vendor-pill {
    display: inline-block;
    background: #F1F3F5;
    color: #6B7280;
    border-radius: 999px;
    padding: .3rem .75rem;
    font-size: .78rem;
    font-weight: 600;
}

.vendor-pill-current {
    background: #EAF2FB;
    color: var(--uac-primary);
}

/* Add Spec modal: spec-name autocomplete results */
.spec-search-results {
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-sm);
    overflow: hidden;
}

.spec-search-item {
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--uac-border);
    cursor: pointer;
}

    .spec-search-item:last-child {
        border-bottom: none;
    }

    .spec-search-item:hover {
        background: #F8FAFC;
    }

    .spec-search-item.active {
        background: #EAF2FB;
        color: var(--uac-primary);
    }

.spec-search-item-desc {
    font-size: .78rem;
    color: #6B7280;
}

.spec-search-item.active .spec-search-item-desc {
    color: var(--uac-primary);
    opacity: .8;
}

/* Small "Numeric only" tag next to a field label */
.badge-tag-numeric {
    display: inline-block;
    background: #EAF7EE;
    color: #198754;
    border-radius: 999px;
    padding: .1rem .5rem;
    font-size: .68rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: .35rem;
}
/* Small tag pills inside comment picker rows (Add Comments modal) */
.comment-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: #EAF2FB;
    color: var(--uac-primary);
    border-radius: 999px;
    padding: .1rem .5rem;
    font-size: .72rem;
}

.dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

        .dropzone:hover {
            border-color: #0d6efd;
            background-color: #f8f9fa;
        }

        .dropzone .dz-message {
            margin: 0;
            font-size: 16px;
            color: #6c757d;
        }

            .dropzone .dz-message i {
                font-size: 32px;
                display: block;
                margin-bottom: 10px;
            }

            .dropzone .dz-preview {
                margin: 10px;
                border: 1px solid var(--uac-border);
                border-radius: var(--uac-radius-sm);
                padding: 5px;
            }

            .dropzone .dz-preview .dz-image {
                border-radius: 6px;
            }

            .dropzone .dz-preview .dz-details {
                background-color: #f8f9fa;
                padding: 10px;
                border-radius: 6px;
            }

            .dropzone .dz-preview .dz-remove {
                color: #dc3545;
                text-decoration: none;
                font-size: 12px;
            }

                .dropzone .dz-preview .dz-remove:hover {
                    text-decoration: underline;
                }
/*.dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
}

    .dropzone .dz-preview.dz-file-preview, .dropzone .dz-preview.dz-image-preview {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding: .75rem .9rem;
        border: 1px solid var(--uac-border);
        border-radius: var(--uac-radius-sm);
        background: #fff;
        margin: 0 0 .5rem 0;
        min-height: auto;
    }

.dz-file-top {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.dz-file-icon {
    font-size: 1.4rem;
    color: #6c757d;
    flex-shrink: 0;
}

.dz-file-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.dz-filename {
    font-size: .85rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-size {
    font-size: .75rem;
    color: #9CA3AF;
}

.dz-progress-percent {
    font-size: .8rem;
    color: #6B7280;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

.dz-icon-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #F1F3F5;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

    .dz-icon-btn:hover {
        background: #E5E7EB;
    }

.dz-progress-bar-full {
    height: 4px;
    width: 100%;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
}

.dz-upload {
    display: block;
    height: 100%;
    width: 0;
    background: var(--uac-primary);
    transition: width .2s ease;
}

.dz-error-message {
    display: none;
    color: #DC3545;
    font-size: .72rem;
}

.dz-file-error .dz-error-message {
    display: block;
}

.dz-file-error .dz-upload {
    background: #DC3545;
}

.dz-file-success .dz-progress-percent,
.dz-file-success .dz-pause-btn {
    display: none;
}

.dz-file-success .dz-progress-bar-full {
    display: none;
}*/


/* Profile dropdown in topbar */
.profile-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 999px;
    padding: .25rem .75rem .25rem .25rem;
    color: #fff;
}

.profile-btn:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.profile-btn::after {
    display: none;
}
/* hide default Bootstrap caret, keep it minimal */

.profile-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--uac-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-name {
    font-size: .85rem;
    font-weight: 600;
}

/* Numbered step badge (ACES File Generation) */
.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--uac-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Selectable option cards (Generation Scope) */
.option-card {
    display: block;
    border: 1px solid var(--uac-border);
    border-radius: var(--uac-radius-md);
    padding: 1rem 1.25rem;
    cursor: pointer;
}

    .option-card:hover {
        border-color: var(--uac-primary);
    }

    .option-card.selected {
        border-color: var(--uac-primary);
        background: #EAF2FB;
    }

.option-card-icon {
    font-size: 1.1rem;
    color: var(--uac-primary);
    margin-top: .1rem;
}

/* Success modal: centered, no header bar (different from .uac-modal) */
.uac-modal-success {
    border-radius: var(--uac-radius-lg);
    border: none;
}

.success-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #EAF7EE;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
}

.carousel-inner, .carousel-item {
    /*height: 470px;*/
    width: 450px;
}

/* Break the hero out of _Layout's <main> padding (py-4 px-3 px-md-4) so it runs edge-to-edge */
.hero-breakout {
    margin: -1.5rem -1rem 2rem;
}

/*@media (min-width: 768px) {
    .hero-breakout {
        margin: -1.5rem -1.5rem 2rem;
    }
}*/

/* Hero section */
.hero-search {
    background-image: url('../images/Front_screen_bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 660px;
    display: flex;
    align-items: center;
}

.hero-search-overlay {
    width: 100%;
    /*background: linear-gradient(180deg, rgba(11,42,74,.75), rgba(11,42,74,.55));*/
}

.hero-heading {
    font-size: 2.75rem;
    line-height: 1.15;
}

.hero-subtext {
    font-size: 1.05rem;
    opacity: .92;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Search bar */
.hero-search-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border-radius: 999px;
    padding: .5rem .5rem .5rem 1.25rem;
    max-width: 720px;
    box-shadow: var(--uac-shadow);
}

    .hero-search-bar input {
        flex: 1;
        border: none;
        outline: none;
        font-size: .92rem;
        min-width: 0;
    }

.hero-search-type {
    gap: .3rem;
    color: #374151;
    font-size: .85rem;
    padding: 0 .5rem;
    border-left: 1px solid var(--uac-border);
    cursor: pointer;
    white-space: nowrap;
}

.hero-icon-btn {
    border: none;
    background: none;
    color: #6B7280;
    font-size: 1.05rem;
    padding: .25rem;
}

    .hero-icon-btn:hover {
        color: var(--uac-primary);
    }

.hero-search-btn {
    border-radius: 999px;
    padding: .5rem 1.5rem;
    font-weight: 600;
}

/* Popular pills */
.hero-popular-label {
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    opacity: .9;
}

.hero-pill {
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 500;
    color: #1F2937;
}

.hero-pill:hover {
    background: #fff;
}

.select2-container--default .select2-selection--multiple {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: text;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid #dee2e6 1px;
    outline: 0;
}

/* Fullscreen image lightbox */
.uac-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,14,20,.95);
    z-index: 1080;
    display: none;
    flex-direction: column;
}

    .uac-lightbox.open {
        display: flex;
    }

.uac-lightbox-topbar {
    display: flex;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.uac-lightbox-nav-group {
    display: flex;
    gap: .5rem;
}

.uac-lightbox-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: .35rem;
    border: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .uac-lightbox-icon-btn:hover {
        background: rgba(255,255,255,.2);
    }

.uac-lightbox-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    min-height: 0;
}

.uac-lightbox-image {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 16/10;
    border-radius: .25rem;
}

.uac-lightbox-caption {
    position: absolute;
    left: 2rem;
    bottom: 1.5rem;
    background: rgba(10,14,20,.75);
    color: #fff;
    padding: .9rem 1.1rem;
    border-radius: .35rem;
    max-width: 280px;
}

.uac-lightbox-caption-sub {
    font-size: .8rem;
    color: #B8C2CC;
}

.uac-lightbox-caption hr {
    border-color: rgba(255,255,255,.2);
    margin: .5rem 0;
}

.uac-lightbox-thumbstrip {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1rem 1.25rem;
    flex-wrap: wrap;
}

.uac-lightbox-thumb {
    width: 70px;
    height: 50px;
    border-radius: .25rem;
    cursor: pointer;
    opacity: .55;
    border: 2px solid transparent;
}

    .uac-lightbox-thumb:hover {
        opacity: .85;
    }

    .uac-lightbox-thumb.active {
        opacity: 1;
        border-color: #fff;
    }

.secondary-contact-table th {
    font-size: .72rem;
    text-transform: uppercase;
    color: #6B7280;
    font-weight: 600;
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--uac-border);
}

.secondary-contact-table td {
    padding: .35rem .5rem;
    vertical-align: middle;
}

/* Stat card labels/numbers + colored icon badges */
.faq-stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    color: #6B7280;
    font-weight: 600;
}

.faq-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
}

.faq-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-stat-icon-blue {
    background: #EAF2FB;
    color: var(--uac-primary);
}

.faq-stat-icon-red {
    background: #FDECEC;
    color: #DC3545;
}

.faq-stat-icon-purple {
    background: #F1EAFB;
    color: #7C4DBD;
}

.faq-stat-icon-orange {
    background: #FFF4E5;
    color: #E8A33D;
}

/* Category nav-pills (sidebar) */
.category-nav .category-list-item-wrap {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--uac-border);
    border-left: 3px solid transparent;
}

.category-nav .category-list-item-wrap:last-child {
    border-bottom: none;
}

.category-nav .category-list-item-wrap:has(.category-nav-link.active) {
    background: #EAF2FB;
    border-left-color: var(--uac-primary);
}

.category-nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
    text-align: left;
    padding: .75rem 1rem;
    border-radius: 0;
    color: inherit;
    background: none;
}

    .category-nav-link:hover {
        background: #F8FAFC;
    }

    .category-nav-link.active {
        color: #346efd !important;
        background-color: #eaf2fb !important;
    }

.category-drag-handle {
    color: #CBD5E1;
    cursor: grab;
}

.category-actions {
    display: flex;
    gap: .25rem;
    padding-right: .75rem;
}


/* FAQ status badges */
.badge-faq-published, .badge-faq-draft {
    display: inline-block;
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 600;
}

.badge-faq-published {
    background: #EAF7EE;
    color: #198754;
}

.badge-faq-draft {
    background: #FFF4E5;
    color: #B36B00;
}

/* Decorative rich-text toolbar above the Answer textarea */
.rte-wrapper {
    border: 1px solid #DEE2E6;
    border-radius: .375rem;
    overflow: hidden;
}

.rte-toolbar {
    display: flex;
    gap: .25rem;
    padding: .4rem .6rem;
    background: #F8F9FA;
    border-bottom: 1px solid var(--uac-border);
}

    .rte-toolbar button {
        border: none;
        background: none;
        font-size: .8rem;
        color: #374151;
        padding: .2rem .5rem;
        border-radius: .25rem;
    }

        .rte-toolbar button:hover {
            background: #E9ECEF;
        }

.rte-textarea {
    border: none;
    border-radius: 0;
}

    .rte-textarea:focus {
        box-shadow: none;
    }

/* Below lg: collapsed hamburger menu, full-width stacked items, static (non-floating) dropdowns */
@media (max-width: 991.98px) {
    .uac-subnav .nav-item {
        margin-right: 0;
    }

    .uac-subnav .nav-link {
        padding: .65rem .5rem;
        border-bottom: none;
        border-left: 2px solid transparent;
    }

        .uac-subnav .nav-link.active {
            border-left-color: var(--uac-primary);
            background: #F0F4FA;
        }

    .uac-subnav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: #FAFBFC;
        width: 100%;
        margin-top: 0 !important;
    }

    .uac-megamenu {
        min-width: 100%;
    }

        .uac-megamenu .row {
            flex-direction: column;
        }

        .uac-megamenu .megamenu-col + .megamenu-col {
            border-left: none;
            border-top: 1px solid var(--uac-border);
        }
}

@media (min-width: 768px) {

    .data-table th:first-child,
    .data-table td:first-child {
        padding-left: 1rem;
    }

    .data-table th:last-child,
    .data-table td:last-child {
        padding-right: 1rem;
    }
}

.input-validation-error {
    border: 1px solid #ff0000 !important;
}

.select2.input-validation-error ~ .select2-container--default .select2-selection--single {
    border: 1px solid #ff0000 !important;
}

.select2.input-validation-error ~ .select2-container--default .select2-selection--multiple {
    border: 1px solid #ff0000 !important;
}

.btn-disabled {
    pointer-events: none !important;
    opacity: 50% !important;
}

#toast-container > div {
    opacity: .9 !important;
}

#toast-container > .toast-error {
    background-color: #BD362F !important;
    color: #fff !important;
    background-image: none !important;
}

#toast-container > .toast-success {
    background-color: #619b28 !important;
    color: #fff !important;
    background-image: none !important;
}

.select2-container .select2-selection--single {
    height: 34px !important;
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
}


    .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 34px !important;
    }


    .select2-container .select2-selection--single .select2-selection__arrow {
        height: 31px !important;
    }

#toast-container > .toast-warning {
    background-color: #e6a817 !important;
    color: #fff !important;
    background-image: none !important;
}