.tenders-page {
    padding: 30px 0 60px;
}

.tenders-header {
    margin-bottom: 20px;
}

    .tenders-header h2 {
        color: #1a3560;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .tenders-header p {
        color: #5a6b85;
        margin-bottom: 0;
    }

.tenders-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e9f2;
    margin-bottom: 24px;
}

.tenders-tab {
    padding: 10px 20px;
    font-weight: 600;
    color: #5a6b85;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
}

    .tenders-tab:hover,
    .tenders-tab:focus {
        color: #1253ca;
        text-decoration: none;
    }

    .tenders-tab.active {
        color: #1a3560;
        border-bottom-color: #1ab394;
    }

.tenders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tender-card {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-left: 4px solid #1ab394;
    border-radius: 8px;
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(26,53,96,0.05);
    transition: box-shadow .15s ease, transform .15s ease;
}

    .tender-card:hover {
        box-shadow: 0 4px 16px rgba(26,53,96,0.1);
        transform: translateY(-2px);
    }

    .tender-card.is-archived {
        border-left-color: #9fb0c8;
    }

.tender-card-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.tender-index {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3560, #1253ca);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.tender-card.is-archived .tender-index {
    background: #5a6b85;
}

.tender-info {
    min-width: 0;
}

.tender-title {
    margin: 0 0 6px;
    font-size: 1.05em;
    font-weight: 700;
    color: #1a3560;
}

.tender-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85em;
    color: #5a6b85;
}

    .tender-meta .tender-due {
        color: #1253ca;
        font-weight: 600;
    }

.btn-tender-view {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    background: #1a3560;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85em;
    text-decoration: none !important;
    transition: background .15s ease;
}

    .btn-tender-view:hover,
    .btn-tender-view:focus {
        background: #1253ca;
    }

.tenders-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: #1253ca;
    font-weight: 600;
    text-decoration: none;
}

    .tenders-back:hover,
    .tenders-back:focus {
        text-decoration: underline;
    }

.tender-detail-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-left: 4px solid #1ab394;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(26,53,96,0.05);
    margin-bottom: 30px;
}

.tender-detail-title {
    margin: 0 0 18px;
    color: #1a3560;
    font-weight: 700;
}

.tender-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 28px;
    margin: 0;
}

    .tender-detail-grid dt {
        font-size: 0.8em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #5a6b85;
        margin-bottom: 4px;
    }

    .tender-detail-grid dd {
        margin: 0;
        color: #1a3560;
        font-weight: 600;
        word-break: break-word;
    }

.tenders-subheading {
    color: #1a3560;
    font-weight: 700;
    margin: 0 0 14px;
}

.tenders-empty {
    text-align: center;
    padding: 40px 20px;
    color: #5a6b85;
    background: #f5f7fb;
    border-radius: 8px;
    border: 1px dashed #c8d3e6;
}
