/* === Layout & Theme === */
html,
body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    display: flex;
    flex-direction: column;
}

.header-nav-wrapper {
    background: #fff;
    border-radius: 6px;
    max-width: 1000px;
    margin: 20px auto 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 50px;
}

header {
    background: #fff;
    text-align: center;
    padding: 0;
}

.header-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

nav {
    background: #fff;
    text-align: center;
    padding: 10px 0;
    border-top: 2px solid #003366;
    border-bottom: 2px solid #003366;
    margin-bottom: 5%;
}

nav a {
    color: #003366;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #0055aa;
    text-decoration: underline;
}

.container {
    flex: 1;
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    padding: 25px 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

h2 {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 8px;
    margin-top: 0;
}

p.intro {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* === Tender Info Card === */
.tender-info {
    background: #eef2f7;
    padding: 15px 20px;
    border-left: 4px solid #003366;
    margin-bottom: 25px;
    border-radius: 4px;
}

.tender-info p {
    margin: 5px 0;
    font-size: 14px;
}

.tender-header {
    text-align: center;
    margin-bottom: 20px;
}

.tender-header h3 {
    color: #003366;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.tender-header .underline {
    width: 80px;
    height: 3px;
    background: #003366;
    margin: 5px auto 0 auto;
    border-radius: 2px;
}

/* === Form Grid System === */
form {
    margin-top: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    /* gutter space */
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #003366;
    margin-bottom: 5px;
}

input,
textarea {
    width: 100%;
    padding: 8px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* === Buttons === */
.btn {
    background: #003366;
    color: white;
    padding: 8px 8px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0055aa;
}

.btn-cancel {
    background: #888;
    margin-left: 10px;
}

.btn-cancel:hover {
    background: #555;
}

.btn-green {
    background: #2e8b57;
    /* Submit Bid button */
}

.btn-green:hover {
    background: #3ca36d;
}

.form-actions {
    text-align: center;
    margin-top: 25px;
}

/* === Error Messages === */
.error {
    color: red;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.2;
    /* makes it compact */
    display: block;
    margin-top: 2px;
    min-height: 1em;
    /* reserve space */
}

.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #fff;
}

.alert-success {
    background-color: #28a745;
}

.alert-danger {
    background-color: #dc3545;
}

/* === Table Styles === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
    word-wrap: break-word;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #003366;
    color: white;
}

tr:nth-child(even) {
    background: #f2f2f2;
}

/* Column widths */
th:nth-child(1),
td:nth-child(1) {
    width: 6%;
    text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
    width: 18%;
}

th:nth-child(3),
td:nth-child(3) {
    width: 28%;
}

th:nth-child(4),
td:nth-child(4) {
    width: 13%;
    text-align: center;
}

th:nth-child(5),
td:nth-child(5) {
    width: 13%;
    text-align: center;
}

th:nth-child(6),
td:nth-child(6) {
    width: 22%;
    text-align: center;
}

.btn-small {
    padding: 6px 10px;
    font-size: 14px;
}

/* === No Data Message === */
.no-data {
    text-align: center;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
}

/* === Footer === */
footer {
    background: #002244;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    margin-top: auto;
    /* stick to bottom */
}

/* === Responsive Layout === */
@media (max-width: 768px) {
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* === Filter Section (Fixed Compact Size) === */
.filter-section {
    background: #eef2f7;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.filter-section form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-section label {
    font-weight: bold;
    color: #003366;
    margin-bottom: 0;
}

.filter-section select {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: auto;
    min-width: 150px;
}

.filter-section .btn-filter {
    background: #003366;
    color: white;
    padding: 6px 6px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}

.filter-section .btn-filter:hover {
    background: #0055aa;
}

.se-pre-con {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url(../img/preloader/preloader.gif) center no-repeat #fff;
}