﻿/* ============================================================
   AWARDED TENDERS
============================================================ */

.awarded-tender-page {
    padding: 32px 0 55px;
    background: var(--surface-primary, #FFFFFF);
    color: var(--text-primary, #150202);
}


/* ============================================================
   HEADER
============================================================ */

.awarded-page-header {
    margin-bottom: 24px;
}


.awarded-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brand-700, #A72626);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.awarded-page-header h1 {
    margin: 0 0 8px;
    color: var(--brand-900, #771D1D);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}


.awarded-page-header p {
    margin: 0;
    color: var(--text-secondary, #606060);
    font-size: 16px;
    line-height: 1.6;
}


/* ============================================================
   FILTER
============================================================ */

.awarded-filter {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid var(--border-light, #C6C6C6);
    background: var(--surface-secondary, #EBEAEA);
}


.awarded-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}


.filter-field {
    width: min(100%, 360px);
}


    .filter-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--text-primary, #150202);
        font-size: 15px;
        font-weight: 600;
    }


    .filter-field .form-select {
        width: 100%;
        min-height: 44px;
        border: 1px solid var(--border-medium, #8E8E8E);
        border-radius: 4px;
        background-color: #fff;
        color: var(--text-primary, #150202);
    }


        .filter-field .form-select:focus {
            border-color: var(--brand-700, #A72626);
            outline: 2px solid var(--brand-300, #FAAAAA);
            outline-offset: 2px;
            box-shadow: none;
        }


/* ============================================================
   RESULT COUNT
============================================================ */

.awarded-result-info {
    margin-bottom: 12px;
    color: var(--text-secondary, #606060);
    font-size: 14px;
}


/* ============================================================
   TABLE
============================================================ */

.awarded-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-light, #C6C6C6);
}


.awarded-table {
    width: 100%;
    min-width: 1500px;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}


    .awarded-table th,
    .awarded-table td {
        padding: 12px 10px;
        border-right: 1px solid var(--border-light, #C6C6C6);
        border-bottom: 1px solid var(--border-light, #C6C6C6);
        vertical-align: top;
        font-size: 14px;
        line-height: 1.45;
    }


        .awarded-table th:last-child,
        .awarded-table td:last-child {
            border-right: 0;
        }


    .awarded-table thead th {
        background: var(--brand-900, #771D1D);
        color: #fff;
        font-weight: 600;
        text-align: left;
    }


    .awarded-table tbody tr:last-child td {
        border-bottom: 0;
    }


    .awarded-table tbody tr:nth-child(even) {
        background: #fafafa;
    }


.tender-title {
    color: var(--text-primary, #150202);
    font-weight: 600;
}


/* ============================================================
   QUALIFIED BIDDERS
============================================================ */

.qualified-bidders {
    margin: 0;
    padding-left: 10px;
    list-style-type: disc;
}


    .qualified-bidders li {
        margin-bottom: 4px;
    }


        .qualified-bidders li:last-child {
            margin-bottom: 0;
        }


/* ============================================================
   EMPTY STATE
============================================================ */

.awarded-empty {
    padding: 36px 24px;
    border: 1px solid var(--border-light, #C6C6C6);
    background: var(--surface-secondary, #EBEAEA);
    text-align: center;
}


    .awarded-empty h2 {
        margin: 0 0 6px;
        color: var(--brand-900, #771D1D);
        font-size: 22px;
    }


    .awarded-empty p {
        margin: 0;
        color: var(--text-secondary, #606060);
    }


/* ============================================================
   BUTTON
============================================================ */

.btn-awarded-filter {
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--brand-900, #771D1D);
    border-radius: 4px;
    background: var(--brand-900, #771D1D);
    color: #fff;
    font-weight: 600;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 767.98px) {

    .awarded-tender-page {
        padding-top: 24px;
    }


    .awarded-filter-form {
        display: block;
    }


    .filter-field {
        width: 100%;
    }


    .awarded-table-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================================
   TENDER SEARCH
============================================================ */

.tender-search-form {
    margin-bottom: 20px;
}

.tender-search-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 760px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-primary);
}

.tender-search-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
}

    .tender-search-input::placeholder {
        color: var(--text-secondary);
    }

    .tender-search-input:focus {
        outline: 2px solid var(--brand-700);
        outline-offset: -2px;
    }

.tender-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border: 0;
    background: var(--brand-900);
    color: var(--surface-primary);
    font-weight: 600;
    cursor: pointer;
}

    .tender-search-button:hover,
    .tender-search-button:focus {
        background: var(--brand-700);
    }

.tender-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-left: 1px solid var(--border-light);
    color: var(--brand-900);
    background: var(--surface-primary);
    text-decoration: none;
    font-weight: 600;
}

    .tender-search-clear:hover,
    .tender-search-clear:focus {
        color: var(--brand-700);
        text-decoration: underline;
    }

@media (max-width: 575.98px) {

    .tender-search-box {
        flex-wrap: wrap;
    }

    .tender-search-input {
        width: 100%;
        flex-basis: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .tender-search-button,
    .tender-search-clear {
        flex: 1;
    }
}
