﻿/* ============================================
   STANDART CHECKBOX - .checkbox-item
   ============================================ */
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    border: none !important;
    box-shadow: none !important;
}

    .checkbox-item:hover {
        background-color: #f8f9fa;
    }

    .checkbox-item input[type="checkbox"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #6f42c1 !important;
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-appearance: auto;
        appearance: auto;
    }

        .checkbox-item input[type="checkbox"]:focus,
        .checkbox-item input[type="checkbox"]:focus-visible,
        .checkbox-item input[type="checkbox"]:active {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

        .checkbox-item input[type="checkbox"]:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

            .checkbox-item input[type="checkbox"]:disabled + label {
                opacity: 0.6;
                cursor: not-allowed;
            }

    .checkbox-item label {
        cursor: pointer;
        user-select: none;
        margin: 0;
        font-family: Tahoma, Geneva, sans-serif;
        font-size: 0.9rem;
        line-height: 1.4;
        color: #495057;
        font-weight: 500;
    }

.checkbox-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-grid-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
}


/* ============================================
   STANDART TEXTBOX / INPUT - .std-input
   DxTextBox için: InputCssClass="std-input"
   Native input için: class="std-input"
   ============================================ */
.std-input {
    font-family: Tahoma, Geneva, sans-serif !important;
    font-size: 0.9rem !important;
    color: #495057;
}

    /* DxTextBox içindeki gerçek input elementi */
    .dxbl-text-edit .std-input,
    .std-input.dxbl-text-edit-input-container input,
    input.std-input {
        font-family: Tahoma, Geneva, sans-serif !important;
        font-size: 0.9rem !important;
    }

/* ============================================
   STANDART LABEL - .std-label
   ============================================ */
.std-label {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 2px;
}






html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* KisaNotlar Popup - Mobil Ortalama */
@media (max-width: 767px) {
    .kisanotlar-popup {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        margin: 0 !important;
        width: 90vw !important;
        max-width: 90vw !important;
    }
}

/* HastaKimlik Popup - Mobil Ortalama */
@media (max-width: 767px) {
    .mobile-centered-popup {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        margin: 0 !important;
        width: 96vw !important;
        max-width: 96vw !important;
    }
}

/* genel kullandıklarım font boyutu */
.dxbs-popup .dxbs-popup-header {
    font-size: 0.65rem !important;
}

.parapopuptext {
    font-size: 0.75rem !important;
}
/* genel kullandıklarım font boyutu */



.modern-borclu-popup .dxbs-popup-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

    .modern-borclu-popup .dxbs-popup-body > div {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

.borclu-grid-container {
    padding: 10px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.toplam-kartlari {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
}



a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
html, body {
    overflow-x: hidden !important; /* Zaten var ama emin olun */
    max-width: 100vw !important;
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
}

/* Mobil Popup Ortalama - CssClass doğrudan .dxbl-popup üzerine eklenir */
@media (max-width: 767px) {
    .dxbl-popup.mobile-centered-popup {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        margin: 0 !important;
        width: 96vw !important;
        max-width: 96vw !important;
        box-sizing: border-box !important;
    }

    /* kisanotlar için de aynı düzeltme */
    .dxbl-popup.kisanotlar-popup {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        margin: 0 !important;
        width: 96vw !important;
        max-width: 96vw !important;
        box-sizing: border-box !important;
    }
}

/* Viewport sabitleme - popup root için en kritik kısım */
@media (max-width: 576px) {
    .dxbl-popup-root {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important; /* Gerekirse */
        overflow: hidden !important; /* Sağ kaymayı önler */
    }

        .dxbl-popup-root .dxbl-popup,
        .mobile-centered-popup .dxbl-popup {
            position: relative !important;
            margin: 0 auto !important;
            width: 96vw !important;
            max-width: 96vw !important; /* veya min(412px, 96vw) */
            max-height: 88vh !important;
            overflow-y: auto !important;
            left: auto !important;
            right: auto !important;
            transform: none !important; /* Transform varsa çakışma yapar */
        }

        /* Ekstra güvenlik - sağa kaymayı zorla engelle */
        .dxbl-popup-root .dxbl-popup {
            box-sizing: border-box !important;
        }
}
 

/* ✅ DevExpress DxPopup — Mobilde tam ortalama */
 


 

 
 

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY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cgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Global layout düzeltmeleri */
body {
    margin: 0;
    padding: 0;
}

.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── TextBox: mor border (.modern-input) ── */
.modern-input .dxbl-text-edit-input-container,
.modern-input.dxbl-text-edit .dxbl-text-edit-input-container,
.dxbl-text-edit.modern-input .dxbl-text-edit-input-container {
    border: 1px solid #6f42c1 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

    .modern-input .dxbl-text-edit-input-container:focus-within,
    .modern-input.dxbl-text-edit .dxbl-text-edit-input-container:focus-within,
    .dxbl-text-edit.modern-input .dxbl-text-edit-input-container:focus-within,
    .modern-input .dxbl-text-edit-input-container.dxbl-focus,
    .modern-input .dxbl-text-edit-input-container.dxbl-state-focused {
        border-color: #6f42c1 !important;
        box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25) !important;
        outline: none !important;
    }

/* ── Ortak Popup / Form Stilleri ── */
.basligi-ortala span:first-child {
    width: 100%;
    text-align: center;
}

.toolbar-btn {
    min-width: 120px;
}

.butonsilduzenle-btn {
    min-width: 60px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.grid-container {
    padding: 10px;
    height: 100%;
    overflow: hidden;
}

.modern-grid {
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

    .modern-grid .dxbl-grid-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        font-weight: 600;
        color: #495057;
        font-size: 12px;
    }

    .modern-grid .dxbl-grid-data-row:hover {
        background-color: rgba(111, 66, 193, 0.05);
    }

    .modern-grid .dxbl-grid-data-row.dx-state-focused {
        background-color: rgba(111, 66, 193, 0.1);
    }

    .modern-grid .dxbl-grid-data-cell {
        font-size: 12px;
    }

.modern-tedavi-popup .dxbs-popup-content {
    padding: 0 !important;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modern-tedavi-popup .dxbs-popup-header {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
    border: none;
}

.modern-form-popup .dxbs-popup-content {
    padding: 0 !important;
    background: #ffffff;
    border-radius: 12px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modern-form-popup .dxbs-popup-header {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    flex: 0 0 auto;
}

.modern-form-popup .dxbs-popup-body {
    flex: 1 1 auto;
    overflow: auto;
}

.form-container {
    padding: 1rem 1.5rem;
    overflow-y: auto;
}

.form-row-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.form-label-inline {
    width: 25%;
    max-width: 25%;
    min-width: 25%;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    text-align: right;
    flex-shrink: 0;
    padding-right: 8px;
    padding-top: 8px;
}

    .form-label-inline.required::after {
        content: " *";
        color: #dc3545;
        font-weight: bold;
    }

.form-input-inline {
    width: 75%;
    flex: 0 0 75%;
    min-width: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #6f42c1;
    margin-top: 1rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* ============================================
   TanBankaPopup - tüm form borderları
   ============================================ */

/* Banka adı: DxTextBox */
.modern-form-popup .modern-input,
.modern-form-popup .modern-input.dxbl-text-edit,
.modern-form-popup .modern-input .dxbl-text-edit-input-container,
.modern-form-popup .modern-input .dxbl-text-edit-input {
    border-color: #6f42c1 !important;
}

    .modern-form-popup .modern-input,
    .modern-form-popup .modern-input .dxbl-text-edit-input-container {
        border-style: solid !important;
        border-width: 1px !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

        .modern-form-popup .modern-input:focus-within,
        .modern-form-popup .modern-input .dxbl-text-edit-input-container:focus-within {
            border-color: #6f42c1 !important;
            box-shadow: 0 0 0 0.15rem rgba(111, 66, 193, 0.2) !important;
            outline: none !important;
        }

/* Komisyon: DxSpinEdit */
.modern-form-popup .dxbl-spin-edit,
.modern-form-popup .dxbl-spin-edit .dxbl-text-edit,
.modern-form-popup .dxbl-spin-edit .dxbl-text-edit-input-container {
    border-color: #6f42c1 !important;
}

    .modern-form-popup .dxbl-spin-edit .dxbl-text-edit-input-container {
        border-style: solid !important;
        border-width: 1px !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

        .modern-form-popup .dxbl-spin-edit:focus-within,
        .modern-form-popup .dxbl-spin-edit .dxbl-text-edit-input-container:focus-within {
            border-color: #6f42c1 !important;
            box-shadow: 0 0 0 0.15rem rgba(111, 66, 193, 0.2) !important;
            outline: none !important;
        }

/* Özellikler: dış kapsayıcı borderını kaldır */
.modern-form-popup .checkbox-grid-vertical,
.modern-form-popup .checkbox-item,
.modern-form-popup .form-input-inline {
    border: none !important;
    box-shadow: none !important;
}

    /* Özellikler: checkbox işaret rengi */
    .modern-form-popup .checkbox-item input[type="checkbox"] {
        accent-color: #6f42c1 !important;
        border-color: #6f42c1 !important;
        outline: none !important;
        box-shadow: none !important;
    }

        .modern-form-popup .checkbox-item input[type="checkbox"]:focus,
        .modern-form-popup .checkbox-item input[type="checkbox"]:focus-visible {
            accent-color: #6f42c1 !important;
            border-color: #6f42c1 !important;
            outline: none !important;
            box-shadow: none !important;
        }


/* ============================================
   HastaKimlik - tüm text alanları
   ============================================ */

/* Native text input'lar */
.hastakimlik-popup input[type="text"]:not(.dxbl-text-edit-input),
.hastakimlik-popup input[type="number"]:not(.dxbl-text-edit-input),
.hastakimlik-popup input.form-control {
    border: 1px solid #6f42c1 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

/* DevExpress DxTextBox kapsayıcıları */
.hastakimlik-popup .dxbl-text-edit,
.hastakimlik-popup .dxbl-text-edit-input-container,
.hastakimlik-popup .dxbl-date-edit,
.hastakimlik-popup .dxbl-date-edit-input-container {
    border-color: #6f42c1 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

    /* Focus durumunda da mor border */
    .hastakimlik-popup input[type="text"]:focus,
    .hastakimlik-popup input[type="number"]:focus,
    .hastakimlik-popup input.form-control:focus,
    .hastakimlik-popup .dxbl-text-edit:focus-within,
    .hastakimlik-popup .dxbl-text-edit-input-container:focus-within,
    .hastakimlik-popup .dxbl-date-edit:focus-within,
    .hastakimlik-popup .dxbl-date-edit-input-container:focus-within {
        border-color: #6f42c1 !important;
        outline: none !important;
        box-shadow: 0 0 0 0.15rem rgba(111, 66, 193, 0.2) !important;
    }

/* TanFiyatDil düzenleme popup'ının dış borderı */
.tanfiyatdil-edit-popup .dxbl-popup,
.tanfiyatdil-edit-popup .dxbl-popup-content,
.tanfiyatdil-edit-popup .dxbl-popup-body {
    border: none !important;
    box-shadow: none !important;
}

/* TanFiyatDil düzenleme formunun dış çerçevesini kaldır */
.tanfiyatdil-edit-popup .form-section {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff;
}

/* TanStatusPopup form butonlarının üst çizgisi */
.status-form-actions {
    border-top: 2px solid #6f42c1 !important;
    padding-top: 12px;
    margin-top: 16px !important;
}

/* TanLabelPopup form butonlarının üst çizgisi */
.label-form-actions {
    border-top: 2px solid #6f42c1 !important;
    padding-top: 12px;
    margin-top: 16px !important;
}

/* TanRandevuPopup form butonlarının üst çizgisi */
.randevu-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 2px solid #6f42c1 !important;
}