/* ===== MOBİL MENÜ OVERLAY ===== */
.stok-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* ===== TEMEL RESET (Bootstrap kaldırıldığı için, buton/input yazı kalınlığı ve
   tek satır hizası bozulmasın diye) ===== */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    margin: 0;
}

/* ===== FIELDSET / LEGEND (Stok Arama çerçevesi) — bootstrap kaldırılınca
   legend yazısı çerçeve çizgisinin ortasından geçiyordu, bunu düzeltir ===== */
fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: calc(1.275rem + 0.3vw);
    line-height: inherit;
}

legend+* {
    clear: left;
}

/* ===== HR — bootstrap'taki açık/soluk tondaki çizgiyi geri getirir ===== */
hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

/* ===== KAYITLI STOK KARTLARI listesi — hücre paddingleri hafif büyütüldü ===== */
#stok-listesi-kutu th,
#stok-listesi-kutu td {
    padding: 10px 14px;
}

/* ===== TABLO DEĞER HÜCRESİ (mavi, kalın metin) ===== */
.stok-td-mavi {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    color: #0000ff;
    font-weight: 600;
}

/* ===== FORM ETİKETİ (grid içindeki label) ===== */
.stok-form-label {
    font-weight: 600;
    text-align: left;
}

/* ===== FORM SATIRI (input + yardımcı metin/buton yan yana) ===== */
.stok-form-satir {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== INPUT / SELECT (tam genişlik) ===== */
.stok-input {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

.stok-input-sm {
    width: 100%;
    padding: 6px 6px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

/* ===== TABLO SATIR RENKLERİ ===== */
.stok-tr-beyaz {
    background: #fff;
    height: 36px;
}

.stok-tr-gri {
    background: #f8f8f8;
    height: 36px;
}

.stok-tr-beyaz-sm {
    background: #fff;
    height: 32px;
}

.stok-tr-gri-sm {
    background: #f8f8f8;
    height: 32px;
}

/* ===== SEÇİLEBİLİR (tıklanabilir) SATIRLAR ===== */
.stok-row-beyaz {
    cursor: pointer;
    background: #fff;
}

.stok-row-gri {
    cursor: pointer;
    background: #f8f8f8;
}

/* ===== PANEL BAŞLIK — mobil panel (8px 14px) ===== */
.stok-panel-baslik {
    background: #1a3c6e;
    color: #fff;
    padding: 9px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px 3px 0 0;
}

/* ===== PANEL BAŞLIK — masaüstü popup (6px 12px) ===== */
.stok-panel-baslik-sm {
    background: #1a3c6e;
    color: #fff;
    padding: 7px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== PANEL KAPAT BUTONU ===== */
.stok-panel-kapat {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.stok-panel-kapat-sm {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

/* ===== MOBİL PANEL SARMALAYICI ===== */
.stok-mobil-panel {
    display: none;
    background: #d6eaf8;
    border: 2px solid #1a3c6e;
    border-radius: 4px;
    width: calc(100% - 8px);
    margin: 8px auto 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

}

/* ===== FIELDSET (bilgi kutusu) ===== */
.stok-fieldset {
    border: 1px solid #7aabcf;
    border-radius: 4px;
    background: #eaf4fb;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.stok-fieldset-lg {
    border: 1px solid #7aabcf;
    border-radius: 4px;
    background: #eaf4fb;
    padding: 10px 12px;
    margin-bottom: 10px;
}

/* ===== LEGEND (fieldset başlığı) ===== */
.stok-legend {
    font-weight: 700;
    font-size: 14px;
    color: #1a3c6e;
    padding: 0 5px;
}

/* ===== PANEL BAŞLIK YAZISI (span) ===== */
.stok-panel-baslik-yazi {
    font-weight: 600;
    font-size: 15px;
}

/* ===== DİKEY FLEX (gap:3px) — form değer sütunları ===== */
.stok-flex-col-gap3 {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ===== BAŞLIK + KAPAT BUTONU SATIRI (iç panel) ===== */
.stok-panel-baslik-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* ===== RAPOR TABLOSU HÜCRESİ (düz, renksiz) ===== */
.stok-rapor-td {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
}

/* ===== ETİKET — LACİVERT KALIN ===== */
.stok-label-mavi {
    font-weight: 600;
    color: #1a3c6e;
}

/* ===== RAPOR TABLOSU BAŞLIK HÜCRESİ (alt çizgili) ===== */
.stok-rapor-th {
    padding: 6px 10px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* ===== TABLO ÇERÇEVESİ (köşeleri yuvarlatılmış sarmalayıcı) ===== */
.stok-tablo-cerceve {
    border: 1px solid #dee2e6;
    overflow: hidden;
}

/* ===== TABLO DEĞER HÜCRESİ VARYANTLARI (mavi metin) ===== */
.stok-td-mavi-sm {
    padding: 7px 12px;
    border: 1px solid #dee2e6;
    color: #0000ff;
    font-weight: 600;
}

.stok-td-mavi-alt {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    color: #0000ff;
    font-weight: 600;
}

.stok-td-mavi-700 {
    padding: 8px 8px;
    border: 1px solid #dee2e6;
    color: #0000ff;
    font-weight: 700;
}

.stok-td-mavi-700-sm {
    padding: 7px 10px;
    border: 1px solid #dee2e6;
    color: #0000ff;
    font-weight: 700;
}

/* ===== RAPOR TABLOSU — ALT ÇİZGİLİ BOŞ HÜCRE ===== */
.stok-rapor-td-bos {
    border-bottom: 1px solid #dee2e6;
}

/* ===== SIRALANABİLİR TABLO BAŞLIĞI ===== */
.stok-th-sirala {
    font-weight: 600;
    width: 80px;
    cursor: pointer;
}

/* ===== SABİT GENİŞLİKTE SELECT (150px) ===== */
.stok-select-150 {
    width: 150px;
    padding: 6px 6px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 12px;
    background: #fff;
}

/* ===== BASİT INPUT (box-sizing olmadan) ===== */
.stok-input-basit {
    width: 100%;
    padding: 7px 6px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
}

/* ===== DÜZ TABLO BAŞLIĞI (renksiz) ===== */
.stok-th-basit {
    padding: 9px 10px;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

/* ===== SAĞA YASLI BAŞLIK — %15 GENİŞLİK ===== */
.stok-th-sag-15 {
    padding: 7px 10px;
    border: 1px solid #dee2e6;
    text-align: right;
    font-weight: 700;
    color: #1a3c6e;
    width: 15%;
}

/* ===== SAĞA YASLI DEĞER HÜCRESİ (mavi) ===== */
.stok-td-sag-mavi {
    padding: 7px 10px;
    border: 1px solid #dee2e6;
    text-align: right;
    color: #0000ff;
    font-weight: 700;
}

/* ===== PANEL GÖVDE PADDING ===== */
.stok-panel-govde {
    padding: 14px;
}

/* ===== DİKEY FLEX — flex:1 VARYANTI ===== */
.stok-flex-col-gap3-flex1 {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

/* ===== FORM SATIRI — gap:8px VARYANTI ===== */
.stok-form-satir-8 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== TABLO TEMEL STİLİ ===== */
.stok-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

/* ===== İÇ PADDING (genel amaçlı) ===== */
.stok-ic-padding {
    padding: 10px;
}

/* ===== YATAY FLEX — gap:6px (align-items olmadan) ===== */
.stok-flex-gap6 {
    display: flex;
    gap: 6px;
}

/* ===== BUTON İKONU (emoji/simge boyutu) ===== */
.stok-buton-ikon {
    font-size: 20px;
}

/* ===== STOK HAREKET RAPORU — başlık scroll'da sabit kalsın ===== */
#stokHareketRaporPanel .stok-panel-baslik-sm {
    position: sticky;
    top: 0;
    z-index: 2;
}

@media (max-width: 991px) {
    #mobilStokPanel {
        display: block;
    }
}