/* ===== Procurement Tender List - Redesigned ===== */

/* Filter Bar */
.proc-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.proc-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.proc-filter-select {
    padding: 10px 40px 10px 16px;
    height: 44px;
    font-size: 14px;
    font-family: 'Manrope', 'Open Sans', 'Arial', sans-serif;
    border: 1px solid #d8d8d8;
    background-color: #fff;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    cursor: pointer;
}

.proc-filter-select:focus {
    outline: none;
    border-color: #363685;
}

.proc-filter-divider {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    margin-top: 18px;
    margin-bottom: 30px;
}

/* Card List */
.proc-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Item */
.proc-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 28px 30px;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

.proc-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.proc-card-inner {
    display: flex;
    gap: 30px;
}

/* Left Column - Description */
.proc-card-left {
    flex: 1;
    min-width: 0;
}

.proc-card-status {
    margin-bottom: 12px;
}

.proc-card .status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.proc-card .status-active    { background-color: #28a745; }
.proc-card .status-expired   { background-color: #999; }
.proc-card .status-cancelled { background-color: #dc3545; }
.proc-card .status-postponed { background-color: #fd7e14; }

.proc-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.proc-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right Column - Metadata */
.proc-card-right {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proc-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.proc-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #363685;
}

.proc-meta-value-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Card Footer with Button */
.proc-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.proc-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background-color: #363685;
    border: 1px solid #363685;
    color: #fff;
    font-family: 'Manrope', 'Open Sans', 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.proc-card-btn:hover {
    background-color: #2a2a6e;
    border-color: #2a2a6e;
    color: #fff;
}

.proc-card-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Empty State */
.proc-empty {
    font-style: italic;
    color: #777;
    padding: 40px 0;
    font-size: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .proc-card-inner {
        flex-direction: column;
        gap: 20px;
    }

    .proc-card-right {
        flex: 1;
    }

    .proc-card {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .proc-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .proc-sort-select {
        margin-left: 0;
    }

    .proc-card-footer {
        justify-content: center;
    }

    .proc-card-btn {
        width: 100%;
        justify-content: center;
    }
}
