/* =========================================================
   Bidentra İhaleler — Public Liste
   Masaüstü: solda kompakt filtre + sağda gerçek tablo.
   /tr/projeler/projeler.css temelini kullanır; yalnız ihale
   sayfasına özgü görünüm farklarını burada tutar.
   ========================================================= */

.bd-tenders-page,
.bd-tenders-page *{
    box-sizing:border-box;
}

.bd-tenders-page{
    --td-navy:#061d35;
    --td-blue:#00adee;
    --td-blue-dark:#008fc7;
    --td-text:#20384c;
    --td-muted:#708493;
    --td-line:#d7e3eb;
    --td-line-soft:#e8eff4;
    --td-soft:#f6f9fb;
    --td-row:#fbfdfe;
    --td-row-hover:#f1f9fd;
    --td-shadow:0 10px 26px rgba(15,42,68,.055);
    width:100%;
    min-height:100vh;
    overflow-x:hidden;
    background:#f3f6f8;
    color:var(--td-text);
}

/* =========================================================
   SAYFA YERLEŞİMİ
   ========================================================= */

.bd-tenders-page .bd-projects-shell{
    width:100%;
    max-width:none;
    margin:0;
    padding:18px 18px 64px;
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.bd-tenders-page .bd-projects-filter,
.bd-tenders-page .bd-projects-results{
    min-width:0;
}

.bd-tenders-page .bd-projects-results{
    max-width:100%;
    overflow:hidden;
}

/* =========================================================
   SOL FİLTRE
   ========================================================= */

.bd-tenders-page .bd-filter-box{
    width:100%;
    padding:17px 16px 18px;
    border:1px solid #ccdce7;
    border-radius:8px;
    background:#fff;
    box-shadow:var(--td-shadow);
}

.bd-tenders-page .bd-filter-box h1{
    margin:0 0 14px;
    padding:0 0 12px;
    border-bottom:1px solid #e2ebf1;
    color:var(--td-navy);
    font-size:17px;
    line-height:1.25;
    font-weight:800;
    text-align:left;
    letter-spacing:-.01em;
}

.bd-tenders-page .bd-field{
    position:relative;
    margin:0 0 9px;
}

.bd-tenders-page .bd-field-labeled{
    margin-top:11px;
}

.bd-tenders-page .bd-field label,
.bd-tenders-page .bd-range-row span{
    display:block;
    margin:0 0 5px;
    color:#536b7b;
    font-size:10px;
    line-height:1.2;
    font-weight:750;
}

.bd-tenders-page .bd-field select,
.bd-tenders-page .bd-field input,
.bd-tenders-page .bd-country-picker-button,
.bd-tenders-page .bd-tender-range-content>input,
.bd-tenders-page .bd-tender-range-content>select,
.bd-tenders-page .bd-range-row input{
    width:100%;
    min-height:40px;
    border:1px solid #c6d7e1;
    border-radius:7px;
    background:#fff;
    color:#17344a;
    font:600 12px/1.2 "Poppins",Arial,sans-serif;
    outline:none;
    box-shadow:none;
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}

.bd-tenders-page .bd-field select,
.bd-tenders-page .bd-tender-range-content>select{
    padding:8px 32px 8px 11px;
}

.bd-tenders-page .bd-field input,
.bd-tenders-page .bd-tender-range-content>input,
.bd-tenders-page .bd-range-row input{
    padding:8px 11px;
}

.bd-tenders-page .bd-field select:focus,
.bd-tenders-page .bd-field input:focus,
.bd-tenders-page .bd-country-picker-button:focus,
.bd-tenders-page .bd-tender-range-content>input:focus,
.bd-tenders-page .bd-tender-range-content>select:focus,
.bd-tenders-page .bd-range-row input:focus{
    border-color:#6cc9e9;
    box-shadow:0 0 0 3px rgba(0,173,238,.10);
}

.bd-tenders-page .bd-field select:disabled{
    background:#f5f8fa;
    color:#91a0aa;
}

/* Ülke seçici */

.bd-tenders-page .bd-country-picker{
    width:100%;
}

.bd-tenders-page .bd-country-picker-button{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 11px;
}

.bd-tenders-page .bd-country-picker-button>span{
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
}

.bd-tenders-page .bd-country-picker-button strong{
    overflow:hidden;
    color:#17344a;
    font-size:12px;
    font-weight:600;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.bd-tenders-page .bd-country-picker-button img,
.bd-tenders-page .bd-country-picker-option img{
    width:21px;
    height:15px;
    flex:0 0 auto;
    object-fit:cover;
    border-radius:2px;
}

.bd-tenders-page .bd-country-picker-menu{
    margin-top:5px;
    border:1px solid #cedde6;
    border-radius:7px;
    background:#fff;
    box-shadow:0 14px 30px rgba(15,42,68,.14);
}

.bd-tenders-page .bd-country-picker-option{
    min-height:38px;
    padding:8px 10px;
    border:0;
    border-bottom:1px solid #edf2f5;
    background:#fff;
    color:#294559;
    font-size:11px;
}

.bd-tenders-page .bd-country-picker-option:hover{
    background:#f1faff;
    color:var(--td-blue-dark);
}

/* Filtre grupları: kutu yığını yerine sade ayırıcılar */

.bd-tenders-page .bd-filter-group{
    margin:0;
    overflow:visible;
    border:0;
    border-top:1px solid #e4ecf1;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}

.bd-tenders-page .bd-filter-group:first-of-type{
    margin-top:4px;
}

.bd-tenders-page .bd-filter-group summary{
    position:relative;
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:10px 25px 10px 2px;
    border:0;
    background:transparent;
    color:#294559;
    font-size:11px;
    line-height:1.25;
    font-weight:700;
    text-align:left;
    cursor:pointer;
    list-style:none;
}

.bd-tenders-page .bd-filter-group summary::-webkit-details-marker{
    display:none;
}

.bd-tenders-page .bd-filter-group summary::after{
    content:"";
    position:absolute;
    right:4px;
    top:50%;
    width:7px;
    height:7px;
    border-right:1.5px solid #6b8798;
    border-bottom:1.5px solid #6b8798;
    transform:translateY(-65%) rotate(45deg);
    transition:transform .16s ease,border-color .16s ease;
}

.bd-tenders-page .bd-filter-group[open] summary{
    color:var(--td-navy);
}

.bd-tenders-page .bd-filter-group[open] summary::after{
    border-color:var(--td-blue-dark);
    transform:translateY(-35%) rotate(-135deg);
}

.bd-tenders-page .bd-tender-range-content{
    padding:0 0 11px!important;
    background:transparent;
}

.bd-tenders-page .bd-tender-radio-list{
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
    padding:0 0 11px;
}

.bd-tenders-page .bd-tender-radio-list label{
    min-height:27px;
    display:flex;
    align-items:center;
    gap:7px;
    color:#3e5667;
    font-size:11px;
    font-weight:600;
}

.bd-tenders-page .bd-tender-radio-list input{
    accent-color:var(--td-blue);
}

.bd-tenders-page .bd-range-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-top:7px;
}

.bd-tenders-page .bd-search-button{
    width:100%;
    min-height:42px;
    margin-top:14px;
    border:0;
    border-radius:7px;
    background:var(--td-blue);
    color:#fff;
    font-size:11.5px;
    font-weight:800;
    box-shadow:0 7px 16px rgba(0,173,238,.16);
    cursor:pointer;
    transition:background .16s ease,transform .16s ease;
}

.bd-tenders-page .bd-search-button:hover{
    background:var(--td-blue-dark);
    transform:translateY(-1px);
}

.bd-tenders-page .bd-tender-clear-button{
    min-height:34px;
    display:flex!important;
    align-items:center;
    justify-content:center;
    margin:8px 0 0!important;
    padding:0 8px;
    border:0;
    border-radius:6px;
    background:transparent;
    color:#6d818f!important;
    font-size:10px!important;
    font-weight:700!important;
    text-align:center;
}

.bd-tenders-page .bd-tender-clear-button:hover{
    background:#f3f8fb;
    color:var(--td-blue-dark)!important;
}

/* =========================================================
   SONUÇ ÜST ÇUBUĞU
   ========================================================= */

.bd-tenders-page .bd-results-topbar{
    min-height:56px;
    display:grid;
    grid-template-columns:auto minmax(220px,300px) auto;
    align-items:center;
    gap:12px;
    margin:0 0 12px;
    padding:10px 14px;
    border:1px solid #d5e1e8;
    border-radius:8px;
    background:#fff;
    box-shadow:0 7px 18px rgba(15,42,68,.035);
}

.bd-tenders-page .bd-total-count{
    color:#536977;
    font-size:11px;
    font-weight:700;
}

.bd-tenders-page .bd-total-count strong{
    margin-right:5px;
    color:var(--td-navy);
    font-size:18px;
    font-weight:900;
}

.bd-tenders-page .bd-tender-sort{
    justify-self:center;
    width:100%;
}

.bd-tenders-page .bd-tender-sort select{
    width:100%;
    min-width:0!important;
    height:38px!important;
    border:1px solid #cddbe4!important;
    border-radius:7px!important;
    background:#fff!important;
    padding:0 10px!important;
    color:#365164!important;
    font:700 10.5px/1 "Poppins",Arial,sans-serif!important;
}

.bd-tenders-page .bd-tender-range-text{
    justify-self:end;
    color:#778a98!important;
    font-size:10px!important;
    font-weight:700!important;
}

/* =========================================================
   TABLO KARTI
   ========================================================= */

.bd-tenders-page .bd-table-card{
    overflow:hidden;
    border:1px solid #d5e1e8;
    border-radius:8px;
    background:#fff;
    box-shadow:var(--td-shadow);
}

.bd-tenders-page .bd-table-search{
    margin:0;
    padding:12px 14px;
    border-bottom:1px solid #e2eaf0;
    background:#fff;
}

.bd-tenders-page .bd-tender-table-search input{
    width:100%;
    max-width:620px!important;
    min-height:40px;
    padding:0 12px;
    border:1px solid #d0dee6;
    border-radius:7px;
    background:#fff;
    color:#17344a;
    font-size:11.5px;
    font-weight:600;
    box-shadow:none;
}

.bd-tenders-page .bd-tender-table-search input:focus{
    border-color:#6cc9e9;
    box-shadow:0 0 0 3px rgba(0,173,238,.09);
    outline:none;
}

.bd-tenders-page .bd-tender-table-search input::placeholder{
    color:#8b9aa4;
}

.bd-tenders-page .bd-table-wrap{
    width:100%;
    overflow-x:auto;
}

/* =========================================================
   GERÇEK İHALE TABLOSU
   ========================================================= */

.bd-tenders-page .bd-project-table.bd-tender-table{
    width:100%;
    min-width:1120px!important;
    display:table;
    table-layout:fixed!important;
    border-collapse:collapse;
    background:#fff;
}

.bd-tenders-page .bd-tender-table colgroup{
    display:table-column-group;
}

.bd-tenders-page .bd-tender-table thead{
    display:table-header-group;
}

.bd-tenders-page .bd-tender-table thead th{
    padding:12px 10px;
    border-bottom:1px solid #ccdbe4;
    background:#f4f8fb;
    color:#173b57;
    font-size:10.5px;
    line-height:1.2;
    font-weight:800;
    text-align:left;
    vertical-align:middle;
    white-space:nowrap;
}

.bd-tenders-page .bd-tender-table tbody{
    display:table-row-group;
}

.bd-tenders-page .bd-tender-table tbody tr{
    display:table-row;
    border:0;
    background:#fff;
    box-shadow:none;
    transform:none;
}

.bd-tenders-page .bd-tender-table tbody tr:nth-child(even) td{
    background:var(--td-row)!important;
}

.bd-tenders-page .bd-tender-table tbody tr:hover td{
    background:var(--td-row-hover)!important;
}

.bd-tenders-page .bd-tender-table tbody td{
    display:table-cell!important;
    min-width:0;
    padding:13px 10px!important;
    border:0!important;
    border-bottom:1px solid var(--td-line-soft)!important;
    background:#fff!important;
    color:#334d5f;
    font-size:10.5px;
    line-height:1.4;
    vertical-align:middle;
    overflow-wrap:anywhere;
}

.bd-tenders-page .bd-tender-table tbody td::before{
    content:none!important;
    display:none!important;
}

.bd-tenders-page .bd-tender-org-cell{
    width:100%;
    min-width:0;
    display:flex;
    align-items:center;
    gap:7px;
    color:inherit!important;
    text-decoration:none!important;
}

.bd-tenders-page .bd-tender-org-logo{
    width:40px!important;
    height:30px!important;
    flex:0 0 40px;
    margin:0!important;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:4px!important;
    border:1px solid #d7e2e9!important;
    border-radius:6px!important;
    background:#fff!important;
}

.bd-tenders-page .bd-tender-org-logo img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.bd-tenders-page .bd-tender-org-cell strong{
    min-width:0;
    flex:1 1 auto;
    color:#294458;
    font-size:9.6px;
    line-height:1.35;
    font-weight:750;
    white-space:normal;
    overflow-wrap:anywhere;
}

.bd-tenders-page .bd-tender-no-link,
.bd-tenders-page .bd-tender-title-link{
    color:inherit!important;
    text-decoration:none!important;
}

.bd-tenders-page .bd-tender-no-link strong{
    display:block;
    color:var(--td-blue-dark)!important;
    font-size:11px;
    line-height:1.3;
    font-weight:850;
    white-space:nowrap;
}

.bd-tenders-page .bd-tender-no-link small{
    width:max-content;
    display:inline-flex!important;
    margin-top:4px!important;
    padding:2px 6px!important;
    border-radius:999px!important;
    background:#edf8fc!important;
    color:#527489!important;
    font-size:7.8px!important;
    font-weight:800!important;
}

.bd-tenders-page .bd-tender-title-link strong{
    display:block;
    color:#102f47!important;
    font-size:12.5px;
    line-height:1.45;
    font-weight:820;
}

.bd-tenders-page .bd-tender-title-link:hover strong{
    color:var(--td-blue-dark)!important;
}

.bd-tenders-page .bd-tender-title-link small{
    display:block;
    margin-top:4px!important;
    color:#738692!important;
    font-size:8.5px!important;
    line-height:1.35!important;
    font-weight:600;
}

.bd-tenders-page .bd-tender-type-badge{
    width:max-content;
    min-height:22px;
    display:inline-flex;
    align-items:center;
    padding:0 7px!important;
    border:1px solid #c9dee8!important;
    border-radius:999px!important;
    background:#f2f8fb!important;
    color:#315e73!important;
    font-size:8px!important;
    font-weight:800!important;
}

.bd-tenders-page .bd-tender-table td strong{
    display:block!important;
    color:#29475b;
    font-size:10.2px;
    line-height:1.35;
    font-weight:720;
}

.bd-tenders-page .bd-tender-table td small{
    display:block!important;
    margin-top:3px!important;
    color:#7a8c98!important;
    font-size:8.3px!important;
    line-height:1.3!important;
}

.bd-tenders-page .bd-tender-table tbody td:last-child strong{
    color:#276d49;
    font-weight:850;
}

/* Boş / hata mesajı */

.bd-tenders-page .bd-tender-message{
    width:100%;
    padding:26px 18px;
    color:#5f7483;
    font-size:11px;
    font-weight:650;
    text-align:center;
}

.bd-tenders-page .bd-tender-message-error{
    color:#9a3d3d;
}

.bd-tenders-page .bd-tender-error-reference{
    display:block;
    margin-top:5px;
    color:#8b98a2;
    font-size:9px;
}

/* Footer / pagination */

.bd-tenders-page .bd-table-footer{
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:10px 14px;
    border-top:1px solid #e0e9ef;
    background:#fff;
    color:#728592;
    font-size:10px;
}

.bd-tenders-page .bd-pagination{
    display:flex;
    align-items:center;
    gap:5px;
}

.bd-tenders-page .bd-pagination a{
    min-width:32px;
    min-height:31px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px 9px;
    border:1px solid #d2e0e8;
    border-radius:7px;
    background:#fff;
    color:#244b66;
    font-size:10px;
    font-weight:700;
}

.bd-tenders-page .bd-pagination a.active{
    border-color:var(--td-blue);
    background:var(--td-blue);
    color:#fff;
    box-shadow:0 6px 14px rgba(0,173,238,.16);
}

.bd-tenders-page .bd-pagination a:not(.active):not(.disabled):hover{
    border-color:#8ed4ec;
    background:#f2fbff;
    color:var(--td-blue-dark);
}

.bd-tenders-page .bd-pagination a.disabled{
    opacity:.42;
    pointer-events:none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1180px){
    .bidentra-language__menu{
        right:0!important;
    }

    .bd-tenders-page .bd-projects-shell{
        grid-template-columns:250px minmax(0,1fr);
        gap:12px;
        padding:15px 12px 52px;
    }

    .bd-tenders-page .bd-filter-box{
        padding:15px 13px 17px;
    }

    .bd-tenders-page .bd-project-table.bd-tender-table{
        min-width:1060px!important;
    }

    .bd-tenders-page .bd-tender-table thead th{
        padding-left:8px;
        padding-right:8px;
        font-size:10px;
    }

    .bd-tenders-page .bd-tender-table tbody td{
        padding-left:8px!important;
        padding-right:8px!important;
    }

    .bd-tenders-page .bd-tender-title-link strong{
        font-size:11.8px;
    }
}

@media(max-width:900px){
    .bd-tenders-page .bd-projects-shell{
        grid-template-columns:1fr;
    }

    .bd-tenders-page .bd-results-topbar{
        grid-template-columns:1fr 220px;
    }

    .bd-tenders-page .bd-tender-range-text{
        display:none;
    }
}

@media(max-width:640px){
    .bd-tenders-page .bd-projects-shell{
        padding:10px 9px 42px;
    }

    .bd-tenders-page .bd-results-topbar{
        grid-template-columns:1fr;
        gap:8px;
    }

    .bd-tenders-page .bd-tender-sort{
        justify-self:stretch;
    }

    .bd-tenders-page .bd-tender-table-search input{
        max-width:none!important;
    }

    .bd-tenders-page .bd-table-footer{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }
}
