.miktarinp {
    text-align: center !important;
}
input.form-control-solid:focus{
    background-color: #fff8dc !important;
}
.tabledropdown {
    position: fixed; /* Tablo sınırlarından çıkmak için fixed */
    z-index: 9999 !important;
    display: none; /* Başlangıçta gizli */
    width: 190px; /* Sabit genişlik */
    max-height: 400px; /* Maksimum yükseklik */
    overflow-y: auto; /* Gerekirse kaydırma */
    background: white;
    border: 1px solid #e4e6ea;
    border-radius: 0.475rem;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
}

.tabledropdown.show {
    display: block !important;
}

/* Tablo overflow ayarları - menünün dışarı çıkabilmesi için */
table {
    overflow: visible !important;
}
table td, table th {
    overflow: visible !important;
}
.table-active {
    background-color: #fff8dc !important;
    --bs-table-bg-state: #fff8dc !important;
}

.form-select-solid {
    background-color: var(--bs-secondary); !important;
    color: var(--bs-text-dark) !important;
    border-color: var(--bs-secondary); !important;
}
.select2-selection__placeholder {
    color: var(--bs-text-dark) !important;
}

/* Select2 dropdown z-index düzeltmesi */
.select2-container--open .select2-dropdown {
    z-index: 99999 !important;
}

.select2-container--open .select2-dropdown--below {
    z-index: 99999 !important;
}

/* Modal z-index değeri */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* Autocomplete Dropdown Styles */
.hpx-autocomplete-dropdown {
    position: absolute;
    z-index: 10000;
    background: white;
    border: 1px solid #e4e6ea;
    border-radius: 0.475rem;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    width: 100%;
    margin-top: 2px;
}

.hpx-autocomplete-dropdown.show {
    display: block;
}

.hpx-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.hpx-autocomplete-item:last-child {
    border-bottom: none;
}

.hpx-autocomplete-item:hover,
.hpx-autocomplete-item.active {
    background-color: #f8f9fa;
}

.hpx-autocomplete-item .item-name {
    font-weight: 600;
    color: #181c32;
    display: block;
    margin-bottom: 2px;
}

.hpx-autocomplete-item .item-details {
    font-size: 0.85rem;
    color: #7e8299;
}

.hpx-autocomplete-item .item-price {
    color: #009ef7;
    font-weight: 500;
}

.hpx-autocomplete-no-result {
    padding: 12px;
    text-align: center;
    color: #7e8299;
}

.hpx-autocomplete-add-new {
    padding: 10px 12px;
    cursor: pointer;
    background-color: #f1faff;
    color: #009ef7;
    font-weight: 500;
    border-top: 2px solid #e4e6ea;
    transition: all 0.2s ease;
}

.hpx-autocomplete-add-new:hover {
    background-color: #e1f0ff;
}

.hpx-autocomplete-add-new i {
    margin-right: 5px;
}

/* Modal üstüne modal açma - z-index düzeltmesi */
#hpx_invoice_quickstockaddmodal {
    z-index: 1060 !important; /* Ana modal: 1055, Backdrop: 1050 */
}

#hpx_invoice_quickstockaddmodal .modal-backdrop {
    z-index: 1059 !important;
}

/* Teklif sayfası - Müşteri ekle modal */
#hpx_musterieklemodaltek {
    z-index: 1060 !important;
}

#hpx_musterieklemodaltek + .modal-backdrop {
    z-index: 1059 !important;
}

/* Modal backdrop blur efekti */
.modal-backdrop {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* İç içe modal'lar için backdrop opacity ayarı */
.modal.show + .modal-backdrop.show ~ .modal-backdrop.show {
    opacity: 0.3 !important;
}

/* Ana modal açıkken arkaplandaki modal blur'u */
body.modal-open .modal:not(.show) {
    filter: blur(2px);
}

/* Eğer modal zaten açıksa, backdrop'u görünmez yap */
.modal.show ~ #hpx_invoice_quickstockaddmodal .modal-backdrop {
    opacity: 0.3 !important;
}

.swal-discount-modal {
    z-index: 99999 !important;
}

.swal-discount-popup {
    z-index: 100000 !important;
}

/* SweetAlert container her zaman modal üzerinde */
.swal2-container {
    z-index: 99999 !important;
}

/* SweetAlert popup her zaman en üstte */
.swal2-popup {
    z-index: 100000 !important;
}

/* SweetAlert backdrop Bootstrap modal backdrop üzerinde */
.swal2-backdrop-show {
    z-index: 99998 !important;
}

/* SweetAlert içindeki inputlar tıklanabilir */
.swal2-popup input,
.swal2-popup textarea,
.swal2-popup select,
.swal2-popup button {
    pointer-events: auto !important;
    z-index: 100001 !important;
    position: relative !important;
}

/* SweetAlert input focus olduğunda */
.swal2-popup input:focus,
.swal2-popup textarea:focus,
.swal2-popup select:focus {
    outline: 2px solid #009ef7 !important;
    outline-offset: 2px !important;
}

/* Modal backdrop SweetAlert'in altında */
.modal-backdrop {
    z-index: 1050 !important;
}

/* Modal SweetAlert'in altında */
.modal.show {
    z-index: 1055 !important;
}

/* SweetAlert açıkken modal inputları devre dışı */
.swal2-shown .modal input,
.swal2-shown .modal textarea,
.swal2-shown .modal select,
.swal2-shown .modal button {
    pointer-events: none !important;
}
body .swal2-container {
    z-index: 99999 !important;
}
body .swal2-popup {
    z-index: 100000 !important;
}
/* SweetAlert içindeki tüm elementler tıklanabilir */
body .swal2-popup input,
body .swal2-popup textarea,
body .swal2-popup select,
body .swal2-popup button {
    pointer-events: auto !important;
    z-index: 100001 !important;
}
body .swal2-popup .swal2-html-container {
    pointer-events: auto !important;
}
body .swal2-popup .swal2-actions {
    pointer-events: auto !important;
}
body .swal2-popup .form-control {
    pointer-events: auto !important;
}
body .swal2-popup .form-select {
    pointer-events: auto !important;
}
/* Modal backdrop SweetAlert'in altında */
body .modal-backdrop {
    z-index: 1050 !important;
}
/* Modal SweetAlert'in altında */
body .modal {
    z-index: 1055 !important;
}
/* SweetAlert açıkken Body'ye eklenen class */
body.swal2-shown .modal {
    z-index: 1055 !important;
}
body.swal2-shown .modal-backdrop {
    z-index: 1050 !important;
}


