/* Table Structure */

.tender-table.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: transparent !important;
}

.tender-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.tender-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    color: #495057;
}

.tender-table .tender-data-row td {
    padding: 12px 8px;
    vertical-align: middle;
    border: 1px solid #dee2e6;
    background: #fff;
    text-align: center;
}

.tender-table .tender-workflow-row td {
    padding: 15px 10px;
    background: #f1f3f4;
    border: 1px solid #dee2e6;
    border-top: none;
}

/* Workflow Container */
.tender-workflow {
    display: flex;
    gap: 0;
    align-items: center;
    font-size: 13px;
    margin: 0;
    direction: rtl;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

/* Status Steps - Sharp arrows like your design */
.status-step {
    padding: 15px 30px;
    position: relative;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    flex-shrink: 0;
    font-weight: 500;
    white-space: nowrap;
    font-size: 13px;
    margin-left: -1px;
    background: url(../images/tender.svg) no-repeat center center;
    margin-inline: -6px !important;
    background-size: contain;

}

/* First step - no left arrow point */
.status-step:first-child {
    padding-left: 35px;
}

/* Last step - no right arrow point */
.status-step:last-child {
    padding-right: 35px;
}

.status-empty {

    background: url(../images/tender-2.svg) no-repeat center center;
    background-size: contain;
}

.status-empty span {
    font-weight: 500;
    font-size: 13px;
}

/* Used Status - Dark blue */
.status-used {
    color: white;
    font-weight: 600;
    z-index: 2;
}

.tender-workflow .status-step.status-used:first-child {
    background: url(../images/first-tender.svg) no-repeat center center;
    transform: scaleY(1.08);
    background-size: contain;
}

.tender-workflow .status-step.status-empty:first-child {
    background: url(../images/first-tender.svg) no-repeat center center;
    background-size: contain;
    filter: grayscale(1) opacity(0.9) invert(1);
    transform: scaleY(1.08);
    color: #f0ffff;
}

.status-used a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.status-used a:hover {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
}

.status-used a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Workflow Cell */
.workflow-cell {
    position: relative;
    overflow: visible;
    padding: 15px 20px !important;
}

/* Table styling */
.tender-table,
.tender-table th,
.tender-table td {
    border-color: #dee2e6;
}

.tender-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

/* Row backgrounds */
.tender-data-row:nth-child(4n+1) td {
    background: #fff;
}

.tender-data-row:nth-child(4n+3) td {
    background: #f8f9fa;
}

.tender-workflow-row:nth-child(4n+2) td,
.tender-workflow-row:nth-child(4n+4) td {
    background: #f1f3f4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .status-step {
        min-width: 120px;
        padding: 12px 25px;
        font-size: 12px;
        height: 45px;
        clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%, 20px 50%);
    }

    .status-step:first-child {
        clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
        padding-left: 30px;
    }

    .status-step:last-child {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 20px 50%);
        padding-right: 30px;
    }
}

@media (max-width: 992px) {
    .tender-workflow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .status-step {
        min-width: 100px;
        margin-left: 2px;
        margin-bottom: 5px;
        clip-path: none;
        border-radius: 6px;
        height: 40px;
    }

    .status-step:first-child,
    .status-step:last-child {
        clip-path: none;
        border-radius: 6px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .status-step {
        min-width: 80px;
        font-size: 11px;
        padding: 10px 15px;
        height: 35px;
    }

    .tender-table th,
    .tender-table td {
        padding: 8px 4px;
        font-size: 12px;
    }

    .workflow-cell {
        padding: 10px 5px !important;
    }
}

/* style of  paragraph page to show media file*/