/* stocklist-style-test.css */

/* Excel Grid (Ana Tablo) */
.excel-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto; /* Mobilde yatay kaydırma için */
}

.excel-grid th, .excel-grid td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.excel-grid th {
    background: #7d95ba;
}


table, th, td {
    box-sizing: border-box;
}

/* Tabloyu Ortalamak için CSS */
.table-responsive {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    margin: 0 auto; /* Otomatik olarak ortalar ve yatay marginleri sıfırlar */
    padding: 0; /* Paddingleri sıfırlar */
}

table {
    width: 80%;
    max-width: 100%;
}

/* Stok Tarihi Stil */
#stokTarih {
    font-size: 16px;
    color: #07224c;
    font-weight: bold;
    text-align: right; /* Metni sağa hizalar */
}

/* Date and Download Container */
.date-and-download {
    display: flex;
    flex-direction: column;
    align-items: center; /* Öğeleri merkezde hizalar */
    float: right; /* Kapsayıcıyı sağa yaslar */
    /*margin-bottom: 20px;*/
}

.date-container {
    text-align: right; /* Tarih metnini sağa hizalar */
}

.download-button-container {
    margin-top: 5px;
}

.download-button-container .btn {
    font-size: 14px;
    padding: 5px 10px;
}


.btn-outline-success {
    color: #07224c !important;
    background-color: transparent !important;
    border-color: #07224c !important;
}

.btn-outline-success:hover {
    color: #fff !important;
    background-color: #07224c !important;
    border-color: #07224c !important;
}

/* Checkbox listesi düzenlemeleri */
.productTypes {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.productTypes li {
    flex: 1 1 33%;
    box-sizing: border-box;
    padding: 5px;
}

/* Checkbox etiketleri */
.product-label {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.product-label input[type="checkbox"] {
    margin-right: 5px;
}

.warning-note {
    color: red;
}

/* Ürün Çeşitleri "?" İkonu */
.product-tooltip-icon {
    font-size: 0.8em;
    color: #07224c;
    cursor: pointer;
}

.product-tooltip-icon:hover {
    color: #07224c;
}

/* Pagination Ayarları */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 5px; /* Butonlar arasında boşluk */
}

.pagination button {
    background-color: #07224c;
    border: none;
    color: white;
    padding: 6px 12px; /* Padding değerlerini ayarladık */
    text-decoration: none;
    margin: 0; /* Margin değerini sıfırladık */
    cursor: pointer;
    border-radius: 5px; /* Köşeleri yuvarlattık */
    min-width: 35px; /* Butonların minimum genişliği */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px; /* Yazı boyutunu ayarladık */
    height: 30px;

}

.pagination button.active {
    background-color: white;
    color: #07224c;
}

.pagination button:hover:not(.active) {
    background-color: #0056b3;
}

.pagination input.page-input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: 5px;
}



/* Modal Stil */
#productInfoModal .modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
}

#productInfoModal .modal-header .modal-title {
    font-size: 1.1em;
}

#productInfoModal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 0.5rem !important;
}

#productInfoModal .modal-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

#productInfoModal .modal-body th, 
#productInfoModal .modal-body td {
    border-bottom: 1px solid #ddd;
    text-align: left;
}

#productInfoModal .modal-body tbody tr:hover {
    background-color: #f9f9f9;
}

.modal-content {
    margin-left: auto !important;
    background-color: #dee4ee;
}

.modal-footer {
    padding: 0.5rem !important;
}

/* Mobil Cihazlar İçin Düzenlemeler */
@media (max-width: 768px) {
    

}

/* Mobil Cihazlar Modal Ayarları*/
@media (max-width: 576px) {
    #productInfoModal .modal-dialog {
        max-width: 90%;
    }

    #productInfoModal .modal-body table {
        font-size: 0.8em;
    }

    #productInfoModal .modal-body {
        margin-top: -5%;
        max-height: 80vh;
    }

    table {
        width: 100%;
    }

    .excel-grid th, .excel-grid td {
        padding: 4px;
    }

    /* Mobil Cihazlar İçin Sayfalama Düzenlemeleri */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination button {
        padding: 5px 10px; /* Mobilde padding'i azalttık */
        font-size: 12px; /* Yazı boyutunu küçülttük */
        min-width: 30px; /* Minimum genişliği azalttık */
    }

    .pagination input.page-input {
        width: 40px;
        font-size: 12px;
        padding: 5px;
        margin-left: 5px;
    }

    /* Date and Download Container mobil düzenlemeleri */
    .date-and-download {
        float: none;
        align-items: flex-end;
    }

    #stokTarih {
        text-align: right;
    }

    /* Checkbox listesi mobil düzenlemeleri */
    .productTypes {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
    }



    .product-label {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 2px 0; /* Üst ve alt boşluk: 2px */
    }


    /* Liste öğeleri arasındaki boşluğu kaldırma */
    .productTypes li + li {
        margin-top: 0;
    }
    

    ul.productTypes li,
    ul.productTypes li label.product-label,
    ul.productTypes li label.product-label input[type="checkbox"],
    ul.productTypes li label.product-label span {
        margin: 0 !important;
        padding: 2px 15px !important;
    }
}


/* Tablonun mobilde düzgün görünmesi için */
.excel-grid {
    overflow-x: auto;
}

/* Tooltip Stil */
.product-info-icon {
    font-size: 0.8em;
    cursor: pointer;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
}

.product-info-icon:hover {
    color: #0056b3;
}

.product-info-icon .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-info-icon .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.product-info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

