/* ==========================================================================
   Base layout and theme
   ========================================================================== */

body,
.content-wrapper {
    background-color: #f8f8f8 !important;
}

.footer {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}

#navbar {
    background: #f8f8f8 !important;
}

.box-theme,
.nav-tabs > li.active {
    border-top-color: #021e1e !important;
}

.register-line {
    background-color: #021e1e;
}

.tab-content {
    border: 1px solid #eee;
}

.ErrorListContainer {
    padding: 0;
    margin-bottom: 20px;
}


/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn-default {
    background-color: #021e1e !important;
    color: #fff;
    border: 1px solid #021e1e !important;
}

.btn-default:hover,
.btn-default:focus {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

a[href="https://www.in-tend.co.uk/legal"] {
    color: #000 !important;
}


/* ==========================================================================
   Main navigation
   ========================================================================== */

.nav.navbar-nav li a {
    color: #505050 !important;
}

.nav.navbar-nav li a:hover {
    text-decoration: none !important;
}

.nav.navbar-nav li.active a .menu-item-pad,
.nav.navbar-nav li a:hover .menu-item-pad,
.nav.navbar-nav li a:focus .menu-item-pad,
.nav.navbar-nav li.active a:after,
.nav.navbar-nav li a:hover:after,
.nav.navbar-nav li a:focus:after {
    color: #505050;
    background-color: #f8f8f8 !important;
    text-decoration: underline !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .open > a,
.nav.navbar-nav li.active a,
.nav.navbar-nav li a:hover,
.nav.navbar-nav li a:focus {
    background: transparent !important;
}


/* ==========================================================================
   Tabs
   ========================================================================== */

li:not(.active) > .ui-tabs-anchor {
    background-color: #efefef !important;
}

.nav-tabs-custom > .nav-tabs > li.active {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
    border-left: 1px solid #eee;
}


/* ==========================================================================
   Hidden elements and one-off content changes
   ========================================================================== */

/* Hacks */
#buyerprofiletext,
#help,
#MainContent_articleHolder_ctl01_partlogin_ctl01_btnincommunity .ui-button-text,
.home-center .section-text p strong,
.home-center .section-text p em,
.home-center .section-text ul,
#Emailwarning #welcometext p + p,
#tenders .menu-item-pad,
#tenders .menu-icon,
#contracts,
#register .menu-icon,
#messages {
    display: none;
}

#MainContent_articleHolder_ctl01_partlogin_ctl01_btnincommunity:after {
    content: "In-tend Summit";
}


/* ==========================================================================
   Email warning panel
   ========================================================================== */

#content-dmbc:has(#Emailwarning) {
    display: flex;
    flex-direction: column-reverse;
}

#Emailwarning {
    background: #fff !important;
    color: #000 !important;
    margin-top: 20px;
}

#Emailwarning .wecolmetext {
    padding: 10px 20px;
}

#Emailwarning #welcometext:after {
    content: "To ensure you receive important updates regarding your Procurement Standards Awards submission, including confirmation emails and communications from the awards team, please add @in-tendorganiser.co.uk to your safe senders list and check that your spam filter settings allow messages from this domain.\a\a This will help ensure you do not miss key information about your entry.";
}


/* ==========================================================================
   Home page section content restructuring
   ========================================================================== */

.home-center #section {
    border-radius: 6px;
    overflow: hidden;
}

.home-center .section-text {
    display: flex;
    flex-direction: column;
}

.home-center .section-text > * {
    order: 3;
}

.home-center .section-text:before,
.home-center .section-text:after,
.home-center .section-text p:first-of-type + p:before,
.home-center .section-text p:first-of-type + p:after,
.home-center .section-text p:first-of-type + p ~ p:before,
.home-center .section-text p:first-of-type + p ~ p:after,
.home-center .section-text p:first-of-type + p ~ p ~ p:before,
.home-center .section-text p:first-of-type + p ~ p ~ p:after,
#Emailwarning #welcometext:after {
    white-space: break-spaces;
}

.home-center .section-text p:first-of-type + p:after,
.home-center .section-text p:first-of-type + p ~ p:after,
.home-center .section-text p:first-of-type + p ~ p ~ p:after,
#welcometext:after {
    display: block;
    margin-top: 3px;
}

.home-center .section-text:before,
.home-center .section-text p:first-of-type + p:before,
.home-center .section-text p:first-of-type + p ~ p:before,
.home-center .section-text p:first-of-type + p ~ p ~ p:before {
    font-weight: bold;
}

.home-center .section-text .font-20.bold.padding-top-20 {
    order: 1;
    text-wrap: balance;
    line-height: 1;
}

.home-center .section-text .font-20.bold.padding-top-20:after {
    content: "Here you can explore the award categories, review the assessment criteria and prepare your entry for consideration by our judging panel. We encourage you to read the guidance carefully before drafting your responses.\a\a";
    order: 2;
    display: block;
    margin-top: 20px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.42857143;
}

.home-center .section-text p:first-of-type + p:before {
    content: "What you can do on this platform:\a";
}

.home-center .section-text p:first-of-type + p:after {
    content:
        "\2022  View all award categories\a"
        "\2022  Access detailed assessment criteria and guidance notes\a"
        "\2022  Complete and save your responses online\a"
        "\2022  Upload supporting evidence where required\a"
        "\2022  Edit and refine your submission at any time before the deadline\a"
        "\2022  Submit your final entry securely\a\a"
        "You may return to your submission as often as needed. Your work can be saved and updated right up until the closing date.\a\a";
}

.home-center .section-text p:first-of-type + p ~ p:before {
    content: "Submission deadline:\a";
}

.home-center .section-text p:first-of-type + p ~ p:after {
    content: "All entries must be submitted by 1st May 2026. You may edit your application at any point before this deadline. After 1st May, the system will close and no further amendments can be made, so please ensure your submission is finalised in good time.\a\a";
}

.home-center .section-text p:first-of-type + p ~ p ~ p:before {
    content: "Getting started:\a";
}

.home-center .section-text p:first-of-type + p ~ p ~ p:after {
    content:
        "Browse the available award categories and select the one or ones you wish to enter. If you are a new user, you will need to register your organisation. Once registered, you will receive your login details by email. Returning users can log in to begin or continue their submission.\a\a"
        "If you require assistance with the platform or have any questions about the awards, please refer to the help section or contact the awards team. We look forward to receiving your entry.";
}

/* Logged-in state */

body:has(#logout) .home-center .section-text .font-20.bold.padding-top-20:after {
    content: "You are now logged in to the Procurement Standards Awards entry platform. Please use this area to review, refine and complete your submission before the closing date. Ensure that your responses clearly address the assessment criteria and provide evidence of measurable impact.\a\a\a\a";
}

body:has(#logout) .home-center .section-text p:first-of-type + p:before {
    content: "Before you submit:\a";
}

body:has(#logout) .home-center .section-text p:first-of-type + p:after {
    content: "All entries must be submitted by 1st May 2026. Draft entries will not be reviewed by the judging panel. Once the deadline has passed, no further amendments can be made.";
}


/* ==========================================================================
   Tenders and registration labels/icons
   ========================================================================== */

#tenders .dropdown-toggle:before,
#register a[href*="Registration"]:before {
    font-family: FontAwesome;
    content: "\f091";
    margin-right: 3px;
    font-weight: normal;
    text-decoration: none !important;
}

#tenders .dropdown-toggle:after {
    content: "Awards";
}

#register a[href*="Registration"]:before {
    content: "\f040";
}

#MainContent_articleHolder_ctl01_partlogin_ctl01_btnForgottenDetails {
    padding-right: 0;
    font-size: 12px;
    text-align: right;
}


/* ==========================================================================
   Menu item text replacements
   ========================================================================== */

#sm_14 {
    position: relative;
}

#sm_10 span,
#sm_11 span,
#sm_12 span,
#sm_13 span,
#sm_14 span,
#sm_13,
#sm_15,
#sm_19 span,
body:has(#register) [value="View Details"] {
    display: none;
}

#sm_14:before {
    content: "Enter Awards";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px 20px;
    background: #fff;
}

body:has(#register) #sm_14:before {
    content: "Award Details";
}

#sm_10:hover,
#sm_10:focus,
#sm_11:hover,
#sm_11:focus,
#sm_12:hover,
#sm_12:focus,
#sm_13:hover:before,
#sm_13:focus:before,
#sm_14:hover,
#sm_14:focus,
#sm_15:hover,
#sm_15:focus {
    text-decoration: underline !important;
    background-color: #f4f4f5 !important;
}


/* ==========================================================================
   Registration and account tabs
   ========================================================================== */

body:has(#register) :is(#BusinessCategoriesTab, #CompanyClassificationTab, #DocumentsTab),
body:has(#logout) :is(#BusinessCategoriesTab, #DocumentsTab) {
    visibility: hidden !important;
}

body:has(#register) #CompanyDetailstabs .nav-tabs,
[aria-controls="BusinessCategoriesTab"],
[aria-controls="DocumentsTab"],
[aria-controls="BankingTab"],
[aria-controls="InsuranceTab"],
[aria-controls="OtherTab"],
[aria-controls="AccreditationTab"],
[aria-controls="CompanyClassificationTab"],
[aria-controls="tab_Correspondence"] {
    display: none !important;
}

body:has(#register) #CompanyDetailstabs .tab-content {
    display: contents;
}


/* ==========================================================================
   Company and contact details cleanup
   ========================================================================== */

#CompanyTab .row:has(#txtOtherName),
#CompanyTab .row:has(#txtNoOfStaff),
#CompanyTab .row:has(#txtNoOfContractors),
#CompanyTab .row:has(#chkVATApplicable),
#CompanyTab .row:has(#chkVATRegistered),
#CompanyTab .row:has(#txtVATNumber),
#CompanyTab .row:has(#rdoCompanyRefType1),
#CompanyTab .row:has(#txtCompanyNumber),
#CompanyTab .row:has(#txtReference),
#CompanyTab .row:has(#txtCompanyAccountsYearEnd),
#CompanyTab .row:has(#txtConstructionLine),
#CompanyTab .row:has(#txtParentCompany),
#CompanyTab .row:has(#txtFax),
#CompanyTab .row:has(#txtCompanyEmail),
#CompanyTab .row:has(#txtEnquiriesEmail),
#CompanyTab .row:has(#txtHealthAndSafetyEmail),
#contactDetailsdiv .row:has(#chkStopProjectCorrespondence),
#MainContent_articleHolder_ctl01_pnlWarning,
#MainContent_articleHolder_ctl01_divFilter,
.row:has(#txtFax),
.row:has(#txtHealthAndSafetyEmail) {
    display: none;
}

#contactDetailsdiv {
    display: flex;
    flex-direction: column;
}

#contactDetailsdiv .row:has(#btnChangePasswordModal) {
    order: 1;
    justify-content: flex-end;
    padding-right: 15px;
}


/* ==========================================================================
   Project and document tab relabelling
   ========================================================================== */

[href="#tab_Project"] span,
[id^="HowToContent"],
[id*="partServerTime"],
[id^="divStageDetails"] .box-header,
[id^="StageLots"] .box-header {
    display: none;
}

[href="#tab_Project"]:before {
    content: "Details";
}

#DocumentsReceived th:first-child,
[id^="tblDocsReturn"] th:first-child {
    position: relative;
}

#DocumentsReceived th:first-child:before,
[id^="tblDocsReturn"] th:first-child:before {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #fff;
}

#DocumentsReceived th:first-child:before {
    content: "Submission instructions";
}

[id^="divStageDetails"]:before,
[id^="StageLots"]:before {
    color: #444;
    display: block;
    padding: 20px 20px 0;
    font-weight: bold;
}

[id^="divStageDetails"]:before {
    content: "Award Details";
    font-size: 20px;
}

[id^="StageLots"]:before {
    content: "Award Categories";
    font-size: 14px;
}


/* ==========================================================================
   Questionnaire Table th rewrites
   ========================================================================== */

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 1)"]) th:first-child:before {
    content: "Supplier Performance Benchmark Award";
}

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 2)"]) th:first-child:before {
    content: "Strategic Buyer Partnership Award";
}

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 3)"]) th:first-child:before {
    content: "Innovation and Value Advancement Award";
}

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 4)"]) th:first-child:before {
    content: "Service Performance Award";
}

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 5)"]) th:first-child:before {
    content: "Sustainable Procurement Leadership Award";
}

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 6)"]) th:first-child:before {
    content: "Enduring Partnership Award";
}

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 7)"]) th:first-child:before {
    content: "Constructive Engagement Award";
}

[id^="tblDocsReturn"]:has([onclick="javascript:ViewQuestionnaire(1, '1', 8)"]) th:first-child:before {
    content: "Social Value Contribution Award";
}

#tbodyLots1 tr:nth-child(1) td:first-child:before,
#tbodyLots1 tr:nth-child(3) td:first-child:before,
#tbodyLots1 tr:nth-child(4) td:first-child:before {
	content:'[Supplier Award] ';
}
#tbodyLots1 tr:nth-child(2) td:first-child:before,
#tbodyLots1 tr:nth-child(5) td:first-child:before,
#tbodyLots1 tr:nth-child(6) td:first-child:before,
#tbodyLots1 tr:nth-child(7) td:first-child:before {
	content:'[Buyer Award] ';
}
#tbodyLots1 tr:nth-child(8) td:first-child:before {
	content:'[Buyer or Supplier Award] ';
}


/* ==========================================================================
   Tenders page layout overrides
   ========================================================================== */

body:has(#tenders.active) .content-wrapper > .content > #content-dmbc > .row > .col-md-12 > .box:before {
    content: "Awards";
    color: #444;
    display: block;
    padding: 20px 20px 0;
    font-size: 20px;
    font-weight: bold;
}

body:has(#tenders.active)
    :is(
        .content-wrapper > .content > #content-dmbc > .row > .col-md-12 > .box > .box-header,
        #divSearchProjects,
        #filters,
        .nav-tabs,
        li:has(#ui-id-13)
    ) {
    display: none !important;
}

body:has(#tenders.active) #divProjectList {
    width: 100%;
}

body:has(#tenders.active) :is(#containerProjects .box, .tab-content, #tab_tabStage1) {
    display: contents !important;
}

body:has(#tenders.active) #containerProjects .box-footer {
    border-radius: 0;
    padding-bottom: 3rem;
}

h3:has(#tendermode),
body:has(#tenders.active) :is(.col-md-12.text-center > h3, .col-md-12.text-center > p, .col-md-12.text-center > button) {
    display: none;
}

body:has(#tenders.active) .col-md-12.text-center:before {
    content: "No results found. If you believe this is an error, please contact us at awards@procurementstandards.com";
    display: block;
    margin: 40px 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .navbar-toggle .icon-bar {
        background-color: #505050 !important;
    }

    #logo img {
        width: 775px;
        max-width: 160%;
    }

    #logo {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
        overflow: hidden;
    }

    #navbar {
        position: absolute;
        top: 28px;
        background: transparent !important;
    }

    .navbar-collapse {
        background: #f8f8f8 !important;
    }

    #InSupply {
        display: none;
    }
}