.bids-open-projects-page.bids-static-page {
    margin: -8px -8px 0;
    padding: 0 8px 18px;
}
 
.bids-open-projects-page .contact-map-form,
.bids-open-projects-page .contact-map-form .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.bids-open-projects-page .contact-map-form .row {
    margin: 0;
}

.bids-open-projects-page .contact-map-form .col-lg-12 {
    padding: 0;
}

.bids-open-projects-page .search-bar-bg {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 16px;
    margin-bottom: 0 !important;
    background: transparent;
}

.bids-open-projects-page .search-bar {
    position: relative;
    width: 445px;
    min-width: 445px;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--bs-line);
    border-radius: 7px;
    background: #fff;
}

.bids-open-projects-page .search-bar input {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
    height: 42px !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent;
    box-shadow: none !important;
    font-size: 11.5px !important;
    line-height: 42px;
}

.bids-open-projects-page .search-bar input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.bids-open-projects-page .search-bar svg {
    position: static !important;
    top: auto !important;
    left: auto !important;
    flex: 0 0 18px;
}

.bids-open-projects-page .filter-grid {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
}

.bids-open-projects-page .filter-grid > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1868a0;
    font-weight: 600;
    font-size: 11.5px;
}

.bids-open-projects-page .filter-icon {
    display: none;
}

.bids-open-projects-page .layout {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--bs-line);
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.bids-open-projects-page .layout > .sidebar {
    width: auto;
    min-width: 0;
    min-height: 850px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--bs-line);
    border-radius: 0;
    background: #fff;
}

.bids-open-projects-page .layout > .content {
    width: auto;
    min-width: 0;
    padding: 0;
    background: #fbfcff;
}

.bids-open-projects-page .layout > .sidebar .accordion-item {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--bs-line);
    border-radius: 0;
    box-shadow: none;
}

.bids-open-projects-page .bids-filter-panel > .accordion-item,
.bids-open-projects-page .bids-filter-panel > .filter-close {
    display: none !important;
}

.bids-open-projects-page .bids-static-filter-shell {
    min-height: 850px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
}

.bids-open-projects-page .bids-filter-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.bids-open-projects-page .bids-static-filter-shell .bids-filter-actions {
    position: static;
    margin: 0;
}

.bids-open-projects-page .bids-value-option {
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #171e40;
    font-weight: 500;
}

.bids-open-projects-page .bids-status-option .bids-count,
.bids-open-projects-page .bids-value-option .bids-count {
    flex: 0 0 auto;
    min-width: 31px;
    margin-left: auto;
    padding: 4px 8px;
    color: #667085;
    background: #f0f3f7;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
}

.bids-open-projects-page .bids-filter-title .bids-chevron {
    transition: transform .2s ease;
}

.bids-open-projects-page .bids-filter-section.is-collapsed .bids-filter-title .fa-plus {
    transform: none;
}

.bids-open-projects-page .bids-filter-section:not(.is-collapsed) .bids-filter-title .fa-plus:before {
    content: "\f068";
}

.bids-open-projects-page .layout > .sidebar .accordion-button {
    padding: 17px 14px;
    font-size: 11.5px;
    font-weight: 700;
}

.bids-open-projects-page .layout > .sidebar .accordion-body {
    padding: 0 14px 13px;
}

.bids-open-projects-page #jobList {
    padding: 0 12px;
}

.bids-open-projects-page #jobList > .freelancer-card:not(.bids-empty-card) {
    display: none !important;
}

.bids-open-projects-page .bids-card-status {
    margin-left: 0;
    flex: 0 0 auto;
    position: static;
    transform: none;
}

.bids-open-projects-page .bids-card-title-row {
    flex-wrap: wrap;
}

.bids-open-projects-page .bids-card-title-row h2 {
    white-space: normal;
}

.bids-open-projects-page .bids-buyer-block,
.bids-open-projects-page .bids-tags {
    transform: none;
}

.bids-open-projects-page .bids-tags {
    flex-wrap: wrap;
    padding-right: 0;
}

.bids-open-projects-page .bids-verified-icon,
.bids-open-projects-page .bids-tag.api {
    color: #087a5e;
}

.bids-open-projects-page .bids-tag.api {
    background: #e2f5ed;
}

.bids-open-projects-page .bids-origin-ribbon {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: -1px;
    min-height: 29px;
    padding: 7px 27px 7px 15px;
    color: #fff;
    border: 0;
    font-size: 10px;
    line-height: 15px;
    font-weight: 800;
    letter-spacing: .025em;
    white-space: nowrap;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 4px 9px rgba(50, 35, 110, .28);
}

.bids-open-projects-page .bids-origin-ribbon:before {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-left: 7px solid transparent;
}

.bids-open-projects-page .bids-origin-ribbon:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: -1px;
    width: 0;
    height: 0;
    border-top: 14.5px solid transparent;
    border-right: 11px solid #fff;
    border-bottom: 14.5px solid transparent;
}

.bids-open-projects-page .bids-origin-ribbon.pm-synced {
    color: #fff;
    background: #1868a0;
}

.bids-open-projects-page .bids-origin-ribbon.pm-synced:before {
    border-top-color: #125577;
}

.bids-open-projects-page .bids-origin-ribbon.composed {
    color: #fff;
    background: linear-gradient(105deg, #0f9f91 0%, #07877d 50%, #056b66 100%);
}

.bids-open-projects-page .bids-origin-ribbon.composed:before {
    border-top-color: #064e4a;
}

.bids-open-projects-page .bids-card > .bids-card-top {
    padding-top: 50px;
}

.bids-open-projects-page .bids-card-top {
    align-items: start;
}

.bids-open-projects-page .bids-info-grid {
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
}

.bids-open-projects-page .bids-info-item {
    align-self: start;
}

.bids-open-projects-page .bids-pill.awarded {
    color: #168447;
    background: #e5f8ed;
    border: 1px solid #bde8ce;
}

.bids-open-projects-page .bids-pill.closed {
    color: #626980;
    background: #eceef3;
}

.bids-open-projects-page .bids-card .open-bid-status {
    padding: 5px 10px;
    font-size: 9px;
}

.bids-open-projects-page .bids-card .bids-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.bids-open-projects-page .bids-card .bids-description.is-expanded {
    display: block;
}

.bids-open-projects-page .bids-application-toggle[aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}

.bids-open-projects-page .bids-application-toggle .fa-angle-down {
    margin-left: 8px;
    transition: transform .2s ease;
}

.bids-open-projects-page .bids-application-panel {
    display: none;
    padding: 10px 14px 12px;
    border-top: 2px solid #1868a0;
    border-bottom: 1px solid #cfe2ed;
    background: linear-gradient(135deg, #edf6fb 0%, #f7fbfd 52%, #eef6fa 100%);
    box-shadow: inset 0 5px 14px rgba(24, 104, 160, .08);
}

.bids-open-projects-page .bids-application-panel.is-open {
    display: block;
}

.bids-open-projects-page .my-application-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.bids-open-projects-page .my-application-item {
    position: relative;
    min-height: 48px;
    padding: 9px 12px;
    overflow: hidden;
    border: 1px solid #a9ccdf;
    border-radius: 8px;
    background: linear-gradient(145deg, #fff 0%, #f4fafd 100%);
    box-shadow: 0 4px 12px rgba(24, 104, 160, .14);
}

.bids-open-projects-page .my-application-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1868a0;
}

.bids-open-projects-page .my-application-label {
    display: block;
    margin-bottom: 3px;
    color: #315c73;
    font-size: 11px;
    font-weight: 600;
}

.bids-open-projects-page .my-application-value {
    color: #111936;
    font-size: 14px;
    font-weight: 800;
}

.bids-open-projects-page .owner-applicants-card {
    margin: 0;
}

.bids-open-projects-page .owner-applicants-heading h3 {
    color: #151a37 !important;
    opacity: 1 !important;
}

.bids-open-projects-page .owner-applicants-heading {
    color: #151a37;
}

.bids-open-projects-page .owner-applicants-heading .owner-applicants-count {
    color: #1868a0 !important;
}

.bids-open-projects-page .bids-results-summary {
    height: 43px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bs-line);
    background: #fff;
}

.bids-open-projects-page .bids-empty-card {
    margin: 12px 0;
    padding: 30px;
    border: 1px solid var(--bs-line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    color: #697087;
}

@media (max-width: 1050px) {
    .bids-open-projects-page .layout {
        grid-template-columns: 1fr;
    }

    .bids-open-projects-page .layout > .sidebar {
        display: none;
    }

    .bids-open-projects-page .filter-icon {
        display: flex;
    }
}

@media (max-width: 700px) {
    .bids-open-projects-page .search-bar {
        width: 100%;
        min-width: 0;
    }

    .bids-open-projects-page .my-application-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Interactive results and filters */
.bids-open-projects-page [hidden] { display: none !important; }

.bids-open-projects-page .bids-sort-tool {
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 9px 0 14px;
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #fff;
    color: var(--bs-deep);
    font-weight: 600;
    white-space: nowrap;
}

.bids-open-projects-page .bids-sort-dropdown {
    position: relative;
    min-width: 150px;
    color: inherit;
}

.bids-open-projects-page .bids-sort-dropdown > summary {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px 0 2px;
    border: 0;
    outline: 0;
    list-style: none;
    background: transparent;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bids-open-projects-page .bids-sort-dropdown > summary::-webkit-details-marker,
.bids-open-projects-page .bids-sort-dropdown > summary::marker {
    display: none;
    content: "";
}

.bids-open-projects-page .bids-sort-caret {
    color: #61708d;
    transition: transform .18s ease;
}

.bids-open-projects-page .bids-sort-dropdown[open] .bids-sort-caret {
    transform: rotate(180deg);
}

.bids-open-projects-page .bids-sort-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: -9px;
    width: 205px;
    padding: 7px;
    border: 1px solid rgba(15,42,84,.10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(19,33,60,.16);
}

.bids-open-projects-page .bids-sort-option {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #26304b;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.bids-open-projects-page .bids-sort-option:hover,
.bids-open-projects-page .bids-sort-option:focus-visible {
    outline: 0;
    background: #f0f5ff;
    color: #075ff0;
}

.bids-open-projects-page .bids-sort-option i {
    opacity: 0;
    color: #075ff0;
    font-size: 11px;
}

.bids-open-projects-page .bids-sort-option.is-selected {
    background: #eaf2ff;
    color: #075ff0;
}

.bids-open-projects-page .bids-sort-option.is-selected i {
    opacity: 1;
}

.bids-open-projects-page .layout {
    height: min(850px, calc(100vh - 190px));
    min-height: 560px;
}

.bids-open-projects-page .layout > .sidebar {
    min-height: 0;
    height: 100%;
}

.bids-open-projects-page .bids-results-scroll {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.bids-open-projects-page .bids-results-scroll::-webkit-scrollbar,
.bids-open-projects-page .bids-static-filter-shell::-webkit-scrollbar,
.bids-open-projects-page .bids-filter-scroll::-webkit-scrollbar,
.bids-open-projects-page .bids-filter-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.bids-open-projects-page .bids-static-filter-shell {
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bids-open-projects-page .bids-static-filter-shell .bids-filter-actions {
    position: static;
    flex: 0 0 auto;
    z-index: 3;
    margin: 0;
    padding: 12px;
    border-top: 1px solid var(--bs-line);
    background: #fff;
}

.bids-open-projects-page .bids-filter-content {
    max-height: 270px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bids-open-projects-page .bids-filter-search {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 12px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #fff;
    color: #697087;
}

.bids-open-projects-page .bids-filter-search input {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
    min-height: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bs-deep);
    font-size: 13px;
}

.bids-open-projects-page .bids-filter-search input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.bids-open-projects-page .bids-filter-search:focus-within {
    border-color: #075ff0;
    box-shadow: 0 0 0 4px rgba(7,95,240,.10);
}

.bids-open-projects-page .bids-value-option[hidden] { display: none !important; }

.bids-open-projects-page .bids-description-toggle {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #075ff0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none;
    appearance: none;
}

.bids-open-projects-page .bids-description-toggle i {
    font-size: 10px;
    transition: transform .18s ease;
}

.bids-open-projects-page .bids-description-toggle:hover i,
.bids-open-projects-page .bids-description-toggle:focus-visible i {
    transform: translateX(3px);
}

.bids-open-projects-page .bids-description-toggle:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.bids-description-open { overflow: hidden !important; }

#advancedSearchModal {
    position: fixed !important;
    z-index: 10070 !important;
    inset: 0 !important;
    display: none !important;
    width: auto !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 20px !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    background: rgba(15,28,52,.48) !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    backdrop-filter: blur(2px);
    box-sizing: border-box !important;
}

#advancedSearchModal.show {
    display: grid !important;
    place-items: center !important;
}

#advancedSearchModal .bids-advanced-dialog {
    position: relative !important;
    inset: auto !important;
    width: min(720px, calc(100% - 40px)) !important;
    max-width: 720px !important;
    min-height: 0 !important;
    margin: auto !important;
    transform: none !important;
    pointer-events: auto;
}

#advancedSearchModal .bids-advanced-content {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border: 1px solid rgba(15,42,84,.10) !important;
    border-radius: 16px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 24px 70px rgba(19,33,60,.24) !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
}

#advancedSearchModal .bids-advanced-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e5eaf2;
    background: #f8faff;
}

#advancedSearchModal .modal-title {
    margin: 0;
    color: #101632 !important;
    font-size: 18px;
    font-weight: 700;
}

#advancedSearchModal .btn-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: #eaf0fa !important;
    color: #26304b !important;
    font-size: 14px !important;
}

#advancedSearchModal .bids-advanced-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

#advancedSearchModal .bids-advanced-body::-webkit-scrollbar { display: none; width: 0; }
#advancedSearchModal .contact-us-form { padding: 20px !important; }
#advancedSearchModal .contact-us-form label {
    display: block;
    margin: 0 0 6px;
    color: #34425e;
    font-size: 12px;
    font-weight: 700;
}
#advancedSearchModal .contact-us-form .form-control {
    width: 100%;
    min-height: 42px;
    margin: 0 0 14px !important;
    padding: 0 12px !important;
    border: 1px solid #d6deea !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #162238 !important;
    box-shadow: none !important;
}
#advancedSearchModal .bids-advanced-field { min-width: 0; }
@media (min-width: 701px) {
    #advancedSearchModal .contact-us-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
        padding: 24px !important;
    }
    #advancedSearchModal .contact-us-form .form-control { margin-bottom: 0 !important; }
    #advancedSearchModal .bids-advanced-footer { grid-column: 1 / -1; }
    #advancedSearchModal .modal-btn { width: min(260px, 100%) !important; }
}
#advancedSearchModal .contact-us-form .form-control:focus {
    border-color: #075ff0 !important;
    box-shadow: 0 0 0 4px rgba(7,95,240,.10) !important;
}
#advancedSearchModal .bids-advanced-footer {
    display: flex;
    justify-content: center;
    padding: 4px 0 0;
}
#advancedSearchModal .modal-btn {
    width: 100%;
    height: 42px;
    justify-content: center;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 9px;
    background: #075ff0;
    box-shadow: none;
}

.bids-description-modal {
    position: fixed;
    z-index: 10060;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 28, 52, .48);
    backdrop-filter: blur(2px);
}

.bids-description-modal.is-open { display: flex; }

.bids-description-dialog {
    width: min(680px, calc(100vw - 32px));
    max-height: min(620px, calc(100dvh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 42, 84, .08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(19, 33, 60, .24);
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

.bids-description-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e5eaf2;
    background: #f8faff;
}

.bids-description-modal-label {
    display: block;
    margin-bottom: 6px;
    color: #075ff0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bids-description-modal-head h2 {
    margin: 0;
    color: #101632 !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.bids-description-modal-project {
    display: block;
    margin-top: 5px;
    color: #626980;
    font-size: 12px;
    font-weight: 600;
}

.bids-description-modal-close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eaf0fa;
    color: #26304b;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.bids-description-modal-close:hover,
.bids-description-modal-close:focus-visible {
    background: #dce7f8;
    color: #075ff0;
}

.bids-description-modal-body {
    min-height: 120px;
    padding: 24px;
    overflow-y: auto;
    color: #28324a;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bids-description-modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.bids-open-projects-page .bids-results-summary {
    position: sticky;
    z-index: 5;
    top: 0;
}

.bids-open-projects-page #jobList[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 12px;
}

.bids-open-projects-page #jobList[data-view="grid"] > .bids-card {
    min-width: 0;
    margin: 0;
    border-top: 1px solid #dce1ec;
    border-radius: 10px;
}

.bids-open-projects-page #jobList[data-view="grid"] .bids-card-top {
    display: block;
    padding: 50px 17px 17px;
}

.bids-open-projects-page #jobList[data-view="grid"] .bids-card-summary { padding-right: 0; }
.bids-open-projects-page #jobList[data-view="grid"] .bids-card-summary:after { display: none; }
.bids-open-projects-page #jobList[data-view="grid"] .bids-buyer-block { margin-top: 14px; }
.bids-open-projects-page #jobList[data-view="grid"] .bids-card-details { display: block; }
.bids-open-projects-page #jobList[data-view="grid"] .bids-tags { margin: 14px 0; padding: 0; }

.bids-open-projects-page #jobList[data-view="grid"] .bids-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.bids-open-projects-page #jobList[data-view="grid"] .bids-info-item { grid-template-columns: 18px minmax(0, 1fr); }
.bids-open-projects-page #jobList[data-view="grid"] .bids-info-value { grid-column: 2; }
.bids-open-projects-page #jobList[data-view="grid"] .bids-side-actions { position: static; padding: 0 17px 12px; }

.bids-open-projects-page #jobList[data-view="grid"] .bids-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 17px;
}

.bids-open-projects-page #jobList[data-view="grid"] .bids-metric {
    min-height: 76px;
    border-bottom: 1px solid var(--bs-line);
}

.bids-open-projects-page #jobList[data-view="grid"] .bids-metric:after { display: none; }

.bids-open-projects-page #jobList[data-view="grid"] .bids-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
}

.bids-open-projects-page #jobList[data-view="grid"] .bids-post-info { margin: 0; padding: 0; border: 0; }
.bids-open-projects-page #jobList[data-view="grid"] .bids-footer-actions { width: 100%; margin: 0; }
.bids-open-projects-page #jobList[data-view="grid"] .bids-detail-btn,
.bids-open-projects-page #jobList[data-view="grid"] .bids-submit-btn { min-width: 0; flex: 1; }

@media (max-width: 1050px) {
    .bids-mobile-filter-host {
        position: fixed;
        z-index: 10020;
        inset: 0 auto 0 0;
        width: min(320px, 88vw);
        height: 100dvh;
        overflow: hidden;
        background: #fff;
        box-shadow: 16px 0 35px rgba(16,22,50,.24);
        opacity: 1 !important;
        isolation: isolate;
    }

    .bids-mobile-filter-host:before {
        content: "Filters";
        position: absolute;
        z-index: 7;
        top: 14px;
        left: 16px;
        color: #101632;
        font-size: 15px;
        font-weight: 800;
    }

    .bids-mobile-filter-host > .bids-filter-panel.active {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background: #fff !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .bids-mobile-filter-host .bids-static-filter-shell {
        position: relative;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto;
        height: 100% !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .bids-mobile-filter-host .bids-filter-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .bids-mobile-filter-host .bids-filter-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .bids-mobile-filter-host .bids-filter-actions {
        position: static !important;
        flex: 0 0 auto;
        z-index: auto;
        margin: 0 !important;
        padding: 12px !important;
        border-top: 1px solid #e5eaf2;
        background: #fff !important;
    }

    .bids-mobile-filter-host .bids-clear {
        height: 44px;
        margin: 0;
        border-radius: 9px;
    }

    .bids-mobile-filter-host .bids-filter-title {
        min-height: 52px;
        padding: 13px 16px;
    }

    .bids-mobile-filter-host .bids-filter-title .bids-chevron {
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        margin: 0;
        line-height: 1;
    }

    .bids-open-projects-page .layout > .sidebar.active {
        display: block;
        position: fixed;
        z-index: 10020;
        inset: 0 auto 0 0;
        width: min(320px, 88vw);
        height: 100dvh;
        border-right: 1px solid var(--bs-line);
        box-shadow: 16px 0 35px rgba(16,22,50,.18);
    }

    .bids-open-projects-page .bids-filter-panel.active > .filter-close {
        position: absolute;
        z-index: 6;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        display: grid !important;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #eef1f8;
        color: var(--bs-deep);
        font-size: 22px;
        line-height: 1;
    }

    .bids-open-projects-page .filter-icon {
        width: 104px;
        min-width: 104px;
        min-height: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 12px;
        border: 0;
        border-radius: 8px;
        background: #143d73;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
    }

    .bids-open-projects-page .filter-icon svg {
        width: 18px;
        height: 18px;
        --icon-color: currentColor;
    }

    body.member-layout.bids-page-shell .member-mobile-profile-menu {
        right: 10px !important;
    }

    body.bids-page-shell.s3-filter-drawer-open .bids-filter-panel.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .bids-open-projects-page .bids-filter-panel.active .bids-static-filter-shell {
        padding-top: 42px;
    }

    .bids-open-projects-page .layout {
        height: calc(100dvh - 180px);
        min-height: 480px;
    }

    .bids-open-projects-page #jobList[data-view="grid"] { grid-template-columns: 1fr; }
    .bids-open-projects-page .search-bar-bg { flex-wrap: wrap; gap: 8px; }
    .bids-open-projects-page .bids-toolbar-spacer { display: none; }
}

@media (max-width: 700px) {
    .bids-open-projects-page.bids-static-page {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .bids-open-projects-page .contact-map-form,
    .bids-open-projects-page .contact-map-form .container,
    .bids-open-projects-page .contact-map-form .row,
    .bids-open-projects-page .contact-map-form .col-lg-12 {
        width: 100%;
        min-width: 0;
    }

    .bids-open-projects-page .layout {
        height: calc(100dvh - 235px);
        min-height: 420px;
    }

    .bids-open-projects-page .search-bar-bg {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 8px 0 10px;
    }

    .bids-open-projects-page .search-bar {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bids-open-projects-page .filter-grid {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: space-between;
    }
    .bids-open-projects-page .bids-sort-tool {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }
    .bids-open-projects-page .bids-view-switch { grid-column: 2; }
    .bids-open-projects-page .bids-sort-dropdown { min-width: 0; flex: 1; }
    .bids-open-projects-page .bids-results-summary { padding: 0 12px; }
    .bids-open-projects-page .bids-auto { display: none; }

    .bids-open-projects-page #jobList { padding: 0 6px; }
    .bids-open-projects-page #jobList[data-view="grid"] { padding-top: 6px; }
    .bids-open-projects-page .bids-card-top { padding: 14px; }
    .bids-open-projects-page .bids-buyer { white-space: normal; }
    .bids-open-projects-page .bids-side-actions { justify-content: flex-end; padding: 0 14px 12px; }
    .bids-open-projects-page .bids-metrics {
        margin: 0 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    .bids-open-projects-page .bids-metrics::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .bids-open-projects-page .bids-card-footer { padding: 12px 14px; }

    .bids-description-modal { padding: 12px; }
    .bids-description-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 13px;
    }
    .bids-description-modal-head { padding: 18px; }
    .bids-description-modal-head h2 { font-size: 17px; }
    .bids-description-modal-body { padding: 18px; font-size: 13px; }

    #advancedSearchModal {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 12px !important;
        place-items: center !important;
    }
    #advancedSearchModal .bids-advanced-dialog {
        position: relative !important;
        inset: auto !important;
        width: min(420px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        margin: 0 !important;
        transform: none !important;
    }
    #advancedSearchModal .bids-advanced-content { max-height: calc(100dvh - 24px); border-radius: 13px !important; }
    #advancedSearchModal .bids-advanced-header,
    #advancedSearchModal .contact-us-form { padding: 16px !important; }
}

@media (max-width: 480px) {
    #advancedSearchModal .bids-advanced-header {
        padding: 15px 16px !important;
    }
    #advancedSearchModal .modal-title { font-size: 17px; }
    #advancedSearchModal .contact-us-form label { font-size: 13px; }
    #advancedSearchModal .contact-us-form .form-control { min-height: 44px; }

    .bids-open-projects-page .filter-grid > a { font-size: 11px; }
    .bids-open-projects-page .bids-sort-tool { min-width: 0; padding-left: 10px; }
    .bids-open-projects-page .bids-sort-dropdown > summary { min-width: 0; padding-right: 4px; }
    .bids-open-projects-page .bids-sort-menu { right: -5px; width: min(205px, calc(100vw - 34px)); }
    .bids-open-projects-page .bids-view-btn { width: 40px; }
    .bids-open-projects-page .bids-results-summary { font-size: 10px; }
    .bids-open-projects-page .bids-card-title-row h2 { width: 100%; font-size: 15px; }
    .bids-open-projects-page .bids-info-grid { grid-template-columns: 1fr; }
    .bids-open-projects-page .bids-footer-actions { flex-direction: column; gap: 8px; }
    .bids-open-projects-page .bids-detail-btn,
    .bids-open-projects-page .bids-submit-btn { width: 100%; flex: 0 0 auto; }
    .bids-open-projects-page #jobList[data-view="grid"] .bids-info-grid { grid-template-columns: 1fr; }
    .bids-open-projects-page #jobList[data-view="grid"] .bids-metrics { grid-template-columns: 1fr 1fr; }
}

/* Member company-registration gate for Live Bids. */
.bids-open-projects-page .bids-detail-btn,
.bids-open-projects-page .bids-submit-btn {
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.bids-open-projects-page .bids-submit-btn i,
.bids-open-projects-page .bids-submit-btn svg { margin: 0; flex: 0 0 auto; }
body.bids-company-gate-open{overflow:hidden}
.bids-open-projects-page .bids-register-company-btn{min-width:190px}

.bids-company-gate-modal{position:fixed;z-index:100100;inset:0;display:grid;place-items:center;padding:20px}
.bids-company-gate-modal[hidden]{display:none!important}
.bids-company-gate-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(8,17,36,.66);backdrop-filter:blur(3px);cursor:default}
.bids-company-gate-dialog{position:relative;width:min(520px,calc(100vw - 40px));padding:34px;display:block;gap:0;border:0;border-radius:18px;background:#fff;color:#17213a;box-shadow:0 28px 80px rgba(4,13,31,.3);text-align:center}
.bids-company-gate-close{position:absolute;top:16px;right:16px;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;background:#f1f4f9;color:#5e687a;cursor:pointer}
.bids-company-gate-icon{width:66px;height:66px;margin:0 auto 17px;display:grid;place-items:center;border-radius:18px;background:#edf6fb;color:#1868a0;font-size:27px}
.bids-company-gate-kicker{display:block;margin-bottom:8px;color:#1868a0;font-size:10px;font-weight:800;letter-spacing:1.35px}
.bids-company-gate-dialog h2{margin:0;color:#121b31;font-size:24px;font-weight:800!important;line-height:1.3}
.bids-company-gate-dialog>p{margin:14px 0 0;color:#5f6b80;font-size:13px;line-height:1.7}
.bids-company-gate-footer{margin-top:24px;display:flex;justify-content:center;gap:12px}
.bids-company-gate-later,.bids-company-gate-signup{min-width:150px;height:43px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer}
.bids-company-gate-later{border:1px solid #d8deea;background:#fff;color:#4d586d}
.bids-company-gate-signup{border:0;background:#1868a0;color:#fff;box-shadow:0 8px 20px rgba(24,104,160,.22)}

/* Keep every themed bid action centred regardless of inherited button styles. */
.bids-open-projects-page .fa,
#interestBidModal .fa,
.bids-company-gate-modal .fa {
    font-family: FontAwesome !important;
    font-style: normal;
    font-weight: normal;
}
.bids-open-projects-page .bids-clear,
.bids-open-projects-page .bids-save-search,
.bids-open-projects-page .bids-detail-btn,
.bids-open-projects-page .bids-submit-btn,
.bids-open-projects-page .bids-register-company-btn,
.bids-open-projects-page .explore-bid,
#interestBidModal .bid-cancel-btn,
#interestBidModal .bid-submit-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    line-height: 1.2;
    vertical-align: middle;
}
.bids-open-projects-page .bids-clear,
.bids-open-projects-page .bids-save-search { display: flex; }
.bids-open-projects-page .bids-clear i,
.bids-open-projects-page .bids-save-search i,
.bids-open-projects-page .bids-detail-btn i,
.bids-open-projects-page .bids-submit-btn i,
.bids-open-projects-page .bids-register-company-btn i,
.bids-open-projects-page .explore-bid i,
#interestBidModal .bid-cancel-btn i,
#interestBidModal .bid-submit-btn i {
    margin: 0;
    flex: 0 0 auto;
    line-height: 1;
}
.bids-company-gate-signup:hover,.bids-company-gate-signup:focus{color:#fff;text-decoration:none;transform:translateY(-1px)}

@media(max-width:700px){
    .bids-company-gate-dialog{padding:28px 20px 22px}
    .bids-company-gate-dialog h2{font-size:20px}
    .bids-company-gate-footer{flex-direction:column-reverse}
    .bids-company-gate-later,.bids-company-gate-signup{width:100%}
}

/* Compact owner applications header in My Bids. */
.bids-open-projects-page .owner-application-panel { padding-top: 8px; }
.bids-open-projects-page .owner-application-panel .owner-applicants-card { margin-top: 0; }
.bids-open-projects-page .owner-application-panel .owner-applicants-heading { justify-content: flex-end; padding: 6px 14px; gap: 0; }
.bids-open-projects-page .owner-application-panel .owner-applicants-count { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 12px; background: #edf6fb; color: #1868a0; font-size: 12px; line-height: 1.4; white-space: nowrap; }

/* Workspace actions; modal submit inherits the shared Cancel/View Details theme. */
.bids-open-projects-page .bids-clear,
.bids-open-projects-page .bids-save-search,
.bids-open-projects-page .bids-detail-btn,
.bids-open-projects-page .bids-submit-btn:not(.bid-submit-btn),
.bids-open-projects-page .bids-register-company-btn,
.bids-open-projects-page .explore-bid,
.bids-company-gate-signup {
    border-color: #1868a0 !important;
    background: #1868a0 !important;
    box-shadow: 0 4px 10px rgba(24, 104, 160, .2) !important;
    color: #fff !important;
    animation: none !important;
}
.bids-open-projects-page .bids-clear:not(:disabled):hover,
.bids-open-projects-page .bids-save-search:not(:disabled):hover,
.bids-open-projects-page .bids-detail-btn:not(:disabled):hover,
.bids-open-projects-page .bids-submit-btn:not(.bid-submit-btn):not(:disabled):hover,
.bids-open-projects-page .bids-register-company-btn:not(:disabled):hover,
.bids-open-projects-page .explore-bid:not(:disabled):hover,
.bids-company-gate-signup:hover {
    border-color: #125577 !important;
    background: #125577 !important;
    box-shadow: 0 6px 14px rgba(24, 104, 160, .24) !important;
}

/* Workspace-blue chat icons across project cards and received bids. */
.bids-open-projects-page .bids-chat-btn,
.bids-open-projects-page .applicant-actions .applicant-action-chat {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important;
    padding: 0 !important; border: 1px solid #176c99 !important; border-radius: 7px !important;
    background: #176c99 !important; color: #fff !important; box-shadow: none !important;
    flex-shrink: 0; line-height: 1 !important;
}
.bids-open-projects-page .bids-chat-btn i,
.bids-open-projects-page .applicant-action-chat i { font-size: 17px; pointer-events: none; }
.bids-open-projects-page .bids-chat-btn:hover,
.bids-open-projects-page .applicant-actions .applicant-action-chat:hover { background: #125577 !important; }
.bids-open-projects-page .bids-chat-btn:focus-visible,
.bids-open-projects-page .applicant-actions .applicant-action-chat:focus-visible { outline: 2px solid #176c99; outline-offset: 3px; }

/* Align the action label after the unchanged 32px chat icon and 7px gap. */
.bids-open-projects-page .owner-applicants-table .owner-action-heading { display: block; margin-left: 39px; }
.bids-open-projects-page .owner-applicants-table .applicant-actions { align-items: center; }

/* Company public website opt-in, beside the source ribbon in My Bids. */
.bids-open-projects-page .bids-public-control {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #17699d;
    cursor: pointer;
}
.bids-open-projects-page .bids-public-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #17699d;
    cursor: pointer;
}
.bids-open-projects-page .bids-public-checkbox:disabled { cursor: wait; opacity: .6; }
