body {
    background-image: none;
}

#keywordsHelp {
    margin-top: 28px;
    --bs-alert-color:  var(--bs-info-text-emphasis);
    --bs-alert-bg: #cceffc;
    --bs-alert-border-color:  var(--content-primary);
    --bs-alert-link-color:  var(--content-primary);
}

#errorContainer {
    border-radius: 10px;
}

/*  The band is the search bar's frame, not a hero: the results are what the page is for, so it
    is kept to the space the heading and the bar actually need. The narrow widths below already
    trim it further. */
#headerContainer {
    background-color: #cceffc;
    height: auto;
    padding-top: 2.5em;
    padding-bottom: 2.5em;
}

:root {
    --v3-content-inset: 110px;
}

#opportunitySearchResults {
    padding: 0 60px;
    margin: 0 50px 60px 50px;
}

/* The v3 skin borders every .white-container; this page keeps its borderless panel. */
body.ct-layout-v3 #opportunitySearchResults {
    border: 0;
}

#findOpportunities {
    color: var(--content-primary);
    text-shadow: none;
    margin-top: 0;
}

#opportunitySearchResults h2, #opportunitySearchResults div.bodyCell ul li,
#useSavedSearch a, p.premiumRequiredHint {
    color: #737373;
}

#opportunitySearchResults #tableHeadingContainer span {
    font-weight: bold;
}

#tableHeadingContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#tableHeadingContainer #heading {
    text-align: center;
    margin-bottom: 30px;
}

#opportunitySearchResults #tableContainer div.headerRow div {
    border-spacing: 1em .5em;
    font-size: 18px;
    font-weight: bold;
    background-color: #19ACEE;
    color: white;
    padding: 5px 15px;
}

#opportunitySearchResults #tableContainer div.row {
    margin: 0;
}

#opportunitySearchResults #tableContainer div.bodyRow {
    align-items: center;
    border-bottom: 1px solid #C6C6C6;
}

#opportunitySearchResults #tableContainer div.bodyRow:hover {
    background-color: #d0eefc !important;
}

#opportunitySearchResults #tableContainer div.bodyRow div.bodyCell {
    padding: 15px;
}

#opportunitySearchResults #tableContainer div.bodyRow a {
    font-weight: bold;
}

#opportunitySearchResults #tableContainer div.bodyRow span, #opportunitySearchResults #tableContainer div.bodyRow a,
#opportunitySearchResults div.bodyCell ul li {
    line-height: 30px;
}

#opportunitySearchResults span.date_label_list {
    display: block;
}

#opportunitySearchResults div.bodyCell ul {
    list-style: none;
    margin-block: 0px;
    padding-inline-start: 0px;
}

#opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:nth-child(2) .mobileViewOnly {
    display: none;
}

/* The row above the results: sort on the left, saved searches on the right.
   margin-left: auto keeps the saved searches right-aligned when there is no sort. */
.resultsToolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* Way in to the searches already saved, right-aligned so it lines up with the
   result cards below and with the count in the filters sidebar. */
.mySavedSearchesContainer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.mySavedSearchesButton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #19ACEE;
    border-radius: 10px;
    color: var(--content-primary);
    font-size: 14px;
    font-weight: bold;
    padding: 8px 22px;
    text-decoration: none;
    white-space: nowrap;
}

.mySavedSearchesButton:hover,
.mySavedSearchesButton:focus {
    background: #e6f6fd;
    color: var(--content-primary);
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Saved searches. The banner says which one is open, and the panel below it
   appears once the filters no longer match what was saved.
   --------------------------------------------------------------------------- */
.savedSearchBannerRow {
    align-items: center;
    display: flex;
    gap: 16px;
    margin: 28px var(--v3-content-inset) 8px calc(var(--v3-content-inset) + 8px);
}

#savedSearchBanner {
    align-items: center;
    background: #D6F0FC;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #007EC3;
    display: flex;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: bold;
    gap: 10px;
    min-width: 0;
    padding: 8px 22px;
}

#savedSearchChangedPanel {
    align-items: flex-start;
    background: #FCE1F0;
    border-radius: 12px;
    display: flex;
    gap: 24px;
    margin: 0 var(--v3-content-inset) 16px;
    padding: 20px 24px;
}

.savedSearchChangedMain {
    flex: 1 1 auto;
    min-width: 0;
}

.savedSearchChangedTitle {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 2px;
}

.savedSearchChangedBody {
    font-size: 15px;
    margin: 0 0 16px;
}

.savedSearchChangedActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.savedSearchChangedPrimary,
.savedSearchChangedSecondary {
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 20px;
    white-space: nowrap;
}

.savedSearchChangedPrimary {
    background: var(--premium-pink, #EB0E8C);
    border: 1px solid var(--premium-pink, #EB0E8C);
    color: #fff;
}

.savedSearchChangedPrimary:hover {
    background: #c70c77;
    border-color: #c70c77;
}

.savedSearchChangedSecondary {
    background: #fff;
    border: 1px solid var(--premium-pink, #EB0E8C);
    color: var(--premium-pink, #EB0E8C);
}

.savedSearchChangedSecondary:hover {
    background: #fbd3e9;
}

.savedSearchChangedCancel {
    align-self: flex-end;
    color: var(--theme-text-grey, #545454);
    font-size: 14px;
    text-decoration: underline;
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   The save / edit dialog. The filters are deliberately absent: the sidebar
   beside the results is already showing them.
   --------------------------------------------------------------------------- */

#savedSearchSaveModal .modal-header,
#savedSearchSaveModal .modal-footer {
    border: none;
}

#savedSearchSaveModal .modal-footer {
    gap: 12px;
}

.savedSearchFieldLabel {
    display: block;
    font-size: 17px;
    font-weight: bold;
    margin: 24px 0 8px;
}

#savedSearchSaveModal .modal-body > label.savedSearchFieldLabel:first-of-type {
    margin-top: 0;
}

.savedSearchNameInput {
    border: 1px solid #c9d2d8;
    border-radius: 8px;
    font-size: 15px;
    height: 46px;
    line-height: normal;
    padding: 0 14px;
    width: 100%;
}

.savedSearchToggleGroup {
    display: flex;
    gap: 12px;
}

.savedSearchToggleOption {
    background: #fff;
    border: 1px solid #c9d2d8;
    border-radius: 8px;
    color: var(--theme-text-grey, #545454);
    flex: 1 1 0;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 10px;
}

.savedSearchToggleOption.active {
    background: #007EC3;
    border-color: #007EC3;
    color: #fff;
}

/* Raised in place of turning notifications on for a user without premium */
.savedSearchNotifyPremium {
    align-items: flex-start;
    background: #FCE1F0;
    border-radius: 12px;
    display: flex;
    gap: 14px;
    margin-top: 12px;
    padding: 16px 18px;
}

.savedSearchNotifyPremiumIcon {
    color: var(--premium-pink, #EB0E8C);
    flex-shrink: 0;
    font-size: 18px;
    margin-top: 2px;
}

.savedSearchNotifyPremiumMain {
    flex: 1 1 auto;
    min-width: 0;
}

.savedSearchNotifyPremiumTitle {
    color: #111827;
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 2px;
}

.savedSearchNotifyPremiumBody {
    color: var(--theme-text-grey, #545454);
    font-size: 14px;
    margin: 0 0 12px;
}

/* The shared upgrade button, brought down to the size of the dialog's other controls */
.savedSearchNotifyPremium button.signUp {
    background-color: var(--premium-pink, #EB0E8C) !important;
    border: 1px solid var(--premium-pink, #EB0E8C);
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    gap: 6px;
    padding: 8px 16px;
}

.savedSearchNotifyPremium button.signUp:hover {
    background-color: #c70c77 !important;
    border-color: #c70c77;
}

.savedSearchNotifyPremium button.signUp img {
    height: 16px;
}

.savedSearchShareRow {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.savedSearchShareRow .savedSearchShareLabel {
    margin: 0;
}

.savedSearchShareRow .form-check {
    margin: 0;
    min-height: 0;
    padding-left: 0;
}

.savedSearchShareRow .form-check-input {
    width: 3rem;
    height: 1.6rem;
    float: none;
    margin: 0;
    cursor: pointer;

    background-color: #fff;
    border-color: #adb5bd;
    /* Changes the colour of the knob on the switch to light grey */
    --bs-form-switch-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23737373'/%3E%3C/svg%3E");
}

.savedSearchShareRow .form-check-input:checked {
    background-color: var(--primary-blue, #19acee);
    border-color: var(--primary-blue, #19acee);
    /* Changes the colour of the knob on the switch to white */
    --bs-form-switch-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}

.savedSearchShareRow .form-check-input:focus {
    box-shadow: 0 0 0 .25rem #CCEEFB;
}

.savedSearchShareHint,
.savedSearchFootnote {
    color: var(--theme-text-grey, #545454);
    font-size: 14px;
    margin: 8px 0 0;
}

.savedSearchFootnote {
    margin-top: 28px;
}

@media (max-width: 767px) {
    .savedSearchBannerRow {
        align-items: stretch;
        flex-direction: column;
        margin-inline: 0;
    }

    #savedSearchChangedPanel {
        flex-direction: column;
        gap: 12px;
        margin-inline: 0;
    }

    .savedSearchChangedCancel {
        align-self: flex-start;
    }
}

/* Invitation to save the current search, sitting above the results it describes. The public search
   invites the user to sign up in the same place. */
#saveSearchPrompt,
#publicSearchPrompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--content-primary);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

#publicSearchPrompt {
    background: rgba(var(--premium-pink-rgb), 0.2);

    & .saveSearchPromptTitle,
    & .saveSearchPromptBody {
        color: var(--bs-body-color);
    }
}

.publicSearchPromptActions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.saveSearchPromptTitle {
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    margin: 0 0 4px;
}

.saveSearchPromptBody {
    color: #fff;
    font-size: 15px;
    margin: 0;
}

.saveSearchPromptButton {
    background: #19ACEE;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 22px;
    white-space: nowrap;
    flex-shrink: 0;
}

.saveSearchPromptButton:hover {
    background: #1596d0;
}

#tooManyResults {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #374151;
    font-size: 15px;
    margin: 20px 0 24px;
    text-align: left;

    & strong {
        color: var(--premium-pink, #EB0E8C);
    }
}

#tooManyResults .tooManyResultsIcon {
    color: var(--premium-pink, #EB0E8C);
    font-size: 22px;
    flex-shrink: 0;
}

.saveSearchLink {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.saveSearchLink i {
    font-size: 0.8em;
}

@media (max-width: 767px) {
    #saveSearchPrompt,
    #publicSearchPrompt {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Stacked, the buttons share the width rather than hugging the left edge. */
    .publicSearchPromptActions {
        width: 100%;

        & .ctaButton {
            flex: 1;
            min-width: 0;
        }
    }

    #searchFiltersSidebar {
        padding-top: 0;
        margin-top: 0;
    }
}

/*  Paging scrolls this back to the top of the viewport, which is where the pinned search bar is
    - stickySearchBar.js publishes its height on the root. Without the margin the first card of
    the new page comes to rest behind the bar. */
#searchResultsLayout {
    scroll-margin-top: calc(var(--stuckSearchBarHeight, 0px) + 16px);
}

#searchResultsContainer.searching {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity .15s;
}

#searchFiltersSidebar {
    padding-left: 60px;
    margin-left: 50px;
}

/* ---------------------------------------------------------------------------
   Result cards. Each opportunity is one card rather than a row across shared
   columns, so the layout is driven by the content instead of a column grid.
   --------------------------------------------------------------------------- */
.closedOpportunities {
    color: var(--theme-text-grey, #545454);
}

/* The last page the public search can reach: a stand-in for the results past it, behind sign-up. */
.lockedResults {
    position: relative;
    min-height: 320px;
    padding: 24px 0;
}

.lockedResultsPlaceholder {
    display: flex;
    flex-direction: column;
    gap: 12px;
    filter: blur(3px);

    & span {
        display: block;
        height: 10px;
        border-radius: 5px;
        background: #E5E7EB;
        width: 70%;
    }

    & span:nth-child(3n + 2) { width: 60%; }
    & span:nth-child(3n) { width: 75%; }
    & span:nth-child(3n + 1):not(:first-child) { margin-top: 32px; }
}

.lockedResultsCard {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(360px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 32px 24px;
    text-align: center;
}

.lockedResultsBody {
    margin: 0;
}

.opportunityCards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.opportunityCard {
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 20px;
    padding: 20px 24px;
}

.opportunityCard.closed {
    background: #e8e8e8;
}

.opportunityCardTop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.opportunityTitle {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.opportunityTitle a {
    color: #111827;
    text-decoration: none;
}

.opportunityTitle a:hover {
    text-decoration: underline;
}

.opportunityCardActions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.opportunityTag {
    background: #D9F5E3;
    color: #10693A;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* One tint per opportunity state, sharing the tag's shape and type. */
.opportunityTag.closingSoon {
    background: #fad6d6;
    color: #d34545;
}

.opportunityTag.open {
    background: #cdf1cc;
    color: #10730e;
}

.opportunityTag.closingDatePassed {
    background: #fde8c8;
    color: #8a4b00;
}

.opportunityTag.closed {
    background: #d9d9d9;
    color: #545454;
}

/* bookmark.jspf is shared with the V2 table, so its button chrome is stripped here
   rather than in the include. */
.opportunityBookmark .bookmark {
    background: none;
    border: none;
    padding: 0;
    color: #737373;
}

.opportunityMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    margin: 0;
}

/* Separator dots sit between the text items only, never after a region badge. */
.opportunityMeta .metaItem + .metaItem::before {
    content: "\2022";
    margin-right: 8px;
    color: #9CA3AF;
}

.regionBadge {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    padding: 2px 7px;
    border-radius: 6px;
    /* Any region without a colour of its own, and the locked stand-in on a non-premium row. */
    background: #6B7280;
}

.regionBadge.SA   { background: #D9534F; }
.regionBadge.WA   { background: #3A2E28; }
.regionBadge.NSW  { background: #16337A; }
.regionBadge.VIC  { background: #5C2D91; }
.regionBadge.QLD  { background: #4FC3E8; }
.regionBadge.TAS  { background: #1C8C8A; }
.regionBadge.NT   { background: #D68C4A; }
.regionBadge.ACT  { background: #0b5700; }
.regionBadge.NZ   { background: #1A1A1A; }
.regionBadge.AUS  { background: #de0d83; }

.opportunitySummary {
    font-size: 14px;
    line-height: 1.55;
    color: #6B7280;
    margin: 15px 0 0;
    /* Two lines then an ellipsis, so cards keep an even height whatever the description length. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 85%;
}

.opportunityBriefing {
    font-size: 13px;
    margin: 10px 0 0;
}

/* button.joinPremiumBtn is display:none by default and is revealed by the V2 table's hover swap
   (.bodyCell p:hover button), which the cards have no equivalent of. A card is a large target and
   hover reveals nothing on touch, so the upsell simply stays visible here. */
.opportunityMeta .joinPremiumBtn {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    min-height: 0;
}

/* Stands in for the card list when a search matched nothing. */
#noSearchResults {
    background: #F0F0F0;
    border: 2px solid #E5E7EB;
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
}

.noSearchResultsTitle {
    color: #111827;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
}

.noSearchResultsBody {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 575px) {
    .opportunityCard { padding: 16px; }
    .opportunityTitle { font-size: 17px; }
    .opportunityCardTop { flex-direction: column; }
    .opportunityCardActions { order: -1; align-self: flex-end; }
}

#useSavedSearch {
    width: 100%;
    padding: 0px 22%;
    display: flex;
    justify-content: flex-end;
}

#useSavedSearch a {
    cursor: pointer;
    font-weight: bold;
    height: 50px;
    width: 150px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.joinPremiumBtn {
    display: none;
    font-weight: normal;
    color: white;
    background: #EB0E8C;
    border: none;
    border-radius: 30px;
    min-height: 35px;
    font-size: 14px;
}

button.joinPremiumBtn:hover {
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: #EB0E8C;
}

button.joinPremiumBtn:active {
    --bs-btn-active-color: white;
    --bs-btn-active-bg: #EB0E8C;
}

p.premiumRequiredHint {
    margin: 0px;
    text-decoration: underline;
    min-height: 35px;
    width: fit-content;
}

.bodyCell p:hover button, .bodyCell p:not(:hover) span {
    display: inline;
}

.bodyCell p:not(:hover) button, .bodyCell p:hover span {
    display: none;
}

.bodyCell p:hover {
    text-decoration: none;
}

@media (max-width: 1200px) {
    #tenderSearchBar {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #findOpportunities {
        margin-top: 40px;
        margin-bottom: 30px;
    }

    #useSavedSearch {
        padding: 0px 20%;
        justify-content: center;
    }

    #useSavedSearch a {
        height: 60px;
        width: 150px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    #opportunitySearchResults {
        padding: 30px;
        margin: 30px 40px 60px 40px;
    }
}

@media (max-width: 991px) {
    #headerContainer {
        padding-top: 2em;
        padding-bottom: 2em;
    }

    #tenderSearchBar {
        margin-bottom: 10px;
    }

    #findOpportunities {
        font-size: 38px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    #opportunitySearchResults #tableContainer div.headerRow div {
        font-size: 16px;
    }

    #opportunitySearchResults #tableContainer div.bodyCell span, #opportunitySearchResults #tableContainer div.bodyCell a,
    #opportunitySearchResults div.bodyCell ul li, button.joinPremiumBtn, p.premiumRequiredHint {
        font-size: 14px;
    }

    #useSavedSearch a {
        height: 50px;
        width: 140px;
        font-size: 16px;
        font-weight: normal;
    }

    #opportunitySearchResults {
        margin-top: 25px;
    }
}

@media (max-width: 767px) {
    #opportunitySearchResults {
        padding: 0px;
        background: none;
        border-radius: unset;
        margin: 0px;
    }

    /* .row carries negative gutters, so once the desktop margins are dropped the layout needs its
       own padding or the cards run past the edge of the screen. */
    #searchResultsLayout {
        padding: 0 12px;
    }

    /* The cards are the page on a phone, so they take the full width rather than sitting inside
       the desktop gutters. */
    #opportunitySearchResults #tableHeadingContainer, #opportunitySearchResults #tableContainer {
        margin-left: 0;
        margin-right: 0;
    }

    #opportunitySearchResults #tableContainer div.headerRow {
        display: none;
    }

    #tableHeadingContainer #heading, #opportunitySearchResults #tableContainer div.bodyRow {
        background-color: white;
        border-radius: 15px;
        width: 100%;
        text-align: left;
        padding: 30px;
    }

    #opportunitySearchResults #tableContainer div.bodyRow {
        align-items: flex-start;
        margin-bottom: 30px;
    }

    #opportunitySearchResults div.paging {
        height: 60px;
    }

    body {
        margin-bottom: 56px;
    }

    h2 {
        font-size: 20px;
    }

    #opportunitySearchResults #heading span, #useSavedSearch a {
        font-size: 14px;
    }

    #opportunitySearchResults span.date_label_list {
        color: #19acee;
        font-weight: bold;
    }

    #opportunitySearchResults #tableContainer div.dateCell {
        display: flex;
        flex-wrap: wrap;
    }

    #opportunitySearchResults #tableContainer div.dateCell span {
        width: 50%;
    }

    #opportunitySearchResults #tableContainer div.dateCell span:first-child {
        order: 1;
    }

    #opportunitySearchResults #tableContainer div.dateCell span:nth-child(3) {
        order: 2;
    }

    #opportunitySearchResults #tableContainer div.dateCell span:nth-child(2) {
        margin-top: 15px;
        order: 3;
    }

    #opportunitySearchResults #tableContainer div.dateCell span:last-child {
        margin-top: 15px;
        order: 4;
    }

    #opportunitySearchResults #tableContainer div.dateCell div {
        margin-top: 8px;
        order: 4;
    }

    #opportunitySearchResults #tableContainer div.bodyRow span, #opportunitySearchResults #tableContainer div.bodyRow a {
        line-height: normal;
    }

    #opportunitySearchResults #tableContainer div.detailsCell ul li:first-child {
        margin-bottom: 15px;
    }

    #opportunitySearchResults #tableContainer div.detailsCell ul li:nth-child(2) {
        display: none;
    }

    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell {
        padding-bottom: 0px;
    }

    #opportunitySearchResults div.bodyCell ul li {
        line-height: 15px;
    }

    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:first-child {
        order: 1;
        width: 50%;
        padding: 0px;
        text-align: left;
    }

    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:nth-child(2) {
        order: 3;
        display: flex;
        padding-left: 0px;
        padding-right: 0px;
    }

    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:nth-child(2) ul {
        display: inline-block;
        width: 50%;
    }

    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:nth-child(2) .mobileViewOnly {
        display: inline-block;
        width: 50%;
    }

    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:nth-child(3) {
        order: 2;
        width: 50%;
        padding: 0px;
    }

    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:last-child {
        order: 4;
        padding-left: 0px;
        padding-right: 0px;
    }

    #useSavedSearch {
        margin-bottom: 30px;
    }

    #useSavedSearch a {
        width: 120px;
    }

    button.joinPremiumBtn {
        margin-top: -8px;
    }

    button.joinPremiumBtn, p.premiumRequiredHint,
    #opportunitySearchResults #tableContainer div.bodyRow div.bodyCell:nth-child(2) .mobileViewOnly {
        min-height: 30px;
    }

    #opportunitySearchResults #tableContainer div.bodyRow:hover {
        background-color: white!important;
    }

    #opportunitySearchResults #tableContainer div.dateCell button.joinPremiumBtn {
        height: 32px;
    }
}

@media (max-width: 575px) {
    #opportunitySearchResults #tableContainer div.bodyCell span, #opportunitySearchResults #tableContainer div.bodyCell a,
    #opportunitySearchResults div.bodyCell ul li, button.joinPremiumBtn, p.premiumRequiredHint {
        font-size: 12px;
    }

    #tenderSearchBar #advancedFiltersDropdown {
        padding: 4%;
    }

    #findOpportunities {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    #useSavedSearch a {
        height: 40px;
        width: 90px;
        font-size: 10px;
    }

    #opportunitySearchResults #tableContainer div.dateCell div {
        height: 35px;
    }
}

.opportunitySelectorDiv {
    margin-left: 100px;
    padding-bottom: 5px;
    margin-bottom: -47px;
}
.opportunitySelectorDiv a{
    background: white;
}
.opportunitySelectorDiv .nav-tabs a.nav-link.disabled.active {
    background: #EB0E8C;
}
.opportunitySelectorDiv .nav-tabs .nav-link.disabled {
    background: white;
    pointer-events: none;

}

.regionMap.CTH .mapRegion.aus {
    fill: #EB0E8C;
}
.regionMap.QLD .mapRegion.qld {
    fill: #EB0E8C;
}
.regionMap.NSW .mapRegion.nsw {
    fill: #EB0E8C;
}
.regionMap.ACT .mapRegion.act {
    fill: #EB0E8C;
}
.regionMap.VIC .mapRegion.vic{
    fill: #EB0E8C;
}
.regionMap.SA .mapRegion.sa {
    fill: #EB0E8C;
}
.regionMap.WA .mapRegion.wa {
    fill: #EB0E8C;
}
.regionMap.NT .mapRegion.nt {
    fill: #EB0E8C;
}
.regionMap.TAS .mapRegion.tas {
    fill: #EB0E8C;
}

.regionMap.NZ .mapRegion.nz {
    fill: #EB0E8C;
}

#opportunitySearchResults .sortOrderContainer {
    display: flex;
    align-items: center;
    gap: 10px;
}

#opportunitySearchResults .sortOrderContainer label {
    color: var(--content-secondary, #5f6b7a);
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

/* Framed like .mySavedSearchesButton so the toolbar reads as one row. style.css sizes
   bare selects, so height and line-height are reset here too. */
#opportunitySearchResults #sortOrder {
    background-color: #fff;
    border: 1px solid #19ACEE;
    border-radius: 10px;
    color: var(--content-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    line-height: 1.5;
    padding: 7px 38px 7px 14px;
}

#opportunitySearchResults #sortOrder:hover {
    background-color: #e6f6fd;
}

#opportunitySearchResults #sortOrder:focus {
    border-color: #19ACEE;
    box-shadow: 0 0 0 3px rgba(25, 172, 238, 0.25);
    outline: none;
}

/* Where the browser lets the open list be styled (Chromium's customizable select), give
   it the same rounded, light look; elsewhere the browser's own list is used. Bootstrap's
   arrow is kept, so the built-in picker icon is hidden to avoid showing two. */
@supports (appearance: base-select) {
    #opportunitySearchResults #sortOrder,
    #opportunitySearchResults #sortOrder::picker(select) {
        appearance: base-select;
    }

    #opportunitySearchResults #sortOrder::picker-icon {
        display: none;
    }

    #opportunitySearchResults #sortOrder::picker(select) {
        background: #fff;
        border: 1px solid #d5e9f5;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(16, 42, 67, 0.14);
        margin-top: 4px;
        padding: 4px;
        /* Always opens below the select: the browser would otherwise flip it above when
           the select is near the bottom of the viewport. */
        position-area: block-end span-inline-end;
        position-try-fallbacks: none;
    }

    #opportunitySearchResults #sortOrder option {
        border-radius: 6px;
        color: var(--content-primary);
        font-size: 14px;
        font-weight: 400;
        padding: 7px 12px;
    }

    #opportunitySearchResults #sortOrder option::checkmark {
        display: none;
    }

    #opportunitySearchResults #sortOrder option:hover,
    #opportunitySearchResults #sortOrder option:focus-visible {
        background: #e6f6fd;
        outline: none;
    }

    #opportunitySearchResults #sortOrder option:checked {
        font-weight: 600;
    }
}
