/* Malzeme Fiyatları ekranı (dll_iu/MalzemeyiBorsayaBagla/MalzemeyiBorsayaBağla): solda malzemeler, sağda borsa fiyatları.
   index.html (Windows) ve App.razor (Web) içinde _content/dll_iu/css/malzeme-fiyatlari.css olarak yüklenir. */



/* İki panel yan yana; yükseklik ekrana göre (üst şerit + araç çubuğu payı çıkarılır), çok küçük ekranda en az 420px */
.css-BK-mf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    height: calc(100vh - 10.5rem);
    min-height: 420px;
    color: #333;
}


@media (max-width: 900px) {
    .css-BK-mf {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .css-BK-mf-liste {
        max-height: 60vh;
    }
}


.css-BK-mf-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #d3dbe4;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(20, 48, 90, .08);
    overflow: hidden;
}


.css-BK-mf-panel-baslik {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}


.css-BK-mf-panel-ad {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: 16px;
    font-weight: 600;
    color: #14305a;
}


/* Sağ başlıkta seçili malzemenin adı */
.css-BK-mf-secili-ad {
    padding: 1px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}



/* ---------------------------------------------------------------- Süzgeçler */

.css-BK-mf-suzgecler {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}


.css-BK-mf-suzgec {
    padding: .25rem .65rem;
    font-size: 12.5px;
    color: #14305a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    cursor: pointer;
}

    .css-BK-mf-suzgec:hover {
        border-color: #1f8a8a;
    }


.css-BK-mf-suzgec-secili,
.css-BK-mf-suzgec-secili:hover {
    color: #fff;
    background: #1f8a8a;
    border-color: #1f8a8a;
}

.css-BK-mf-suzgec-kirmizi:not(.css-BK-mf-suzgec-secili) {
    color: #b91c1c;
    border-color: #fca5a5;
}

.css-BK-mf-suzgec-turuncu:not(.css-BK-mf-suzgec-secili) {
    color: #b45309;
    border-color: #fcd34d;
}


/* Süzgeçteki sayı */
.css-BK-mf-suzgec-sayi {
    margin-left: .25rem;
    padding: 0 6px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(0, 0, 0, .1);
}


/* Sağda bülten başlangıcı ve borsa seçimi */
.css-BK-mf-suzgec-satiri {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}


.css-BK-mf-etiket {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    font-size: 12.5px;
    color: #475569;
}


.css-BK-mf-girdi {
    padding: .3rem .5rem;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    max-width: 16rem;
}


.css-BK-mf-arama {
    width: 100%;
    padding: .5rem .75rem;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
}

    .css-BK-mf-arama:focus,
    .css-BK-mf-girdi:focus {
        border-color: #1f8a8a;
        box-shadow: 0 0 0 2px rgba(31, 138, 138, .15);
        outline: none;
    }



/* ---------------------------------------------------------------- Kartlar: mevcut eşleşme, öneriler */

.css-BK-mf-kart {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: .6rem .8rem;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid;
}


.css-BK-mf-kart-yesil {
    background: #f0fdf4;
    border-color: #bbf7d0;
}


.css-BK-mf-kart-mavi {
    background: #eff6ff;
    border-color: #bfdbfe;
}


.css-BK-mf-kart-baslik {
    font-weight: 700;
    color: #14305a;
}


.css-BK-mf-kart-uyari {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 5px;
}


.css-BK-mf-kart-dugmeler {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}


.css-BK-mf-oneri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .35rem 0;
    border-top: 1px solid #dbeafe;
}


.css-BK-mf-oneri-kaynak {
    font-size: 11px;
    color: #64748b;
}



/* ---------------------------------------------------------------- Listeler */

.css-BK-mf-liste {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}


.css-BK-mf-bos {
    padding: 1rem;
    color: #64748b;
}


.css-BK-mf-bilgi {
    padding: .4rem .9rem;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}


/* Satır: ad | fiyat | düğme, altında borsa / dönem ve rozetler */
.css-BK-mf-satir {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto; /* minmax: uzun ad fiyat sütununa taşmasın */
    align-items: center;
    column-gap: .6rem;
    row-gap: .15rem;
    padding: .5rem .9rem;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: background-color .15s;
}

    .css-BK-mf-satir:hover {
        background: #f8fafc;
    }


/* Seçili malzeme (sol) */
.css-BK-mf-secili,
.css-BK-mf-secili:hover {
    background: #eff6ff;
    border-left-color: #3b82f6;
}


/* Seçili malzemenin bağlı olduğu borsa satırı (sağ) */
.css-BK-mf-eslesen,
.css-BK-mf-eslesen:hover {
    background: #f0fdf4;
    border-left-color: #10b981;
}


.css-BK-mf-ad {
    min-width: 0;
    overflow-wrap: break-word;
}


.css-BK-mf-fiyat {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}


.css-BK-mf-islem {
    grid-row: span 2;
}


/* Alt satır: ad ile fiyat sütunlarına yayılır, sütun genişliklerini etkilemez */
.css-BK-mf-alt {
    grid-column: 1 / 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem .5rem;
    min-width: 0;
    font-size: 11px;
    color: #6c757d;
}



/* ---------------------------------------------------------------- Rozetler */

.css-BK-mf-rozet {
    padding: 0 7px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
}

.css-BK-mf-rozet-kirmizi {
    color: #b91c1c;
    background: #fee2e2;
}

.css-BK-mf-rozet-turuncu {
    color: #92400e;
    background: #fef3c7;
}

.css-BK-mf-rozet-gri {
    color: #475569;
    background: #e2e8f0;
}

.css-BK-mf-rozet-yesil {
    color: #047857;
    background: #d1fae5;
}



/* ---------------------------------------------------------------- Düğmeler */

.css-BK-mf-dugme {
    padding: .35rem .75rem;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #10b981;
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    cursor: pointer;
    white-space: nowrap;
}

    .css-BK-mf-dugme:hover {
        filter: brightness(1.08);
    }


.css-BK-mf-dugme-iptal {
    background: #dc2626;
}


.css-BK-mf-dugme-gri {
    color: #14305a;
    background: #e2e8f0;
}
