/* =========================================================
   Bidentra İhaleler
   Projeler modülünün çalışan filtre/liste motoru üzerine
   yalnız ihaleye özgü ek düzenler.
   ========================================================= */

.bd-tenders-page .bd-projects-shell{
    grid-template-columns:310px minmax(0,1fr);
}

.bd-tenders-page .bd-filter-box{
    position:sticky;
    top:16px;
}

.bd-tender-radio-list label{
    min-height:26px;
}

.bd-tender-radio-list input{
    accent-color:#00adee;
}

.bd-tender-range-content{
    padding:11px 12px 12px;
    background:#fff;
}

.bd-tender-clear-button{
    display:block;
    margin-top:10px;
    color:#61798b!important;
    font-size:12px;
    font-weight:700;
    text-align:center;
}

.bd-tender-range-text{
    color:#718191;
    font-size:12px;
    font-weight:700;
}

.bd-tender-table-search input{
    max-width:100%;
}

.bd-project-table.bd-tender-table{
    min-width:1060px;
    table-layout:fixed;
}

.bd-col-tender-logo{width:92px}
.bd-col-tender-no{width:142px}
.bd-col-tender-name{width:auto}
.bd-col-tender-location{width:165px}
.bd-col-tender-type{width:92px}
.bd-col-tender-status{width:105px}
.bd-col-tender-deadline{width:118px}

.bd-tender-table tbody td{
    padding-top:15px;
    padding-bottom:15px;
}

.bd-tender-list-logo{
    width:72px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:6px;
    border:1px solid #d7e4ed;
    border-radius:6px;
    background:#fff;
}

.bd-tender-list-logo img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.bd-tender-list-logo span{
    width:28px;
    height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:5px;
    background:#eaf7fc;
    color:#008fc7;
    font-weight:900;
}

.bd-tender-list-number{
    display:block;
    color:#008fc7!important;
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
}

.bd-tender-draft-badge{
    display:inline-flex;
    min-height:21px;
    align-items:center;
    margin-top:5px;
    padding:0 7px;
    border-radius:5px;
    background:#fff5dc;
    color:#805b11;
    font-size:9px;
    font-weight:900;
}

.bd-tender-list-title{
    display:block;
    color:#0f172a!important;
    font-size:13.5px;
    line-height:1.48;
    font-weight:850;
}

.bd-tender-list-title:hover,
.bd-tender-list-number:hover{
    color:#008fc7!important;
}

.bd-tender-list-org{
    display:block;
    margin-top:5px;
    color:#718191;
    font-size:10.5px;
    line-height:1.4;
}

.bd-tender-list-location,
.bd-tender-list-date{
    color:#344757;
    font-size:12.5px;
    line-height:1.45;
}

.bd-tender-type-badge,
.bd-tender-status-badge{
    display:inline-flex;
    min-height:25px;
    align-items:center;
    padding:0 8px;
    border-radius:5px;
    font-size:10px;
    font-weight:850;
}

.bd-tender-type-badge{
    border:1px solid #cfe3ec;
    background:#f1f8fb;
    color:#305a70;
}

.bd-tender-status-badge{
    background:#eef4f7;
    color:#496273;
}

.bd-tender-status-open{
    background:#eaf8ef;
    color:#287044;
}

.bd-tender-status-awarded{
    background:#e9f4ff;
    color:#286494;
}

.bd-tender-status-cancelled{
    background:#fff0f0;
    color:#9a3434;
}

.bd-tender-table .bd-empty-cell{
    padding:46px!important;
    color:#718191!important;
    font-weight:700;
    text-align:center;
}

@media(max-width:980px){
    .bd-tenders-page .bd-filter-box{
        position:static;
    }
}

/* =========================================================
   DETAY SAYFASI
   ========================================================= */

.bd-tender-detail-container{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:30px 28px 70px;
}

.bd-preview-bar{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:14px;
    padding:0 14px;
    border:1px solid #f0cf86;
    border-radius:8px;
    background:#fff8e8;
    color:#74530f;
    font-size:11px;
    font-weight:750;
}

.bd-preview-bar strong{
    color:#805c0c;
}

.bd-tender-hero{
    display:grid;
    grid-template-columns:200px minmax(0,1fr) 250px;
    gap:24px;
    align-items:center;
    padding:24px;
    border:1px solid var(--bd-border);
    border-left:5px solid var(--bd-blue);
    border-radius:11px;
    background:#fff;
    box-shadow:0 14px 30px rgba(15,42,68,.06);
}

.bd-tender-hero-logo{
    height:136px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    border:1px solid #d8e5ed;
    border-radius:9px;
    background:#fff;
    color:#7e909d;
    font-size:11px;
    font-weight:750;
    text-align:center;
}

.bd-tender-hero-logo img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.bd-tender-org-name{
    margin-bottom:10px;
    color:#0085ae;
    font-size:12px;
    font-weight:900;
}

.bd-tender-hero-main h1{
    margin:0;
    color:#0d2536;
    font-size:31px;
    line-height:1.28;
    font-weight:900;
    letter-spacing:-.02em;
}

.bd-tender-hero-badges{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:16px;
}

.bd-tender-hero-badges span{
    min-height:27px;
    display:inline-flex;
    align-items:center;
    padding:0 9px;
    border:1px solid #cfe1eb;
    border-radius:5px;
    background:#f3f8fb;
    color:#36586c;
    font-size:10px;
    font-weight:850;
}

.bd-tender-hero-badges .is-status{
    border-color:#c7e4d2;
    background:#eaf8ef;
    color:#287044;
}

.bd-tender-hero-summary{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:16px;
    border:1px solid #cfe3ec;
    border-radius:9px;
    background:#f2fbfe;
}

.bd-summary-label{
    color:#6e8494;
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
}

.bd-tender-hero-summary strong{
    margin-bottom:10px;
    color:#007da4;
    font-size:21px;
    line-height:1.2;
    font-weight:900;
}

.bd-tender-hero-summary b{
    margin-bottom:9px;
    color:#173247;
    font-size:12px;
    line-height:1.4;
}

.bd-tender-actions{
    display:flex;
    justify-content:flex-end;
    gap:9px;
    margin:14px 0;
}

.bd-action-primary,
.bd-action-secondary{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 15px;
    border-radius:6px;
    font-size:11px;
    font-weight:850;
}

.bd-action-primary{
    background:#00adee;
    color:#fff!important;
}

.bd-action-secondary{
    border:1px solid #cfdee7;
    background:#fff;
    color:#38586c!important;
}

.bd-tender-detail-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:16px;
    align-items:start;
}

.bd-detail-main,
.bd-detail-side{
    min-width:0;
}

.bd-detail-card{
    margin-bottom:16px;
    overflow:hidden;
    border:1px solid var(--bd-border);
    border-radius:10px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,42,68,.04);
}

.bd-detail-card h2{
    margin:0;
    padding:13px 16px;
    border-bottom:1px solid var(--bd-border);
    background:linear-gradient(180deg,#f6fafc 0%,#eef6fa 100%);
    color:#102c40;
    font-size:13px;
    font-weight:900;
}

.bd-detail-card h3{
    margin:18px 18px 0;
    color:#173247;
    font-size:13px;
    font-weight:900;
}

.bd-detail-lead,
.bd-rich-text{
    padding:18px;
    color:#365365;
    font-size:13px;
    line-height:1.7;
}

.bd-detail-lead{
    font-weight:650;
}

.bd-info-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.bd-info-grid>div{
    min-height:78px;
    padding:15px 16px;
    border-right:1px solid var(--bd-line);
    border-bottom:1px solid var(--bd-line);
}

.bd-info-grid>div:nth-child(2n){
    border-right:0;
}

.bd-info-grid>div.is-wide{
    grid-column:span 2;
}

.bd-info-grid span{
    display:block;
    margin-bottom:7px;
    color:#6d8494;
    font-size:9px;
    font-weight:850;
    text-transform:uppercase;
}

.bd-info-grid strong{
    color:#173247;
    font-size:12px;
    line-height:1.45;
    font-weight:850;
}

.bd-side-card{
    margin-bottom:16px;
}

.bd-record-number{
    margin:16px;
    padding:14px;
    border:1px solid #c9e2ec;
    border-radius:8px;
    background:#eef9fd;
}

.bd-record-number span{
    display:block;
    margin-bottom:6px;
    color:#6d8494;
    font-size:9px;
    font-weight:850;
    text-transform:uppercase;
}

.bd-record-number strong{
    color:#0085ae;
    font-size:19px;
    font-weight:900;
}

.bd-summary-list{
    margin:0;
    padding:0 16px 14px;
}

.bd-summary-list>div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:11px 0;
    border-bottom:1px solid var(--bd-line);
}

.bd-summary-list>div:last-child{
    border-bottom:0;
}

.bd-summary-list dt{
    color:#708596;
    font-size:10px;
    font-weight:750;
}

.bd-summary-list dd{
    margin:0;
    color:#173247;
    font-size:10px;
    font-weight:850;
    text-align:right;
}

.bd-organization-mini{
    padding:18px;
    text-align:center;
}

.bd-organization-mini img{
    max-width:190px;
    max-height:80px;
    margin-bottom:13px;
    object-fit:contain;
}

.bd-organization-mini strong,
.bd-organization-mini span{
    display:block;
}

.bd-organization-mini strong{
    color:#153247;
    font-size:12px;
    line-height:1.45;
    font-weight:900;
}

.bd-organization-mini span{
    margin-top:5px;
    color:#6f8493;
    font-size:10px;
}

.bd-side-links{
    display:grid;
    gap:8px;
    padding:0 16px 16px;
}

.bd-side-links a{
    min-height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #cfe0e9;
    border-radius:6px;
    background:#f8fbfd;
    color:#2e5d74!important;
    font-size:10px;
    font-weight:850;
}

.bd-preview-note p{
    margin:0;
    padding:16px;
    color:#607889;
    font-size:11px;
    line-height:1.6;
}

.bd-detail-message{
    padding:70px 24px;
    border:1px solid var(--bd-border);
    border-radius:10px;
    background:#fff;
    text-align:center;
}

.bd-detail-message h1{
    margin:0;
    color:#142d3f;
    font-size:28px;
    font-weight:900;
}

.bd-detail-message p{
    margin:10px 0 20px;
    color:#6d8494;
    font-size:13px;
}

.bd-detail-message a{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    padding:0 14px;
    border-radius:6px;
    background:#00adee;
    color:#fff!important;
    font-size:11px;
    font-weight:850;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1100px){
    .bd-tenders-shell{
        grid-template-columns:270px minmax(0,1fr);
    }

    .bd-tender-hero{
        grid-template-columns:170px minmax(0,1fr);
    }

    .bd-tender-hero-summary{
        grid-column:1 / -1;
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:860px){
    .bd-tenders-shell{
        grid-template-columns:1fr;
    }

    .bd-filter-box{
        position:static;
    }

    .bd-tender-detail-grid{
        grid-template-columns:1fr;
    }

    .bd-tender-hero{
        grid-template-columns:1fr;
        text-align:center;
    }

    .bd-tender-hero-logo{
        width:220px;
        margin:0 auto;
    }

    .bd-tender-hero-badges{
        justify-content:center;
    }
}

@media(max-width:620px){
    .bd-tenders-shell{
        padding:12px 10px 46px;
    }

    .bd-list-toolbar,
    .bd-table-footer{
        align-items:flex-start;
        flex-direction:column;
    }

    .bd-range-row{
        grid-template-columns:1fr;
    }

    .bd-tender-detail-container{
        padding:18px 12px 50px;
    }

    .bd-preview-bar{
        align-items:flex-start;
        flex-direction:column;
        padding:11px 13px;
    }

    .bd-tender-hero{
        padding:18px;
    }

    .bd-tender-hero-main h1{
        font-size:24px;
    }

    .bd-tender-hero-summary{
        grid-template-columns:1fr;
        text-align:left;
    }

    .bd-tender-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .bd-info-grid{
        grid-template-columns:1fr;
    }

    .bd-info-grid>div,
    .bd-info-grid>div:nth-child(2n){
        border-right:0;
    }

    .bd-info-grid>div.is-wide{
        grid-column:span 1;
    }
}
