
div.dataTables_scrollBody {
    border-left: 0px solid #ddd !important;
}

table.dataTable > tbody > tr.selected > * {
    box-shadow: inset 0 0 0 9999px rgb(37, 160, 226, 0.1) !important;
    box-shadow: inset 0 0 0 9999px rgb(37, 160, 226, 0.1) !important;
    color: rgb(37, 160, 226) !important;
}

table.dataTable {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    width:100%;
}

.dt-info {
    padding: 10px 8px;
    background-color: rgb(243, 246, 249,1.0);
}
table.dataTable thead tr > .dtfc-fixed-start, table.dataTable thead tr > .dtfc-fixed-end, table.dataTable tfoot tr > .dtfc-fixed-start, table.dataTable tfoot tr > .dtfc-fixed-end {
    background-color: #e4e8ed;
}
table.dataTable tbody tr > .dtfc-fixed-start, table.dataTable tbody tr > .dtfc-fixed-end, table.dataTable tbody tr > .dtfc-fixed-start, table.dataTable tbody tr > .dtfc-fixed-end {
    background-color: #f3f6f9;
}
div.dtsb-searchBuilder {
    margin-bottom: 0em !important;
}
div.dt-container.dt-empty-footer .dt-scroll-body {
    border-bottom: 0px solid rgba(0, 0, 0, 0.3) !important;
}
.sbpopover {
    min-width: 600px;
}


.avatar-xlg {
    height: 18rem;
    width: 12rem;
}

.navbar-menu .navbar-nav .nav-sm .nav-link.active {
    font-weight: 900 !important;
}
.navbar-menu .navbar-nav .nav-link.active {
    font-weight: 900 !important;
}

table.calcx > :not(caption) > * > * {
    padding: 0.1rem !important;
}

table.dataTable.table-striped > tbody > tr.odd > * {
    box-shadow: inset 0 0 0 9999px rgb(243 246 249) !important;
}

table.dataTable > tfoot > tr > th, table.dataTable > tfoot > tr > td {
    border-top: 0px solid rgba(0, 0, 0, 0.3);
}

.text-right {
    text-align:right !important;
}

.form-check-input{
    width:20px !important;
    height:20px !important;
}

/* Onay kutusunun ETİKETİ (KULLANICI KARARI, 2026-09-25). Kutu yukarıda 20x20'ye
   büyütüldüğü için Bootstrap'in varsayılan satır yüksekliği etiketi kutunun üst
   kenarına hizalıyor ve yazı kutuya yapışık duruyordu. Hizalama ve boşluk SAYFADA
   değil burada, tek yerde çözülür - aksi hâlde her ekranda ayrı style/sınıf eklenirdi.
   Kural ortak kütüphanede olduğu için HibritERP ve HibritHESAP'ta aynı görünür. */
.form-check-label {
    line-height: 1.7rem;
    padding-left: 5px;
}

table.dataTable > thead > tr > th, table.dataTable > thead > tr > td
 {
    border-bottom: 0px solid rgba(0, 0, 0, 0.3);
}

/* ============================== SOHBET WIDGET'I ==============================
   Components/Shared/ChatWidget.razor - sağ alttaki balon + açılır panel. Velzon görsel dili:
   tema değişkenleri (koyu temada da uyumlu), soft renkli avatar/rozetler, yardım panelindeki
   başlık düzeni ("kicker" etiket + ikon kutusu). */
.chat-widget-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--vz-primary, #25a0e2), color-mix(in srgb, var(--vz-primary, #25a0e2) 70%, #000));
    box-shadow: 0 .5rem 1.25rem rgba(var(--vz-primary-rgb, 37, 160, 226), .45);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.chat-widget-bubble:hover,
.chat-widget-bubble:focus-visible {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 .75rem 1.5rem rgba(var(--vz-primary-rgb, 37, 160, 226), .55);
    outline: none;
}

.chat-widget-bubble i {
    line-height: 1;
    transition: transform .2s ease;
}

.chat-widget-bubble.open i {
    transform: rotate(90deg);
}

.chat-widget-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    background: #f06548;
    border: 2px solid var(--vz-body-bg, #f3f3f9);
    border-radius: 50rem;
    animation: chat-badge-pop .3s ease-out;
}

.chat-widget-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    z-index: 1050;
    width: min(370px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--vz-body-color, #212529);
    background: var(--vz-card-bg, #fff);
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: .85rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
    transform-origin: bottom right;
    animation: chat-panel-in .2s cubic-bezier(.2, .8, .2, 1);
}

/* --- Başlık --- */
.chat-widget-header {
    padding: .9rem 1rem .75rem;
    border-bottom: 1px solid var(--vz-border-color, #e9ebec);
    background: linear-gradient(135deg, rgba(var(--vz-primary-rgb, 37, 160, 226), .12), rgba(var(--vz-primary-rgb, 37, 160, 226), .02));
}

.chat-widget-header-icon {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
    background: var(--vz-primary, #25a0e2);
    border-radius: .6rem;
    box-shadow: 0 .3rem .8rem rgba(var(--vz-primary-rgb, 37, 160, 226), .35);
}

.chat-widget-kicker {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--vz-primary, #25a0e2);
}

.chat-widget-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
}

.chat-widget-close {
    margin-right: -.35rem;
}

/* Durumum: üç düğmeli seçici */
.chat-widget-status {
    display: flex;
    gap: .25rem;
    margin-top: .7rem;
    padding: .2rem;
    background: var(--vz-card-bg, #fff);
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 50rem;
}

.chat-widget-status-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .25rem .4rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--vz-secondary-color, #878a99);
    background: transparent;
    border: 0;
    border-radius: 50rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.chat-widget-status-btn:hover {
    color: var(--vz-body-color, #212529);
    background: var(--vz-light, #f3f6f9);
}

.chat-widget-status-btn.active {
    color: var(--vz-primary, #25a0e2);
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .12);
}

/* --- Sekmeler --- */
.chat-widget-tabs {
    display: flex;
    padding: 0 .5rem;
    border-bottom: 1px solid var(--vz-border-color, #e9ebec);
}

.chat-widget-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .6rem .5rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--vz-secondary-color, #878a99);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.chat-widget-tab:hover {
    color: var(--vz-body-color, #212529);
}

.chat-widget-tab.active {
    color: var(--vz-primary, #25a0e2);
    border-bottom-color: var(--vz-primary, #25a0e2);
}

/* --- Arama --- */
.chat-widget-search {
    position: relative;
    padding: .6rem .75rem;
}

.chat-widget-search > i {
    position: absolute;
    top: 50%;
    left: 1.35rem;
    transform: translateY(-50%);
    color: var(--vz-secondary-color, #878a99);
    pointer-events: none;
}

.chat-widget-search .form-control {
    padding-left: 2rem;
    background-color: var(--vz-light, #f3f6f9);
    border-color: transparent;
    border-radius: 50rem;
}

.chat-widget-search .form-control:focus {
    background-color: var(--vz-card-bg, #fff);
    border-color: rgba(var(--vz-primary-rgb, 37, 160, 226), .4);
    box-shadow: 0 0 0 .2rem rgba(var(--vz-primary-rgb, 37, 160, 226), .12);
}

/* --- Liste --- */
.chat-widget-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 .4rem .4rem;
}

.chat-widget-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .6rem;
    text-align: left;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: .55rem;
    cursor: pointer;
    transition: background-color .12s ease;
}

.chat-widget-item:hover,
.chat-widget-item:focus-visible {
    background: var(--vz-light, #f3f6f9);
    outline: none;
}

.chat-widget-item + .chat-widget-item {
    margin-top: 1px;
}

.chat-widget-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.chat-widget-item-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-widget-item-time {
    flex: 0 0 auto;
    font-size: .68rem;
    color: var(--vz-secondary-color, #878a99);
}

.chat-widget-item-preview {
    min-width: 0;
    font-size: .75rem;
    color: var(--vz-secondary-color, #878a99);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Okunmamış sohbet: kalın önizleme + vurgulu zaman */
.chat-widget-item.unread .chat-widget-item-preview {
    color: var(--vz-body-color, #212529);
    font-weight: 500;
}

.chat-widget-item.unread .chat-widget-item-time {
    color: var(--vz-primary, #25a0e2);
    font-weight: 600;
}

.chat-widget-item-action {
    flex: 0 0 auto;
    font-size: 1rem;
    color: var(--vz-primary, #25a0e2);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

.chat-widget-item:hover .chat-widget-item-action,
.chat-widget-item:focus-visible .chat-widget-item-action {
    opacity: 1;
    transform: none;
}

/* Avatar: baş harfler, soft renk (ada göre sabit) + durum noktası */
.chat-widget-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    border-radius: 50%;
}

.chat-widget-avatar i {
    font-size: 1.1rem;
}

/* Mesaj balonunun yanındaki küçük avatar (Mesajlar sayfası, .chat-avatar içinde).
   Velzon'un kendi kuralı <img> bekliyor; bizde resim yerine baş harf kullanılıyor. */
.chat-widget-avatar-sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: .68rem;
}

.chat-widget-avatar-sm i {
    font-size: .85rem;
}

/* Yeni grup formundaki üye listesi - sayfaya style="max-height:..." yazılmaz. */
.chat-group-members {
    max-height: 9rem;
    overflow-y: auto;
}

.chat-avatar-primary { color: var(--vz-primary, #25a0e2); background: rgba(var(--vz-primary-rgb, 37, 160, 226), .14); }
.chat-avatar-success { color: #0ab39c; background: rgba(10, 179, 156, .14); }
.chat-avatar-info { color: #299cdb; background: rgba(41, 156, 219, .14); }
.chat-avatar-warning { color: #d99a2b; background: rgba(247, 184, 75, .18); }
.chat-avatar-danger { color: #f06548; background: rgba(240, 101, 72, .14); }
.chat-avatar-secondary { color: #6559cc; background: rgba(101, 89, 204, .14); }

.chat-widget-avatar-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: .7rem;
    height: .7rem;
    margin: 0;
    border: 2px solid var(--vz-card-bg, #fff);
}

/* Durum noktası (liste, avatar ve durum seçici) */
.presence-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.presence-available { background: #0ab39c; }
.presence-busy { background: #f06548; }
.presence-meeting { background: #f7b84b; }
.presence-offline { background: #adb5bd; }

/* --- Boş durum --- */
.chat-widget-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: .8rem;
    color: var(--vz-secondary-color, #878a99);
}

.chat-widget-empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto .75rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--vz-primary, #25a0e2);
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .1);
    border-radius: 50%;
}

/* --- Alt bağlantı --- */
.chat-widget-footer {
    display: block;
    padding: .6rem;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    color: var(--vz-primary, #25a0e2);
    border-top: 1px solid var(--vz-border-color, #e9ebec);
    text-decoration: none;
    transition: background-color .15s ease;
}

.chat-widget-footer:hover {
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .06);
}

@keyframes chat-panel-in {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: none; }
}

@keyframes chat-badge-pop {
    0% { transform: scale(.4); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .chat-widget-panel,
    .chat-widget-badge { animation: none; }
    .chat-widget-bubble,
    .chat-widget-bubble i { transition: none; }
}
/* Basit, JS-interop gerektirmeyen modal stili - AverageMaturityModal ve
   VendorSearchModal component'leri conditional render (@if IsVisible)
   ile açılıp kapanıyor, Bootstrap'in JS tabanlı modal() metodu YOK. */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

/* KAYDIRMA POPUP'IN GÖVDESİNDE OLUR (KULLANICI KARARI, 2026-09-25).
   Eskiden kaydırma çubuğu KAPSAYICIDAYDI (`overflow-y: auto` burada): uzun bir formda
   başlık ve düğme çubuğu da içerikle birlikte yukarı kayıyor, çubuk popup'ın dışına
   yapışmış gibi duruyordu. Artık kart bir flex sütunudur; başlık ile alt bar sabit
   kalır, yalnız `.card-body` kayar.

   KAPSAYICIYA overflow VERİLMEZ: hibritWidgets.initSelect2 popup içindeki Select2'nin
   dropdownParent'ını `.modal-dialog-custom`a bağlıyor (hibrit-widgets.js). Burada
   `overflow: hidden` olsaydı açılan liste kırpılırdı. Kart 85vh ile sınırlı olduğu için
   kapsayıcı zaten taşmaz, ikinci bir çubuk oluşmaz. */
.modal-dialog-custom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-dialog-custom > .card {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.modal-dialog-custom > .card > .card-body {
    overflow-y: auto;
}

.modal-dialog-custom.modal-dialog-lg {
    max-width: 1000px;
}

/* İÇİ KAYAN POPUP: başlık ve alt bar SABİT kalır, yalnız gövde kayar - TEK kaydırma çubuğu.
   Kapsayıcının kendi overflow'u kapatılır; aksi halde gövdeye ayrıca yükseklik verildiğinde
   biri işlevsiz İKİ çubuk oluşur (fatura detayında yaşandı). Gövdeye ayrıca style yazmayın. */
.modal-dialog-custom.modal-dialog-kaydirilabilir {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-dialog-kaydirilabilir > .card {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    overflow: hidden;
}

.modal-dialog-kaydirilabilir > .card > .card-body {
    overflow-y: auto;
}

/* DÜĞME ÇUBUĞUNDA `position: sticky` KULLANMA (2026-09-25'te eklendi, AYNI GÜN kaldırıldı).
   Eskiden kaydırma KAPSAYICIDAYDI ve uzun bir formda Kaydet düğmesi ekranın altında kalıyordu;
   sticky çubuğu görünür alanın altına yapıştırıyordu. Kaydırma `.card-body`ye taşındıktan sonra
   (bkz. yukarıdaki D4 kuralı) footer artık flex sütununun sabit son elemanıdır - zaten her zaman
   görünür. sticky ise bu düzende çubuğu GÖVDENİN ORTASINA taşıyor (kullanıcı bildirdi).
   Ayrı bir arka plan da gerekmiyor: çubuk artık kayan içeriğin üstünde durmuyor,
   .card-footer'ın kendi zemini yeterli. */

/* ÜST KATMAN POPUP: başka bir popup'ın İÇİNDEN açılan ikinci pencere.
   Örnek: İşletme'de abonelik popup'ındaki ödeme planı satırından açılan ödeme girişi.

   NEDEN GEREKLİ: perde (1050) ile popup (1055) arasındaki fark tek katman içindir.
   İkinci popup bu sınıf olmadan açıldığında kendi perdesi ALTTAKİ popup'ın ARKASINDA
   kalır; alttaki pencere kararmaz ve kenarlarından TIKLANABİLİR olur - kullanıcı ödeme
   girerken arkadaki tabloda başka bir kayıt seçebilir ve iki pencere birbiriyle
   tutarsız hâle gelir. ConfirmDialog aynı sorunu 1061/1062 ile çözüyor; bu çift onun
   bir altında durur ki onay penceresi her ikisinin de üstünde kalsın. */
.modal-dialog-custom.modal-dialog-ust {
    z-index: 1060;
}

.modal-dialog-ust + .modal-backdrop-custom,
.modal-backdrop-custom:has(+ .modal-dialog-ust) {
    z-index: 1059;
}

/* Shared/ConfirmDialog - küçük onay penceresi (diğer popup'ların üstünde açılabilir) */
.modal-dialog-custom.modal-dialog-confirm {
    max-width: 420px;
    z-index: 1062;
}

.modal-dialog-confirm + .modal-backdrop-custom,
.modal-backdrop-custom:has(+ .modal-dialog-confirm) {
    z-index: 1061;
}

.confirm-dialog-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    border-radius: 50%;
}

.confirm-dialog-icon.danger {
    color: #f06548;
    background: rgba(240, 101, 72, .12);
}

.confirm-dialog-icon.primary {
    color: var(--vz-primary, #25a0e2);
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .12);
}

/* ============================== SAYFA YARDIMI ==============================
   Başlığın yanındaki "Yardım" düğmesi + sağdan kayan panel (Components/Help/PageHelp.razor).
   Renkler tema değişkenlerinden (Velzon "soft" düğme görünümü), koyu temada da uyumlu. */
.help-trigger {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .65rem .2rem .45rem;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--vz-primary, #25a0e2);
    background-color: rgba(var(--vz-primary-rgb, 37, 160, 226), .1);
    border: 1px solid rgba(var(--vz-primary-rgb, 37, 160, 226), .25);
    border-radius: 50rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.help-trigger i {
    font-size: 1rem;
    line-height: 1;
}

.help-trigger:hover,
.help-trigger:focus-visible {
    color: #fff;
    background-color: var(--vz-primary, #25a0e2);
    box-shadow: 0 .25rem .75rem rgba(var(--vz-primary-rgb, 37, 160, 226), .35);
    outline: none;
}

.help-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(1px);
    animation: help-fade .15s ease-out;
}

.help-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1065;
    width: min(460px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--vz-card-bg, #fff);
    color: var(--vz-body-color, #212529);
    box-shadow: -.5rem 0 2rem rgba(15, 23, 42, .18);
    animation: help-slide-in .22s cubic-bezier(.2, .8, .2, 1);
}

.help-panel-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vz-border-color, #e9ebec);
    background: linear-gradient(135deg, rgba(var(--vz-primary-rgb, 37, 160, 226), .12), rgba(var(--vz-primary-rgb, 37, 160, 226), .02));
}

.help-panel-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: .6rem;
    font-size: 1.35rem;
    color: #fff;
    background: var(--vz-primary, #25a0e2);
    box-shadow: 0 .35rem .9rem rgba(var(--vz-primary-rgb, 37, 160, 226), .35);
}

.help-panel-kicker {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vz-primary, #25a0e2);
}

.help-panel-title {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-panel-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.25rem;
    font-size: .8125rem;
    line-height: 1.6;
}

.help-panel-footer {
    padding: .75rem 1.25rem;
    font-size: .75rem;
    color: #878a99;
    border-top: 1px solid var(--vz-border-color, #e9ebec);
}

.help-section + .help-section {
    margin-top: 1.4rem;
}

.help-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
    font-size: .875rem;
    font-weight: 600;
}

.help-section-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: .45rem;
    font-size: 1rem;
    color: var(--vz-primary, #25a0e2);
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .1);
}

.help-section-body p:last-child,
.help-section-body ul:last-child,
.help-section-body ol:last-child {
    margin-bottom: 0;
}

.help-section-body ul,
.help-section-body ol {
    padding-left: 1.1rem;
}

/* Numaralı adımlar: <ol class="help-steps"> */
.help-steps {
    list-style: none;
    counter-reset: help-step;
    padding-left: 0 !important;
}

.help-steps > li {
    position: relative;
    padding-left: 2rem;
    counter-increment: help-step;
}

.help-steps > li + li {
    margin-top: .5rem;
}

.help-steps > li::before {
    content: counter(help-step);
    position: absolute;
    left: 0;
    top: .05rem;
    width: 1.4rem;
    height: 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: var(--vz-primary, #25a0e2);
}

/* Zaman çizelgesi örneği: <div class="help-timeline"><div class="help-timeline-item done">…</div></div> */
.help-timeline {
    display: flex;
    gap: .35rem;
    margin: .6rem 0;
}

.help-timeline-item {
    flex: 1 1 0;
    padding: .45rem .5rem;
    border-radius: .45rem;
    font-size: .72rem;
    text-align: center;
    border: 1px dashed var(--vz-border-color, #ced4da);
}

.help-timeline-item strong {
    display: block;
    font-size: .78rem;
}

.help-timeline-item.done {
    border-style: solid;
    border-color: rgba(0, 189, 157, .45);
    background: rgba(0, 189, 157, .08);
}

.help-timeline-item.next {
    border-style: solid;
    border-color: rgba(var(--vz-primary-rgb, 37, 160, 226), .5);
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .08);
}

/* Durum rozetleri (belgedeki damgalarla aynı renkler) */
.help-badge {
    display: inline-block;
    padding: .05rem .45rem;
    border-radius: .3rem;
    font-size: .68rem;
    font-weight: 700;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.help-badge-preview { color: #ef6c00; }
.help-badge-approved { color: #2e7d32; }
.help-badge-live { color: #1565c0; }

.help-note {
    display: flex;
    gap: .6rem;
    margin: .75rem 0;
    padding: .65rem .8rem;
    border-radius: .5rem;
    border-left: 3px solid;
    font-size: .78rem;
}

.help-note > i {
    font-size: 1.05rem;
    line-height: 1.3;
}

.help-note-bilgi { border-color: #299cdb; background: rgba(41, 156, 219, .08); }
.help-note-bilgi > i { color: #299cdb; }
.help-note-ipucu { border-color: #00bd9d; background: rgba(0, 189, 157, .08); }
.help-note-ipucu > i { color: #00bd9d; }
.help-note-uyari { border-color: #f7b84b; background: rgba(247, 184, 75, .12); }
.help-note-uyari > i { color: #d99a2b; }
.help-note-onemli { border-color: #f06548; background: rgba(240, 101, 72, .08); }
.help-note-onemli > i { color: #f06548; }

.help-faq {
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: .5rem;
}

.help-faq + .help-faq {
    margin-top: .45rem;
}

.help-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    text-align: left;
    color: inherit;
    background: transparent;
    border: 0;
}

.help-faq-question i {
    transition: transform .15s ease;
}

.help-faq.open .help-faq-question i {
    transform: rotate(180deg);
}

.help-faq-answer {
    padding: 0 .75rem .65rem;
    font-size: .78rem;
}

@keyframes help-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes help-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .help-panel,
    .help-backdrop {
        animation: none;
    }
}

/* Rapor popup'ı: PDF görüntüleyici için neredeyse tam ekran; gövde esner,
   footer (onay/kaydet düğmeleri) her zaman görünür kalır. */
.modal-dialog-custom.modal-dialog-report {
    width: 94vw;
    max-width: 1200px;
    height: 92vh;
    max-height: 92vh;
    overflow: hidden;
}

.modal-dialog-report > .card {
    height: 100%;
    /* Taban kural karta 85vh sınırı koyuyor; rapor popup'ı 92vh yüksekliğinde,
       kendi kapsayıcısını doldurmalı. */
    max-height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.modal-dialog-report .report-viewer {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}

.modal-dialog-report .report-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Select2/Choices.js'i Velzon'un .form-select görünümüyle (yükseklik,
   kenarlık, renk, odak halkası) hizalıyor - varsayılan Select2 CSS'i
   bootstrap temamızla uyumsuz geliyor. */
.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.9rem + 2px);
    border: 1px solid var(--vz-light, #ced4da);
    border-radius: var(--vz-border-radius, 0.25rem);
    background-color: var(--vz-light, #f3f6f9);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--vz-body-color, #212529);
    line-height: normal;
    padding-left: 0.9rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--vz-light, #f3f6f9);
}

.select2-dropdown {
    border-color: var(--vz-input-border-color, #ced4da);
    border-radius: var(--vz-border-radius, 0.25rem);
}

/* KULLANICI KARARI (JS standardı, js-standart-denetcisi K4c): Select2'nin varsayılan zemini
   (--vz-light, açık gri) "bg-light" bir alanda (ör. rapor filtre kartı card-body bg-light)
   görünmez oluyor. Select2, bg-light bir kabın İÇİNDEYSE zemini beyaz (--vz-input-bg; koyu
   temada temanın input zemini) ve kenarlığı --vz-input-border olur - OTOMATİK, sayfada sınıf
   eklemeye gerek yok. Açık/odaklı halde de kenarlık aynı kalır (global kural onu --vz-light
   yapıyordu). */
.bg-light .select2-container--default .select2-selection--single,
.bg-light .select2-container--default .select2-selection--multiple,
.bg-light .select2-container--default.select2-container--focus .select2-selection--single,
.bg-light .select2-container--default.select2-container--open .select2-selection--single,
.bg-light .select2-container--default.select2-container--focus .select2-selection--multiple,
.bg-light .select2-container--default.select2-container--open .select2-selection--multiple,
/* Eski, elle eklenen sınıf - artık gerekmiyor, geriye uyumluluk için duruyor. */
.select2-white-bg + .select2-container--default .select2-selection--single {
    background-color: var(--vz-input-bg, #fff);
    border-color: var(--vz-input-border, #ced4da);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--vz-primary, #405189);
}

/* Choices.js - Velzon form-control ile aynı yükseklik/kenarlık hissi */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    border: 1px solid var(--vz-input-border-color, #ced4da) !important;
    border-radius: var(--vz-border-radius, 0.25rem) !important;
    background-color: var(--vz-input-bg, #fff) !important;
    min-height: calc(1.5em + 0.9rem + 2px);
    padding: 0.3rem 0.9rem !important;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--vz-primary, #405189) !important;
    box-shadow: 0 0 0 0.25rem rgba(64, 81, 137, 0.25);
}

.choices__list--multiple .choices__item {
    background-color: var(--vz-primary, #405189) !important;
    border-color: var(--vz-primary, #405189) !important;
    border-radius: 0.25rem !important;
}

.header-profile-user {
    object-fit: cover;
}

/* Blazor Server bağlantı kopması arayüzü - Türkçe metin (varsayılan
   "Rejoining the server..." yerine). Blazor, durum değiştikçe <html>
   etiketine components-reconnect-show/hide/failed/rejected class'larını
   kendisi ekleyip çıkarıyor - biz sadece görünürlüğü ve hangi metnin
   gösterileceğini CSS ile yönetiyoruz. */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
}

#components-reconnect-modal > div {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 280px;
}

.components-reconnect-show #components-reconnect-modal,
.components-reconnect-failed #components-reconnect-modal,
.components-reconnect-rejected #components-reconnect-modal {
    display: block;
}

#components-reconnect-failed-text,
#components-reconnect-rejected-text {
    display: none;
}

.components-reconnect-failed #components-reconnect-show-text,
.components-reconnect-rejected #components-reconnect-show-text {
    display: none;
}

.components-reconnect-failed #components-reconnect-failed-text {
    display: block;
}

.components-reconnect-rejected #components-reconnect-rejected-text {
    display: block;
}


/* ============================== ALT BİLGİ (footer) ==============================
   MainLayout + FooterInfo.razor - TEK SATIR: solda ortam rozeti + bilgi çipleri (UyumERP, İşler,
   Destek), sağda marka. Sunucu saati ve sürüm sol menünün altında (SOL MENÜ bölümü).
   Yardım panelindeki görsel dil: küçük büyük harf etiketler, yumuşak (soft) renkli hap şekiller,
   tema değişkenleri - koyu temada da uyumlu. */
.footer {
    height: auto;
    min-height: 60px;
    padding-top: .7rem;
    padding-bottom: .7rem;
    border-top: 1px solid var(--vz-border-color, #e9ebec);
}

/* Sağ alttaki sohbet balonu (56px + 24px boşluk) marka yazısının üstüne binmesin */
.footer > .container-fluid {
    padding-right: 96px;
}

.footer-bar {
    min-height: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem 1rem;
}

.footer-env {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .12rem .6rem .12rem .45rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: 50rem;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.footer-env i {
    font-size: .85rem;
    line-height: 1;
}

.footer-env-dev { color: #d99a2b; background: rgba(247, 184, 75, .14); }
.footer-env-test { color: #f06548; background: rgba(240, 101, 72, .1); }

.footer-brand {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--vz-primary, #25a0e2);
    white-space: nowrap;
}

/* Bilgi çipleri (ortam rozetiyle aynı satırda) */
.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}
.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .6rem .15rem .5rem;
    font-size: .75rem;
    line-height: 1.4;
    color: var(--vz-body-color, #212529);
    background-color: var(--vz-light, #f3f6f9);
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 50rem;
    white-space: nowrap;
    text-decoration: none;
}

.footer-chip > i {
    font-size: .9rem;
    line-height: 1;
    color: var(--vz-secondary-color, #878a99);
}

.footer-chip-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vz-secondary-color, #878a99);
}

.footer-chip-value {
    font-weight: 600;
}

.footer-chip-sub {
    color: var(--vz-secondary-color, #878a99);
}

.footer-chip-sub::before {
    content: "·";
    margin-right: .3rem;
    opacity: .6;
}

/* Tıklanabilir çipler: yardım düğmesiyle aynı hover */
.footer-chip-link {
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.footer-chip-link:hover,
.footer-chip-link:focus-visible {
    color: #fff;
    background-color: var(--vz-primary, #25a0e2);
    border-color: var(--vz-primary, #25a0e2);
    box-shadow: 0 .25rem .75rem rgba(var(--vz-primary-rgb, 37, 160, 226), .3);
    outline: none;
}

.footer-chip-link:hover > i,
.footer-chip-link:hover .footer-chip-label,
.footer-chip-link:hover .footer-chip-sub,
.footer-chip-link:focus-visible > i,
.footer-chip-link:focus-visible .footer-chip-label,
.footer-chip-link:focus-visible .footer-chip-sub {
    color: inherit;
}

.footer-chip-primary {
    color: var(--vz-primary, #25a0e2);
    background-color: rgba(var(--vz-primary-rgb, 37, 160, 226), .1);
    border-color: rgba(var(--vz-primary-rgb, 37, 160, 226), .25);
}

.footer-chip-primary > i { color: inherit; }

/* Durum renkleri (UyumERP, işler) */
.footer-chip-ok { --footer-durum: #0ab39c; }
.footer-chip-err { --footer-durum: #f06548; }
.footer-chip-unknown { --footer-durum: #878a99; }

.footer-chip-ok,
.footer-chip-err,
.footer-chip-unknown {
    border-color: color-mix(in srgb, var(--footer-durum) 35%, transparent);
    background-color: color-mix(in srgb, var(--footer-durum) 10%, transparent);
}

.footer-chip-ok .footer-chip-value,
.footer-chip-err .footer-chip-value,
.footer-chip-err > i {
    color: var(--footer-durum);
}

.footer-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--footer-durum, #878a99);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--footer-durum, #878a99) 22%, transparent);
}

/* Bağlantı yoksa nokta dikkat çekmek için yavaşça nabız atar */
.footer-chip-err .footer-dot {
    animation: footer-pulse 1.6s ease-in-out infinite;
}

@keyframes footer-pulse {
    0%, 100% { box-shadow: 0 0 0 .1rem rgba(240, 101, 72, .35); }
    50% { box-shadow: 0 0 0 .3rem rgba(240, 101, 72, .08); }
}

@media (prefers-reduced-motion: reduce) {
    .footer-chip-err .footer-dot { animation: none; }
}
/* ============================== SOL MENÜ ==============================
   MainLayout + NavMenu.razor; açık grup / aktif sayfa hibrit-widgets.js (initSideMenu).
   Velzon normalde #scrollbar'a simplebar kurar; Blazor'un sayfa geçişindeki DOM eşitlemesi
   simplebar'ın eklediği sarmalayıcıları sileceği için burada yalnızca CSS ile kaydırılır.
   Küçük (yalnız ikon) menü modunda alt menüler üzerine gelince taşarak açıldığı için bu
   kurallar o modda UYGULANMAZ. */
:root:not([data-sidebar-size="sm"]):not([data-sidebar-size="sm-hover"]) .app-menu.navbar-menu {
    /* 70px: logo kutusu (Velzon'un kendi payı) + 44px: alttaki sürüm satırı */
    padding-bottom: calc(70px + 44px);
}

:root:not([data-sidebar-size="sm"]):not([data-sidebar-size="sm-hover"]) .app-menu.navbar-menu #scrollbar {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--vz-primary-rgb, 37, 160, 226), .35) transparent;
}

.app-menu.navbar-menu #scrollbar::-webkit-scrollbar {
    width: 6px;
}

.app-menu.navbar-menu #scrollbar::-webkit-scrollbar-thumb {
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .35);
    border-radius: 50rem;
}

/* Aktif sayfa ve bulunduğu grubun başlığı: kalın + primary */
.navbar-menu .navbar-nav .nav-sm .nav-link.active,
.navbar-menu .navbar-nav > .nav-item > .nav-link.menu-link.active {
    color: var(--vz-primary, #25a0e2) !important;
    font-weight: 600;
}

.navbar-menu .navbar-nav > .nav-item > .nav-link.menu-link.active i {
    color: var(--vz-primary, #25a0e2) !important;
}

/* Alt menüde aktif sayfanın solundaki nokta da primary */
.navbar-menu .navbar-nav .nav-sm .nav-link.active::before {
    background-color: var(--vz-primary, #25a0e2) !important;
    opacity: 1;
}

/* Menünün altı: (SuperAdmin) sunucu saati + sürüm - MainLayout .navbar-bilgi */
.navbar-bilgi {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .55rem 1.25rem .6rem;
    font-size: .72rem;
    color: var(--vz-vertical-menu-item-color, #6d7080);
    border-top: 1px solid var(--vz-vertical-menu-border, rgba(0, 0, 0, .06));
    background: var(--vz-vertical-menu-bg, #fff);
}

/* Saat bloğu varken (SuperAdmin) menü kutusu altta daha fazla yer bırakır */
:root:not([data-sidebar-size="sm"]):not([data-sidebar-size="sm-hover"]) .app-menu.navbar-menu:has(.navbar-saat) {
    padding-bottom: calc(70px + 96px);
}

.navbar-bilgi-label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}

.navbar-bilgi-label i {
    font-size: .85rem;
}

.navbar-saat {
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    border-bottom: 1px dashed var(--vz-vertical-menu-border, rgba(0, 0, 0, .08));
}

.navbar-saat-time {
    font-family: var(--vz-font-monospace, SFMono-Regular, Menlo, Consolas, monospace);
    font-size: .7rem;
    font-weight: 600;
    padding: .05rem .45rem;
    border-radius: .35rem;
    color: var(--vz-primary, #25a0e2);
    background-color: rgba(var(--vz-primary-rgb, 37, 160, 226), .1);
}

.navbar-saat-date {
    margin-top: .25rem;
    font-weight: 600;
    white-space: nowrap;
}

.navbar-saat-date span {
    font-weight: 400;
    opacity: .75;
}

.navbar-version {
    display: flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.navbar-version > i {
    font-size: .9rem;
    opacity: .7;
}

.navbar-version-value {
    font-weight: 700;
    color: var(--vz-primary, #25a0e2);
}

.navbar-version-date {
    opacity: .75;
}

.navbar-version-date::before {
    content: "·";
    margin-right: .35rem;
    opacity: .6;
}

/* Küçük (yalnız ikon) menüde yer yok - saat/sürüm bloğu gizlenir */
[data-sidebar-size="sm"] .navbar-bilgi,
[data-sidebar-size="sm-hover"] .navbar-bilgi {
    display: none;
}

/* ============================== MUVAFAKATNAME DETAY POPUP'I ==============================
   Components/Shared/MuvafakatnameDetayDialog.razor - salt okunur detay, belge önizleme, yenileme
   geçmişi zaman çizelgesi. Tema değişkenleriyle (koyu temada da uyumlu). */
.muv-detay-baslik {
    margin-bottom: .6rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vz-primary, #25a0e2);
}

.muv-detay-tablo th {
    width: 42%;
    padding: .2rem .5rem .2rem 0;
    font-size: .78rem;
    font-weight: 500;
    color: var(--vz-secondary-color, #878a99);
    white-space: nowrap;
}

.muv-detay-tablo td {
    padding: .2rem 0;
    font-size: .8125rem;
}

.muv-detay-belge {
    max-height: 420px;
    width: 100%;
    object-fit: contain;
    background: var(--vz-light, #f3f6f9);
    cursor: zoom-in;
}

.muv-detay-belge-yok {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--vz-secondary-color, #878a99);
    background: var(--vz-light, #f3f6f9);
    border: 1px dashed var(--vz-border-color, #e9ebec);
    border-radius: .4rem;
}

.muv-detay-belge-yok i {
    font-size: 2rem;
    opacity: .6;
}

/* Belge büyütme (popup'ın üstünde tam ekran) */
.muv-detay-zoom {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}

.muv-detay-zoom img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* Yenileme geçmişi: dikey zaman çizelgesi, en yeni üstte */
.muv-timeline {
    position: relative;
    padding-left: .35rem;
}

.muv-timeline::before {
    content: "";
    position: absolute;
    top: .7rem;
    bottom: .7rem;
    left: calc(.35rem + 5px);
    width: 2px;
    background: var(--vz-border-color, #e9ebec);
}

.muv-timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .45rem .6rem .45rem 0;
    text-align: left;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: .45rem;
    cursor: pointer;
    transition: background-color .12s ease;
}

.muv-timeline-item:hover:not(:disabled) {
    background: var(--vz-light, #f3f6f9);
}

.muv-timeline-item:disabled {
    cursor: default;
    opacity: 1;
}

.muv-timeline-item.secili {
    background: rgba(var(--vz-primary-rgb, 37, 160, 226), .07);
}

.muv-timeline-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: .3rem;
    border-radius: 50%;
    background: var(--vz-card-bg, #fff);
    border: 2px solid #adb5bd;
}

.muv-timeline-item.guncel .muv-timeline-dot {
    border-color: #0ab39c;
    background: #0ab39c;
}

.muv-timeline-item.secili .muv-timeline-dot {
    box-shadow: 0 0 0 .2rem rgba(var(--vz-primary-rgb, 37, 160, 226), .25);
}

.muv-timeline-body {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    font-size: .8125rem;
}

/* Yenileme geçmişi: satırın sağındaki "Kaydın detayı →" bağlantısı */
.muv-timeline-link {
    margin-left: auto;
    align-self: center;
    flex: 0 0 auto;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--vz-primary, #25a0e2);
}

.muv-timeline-item:hover .muv-timeline-link,
.muv-timeline-item:focus-visible .muv-timeline-link {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Tıklanabilir alan (buton olmayan).

   Bir liste satırının tamamı seçilebilir ama satırın içinde AYRI bir düğme de
   varsa (ör. "Sil"), kapsayıcı <button> OLAMAZ - iç içe buton geçersiz HTML'dir
   ve tarayıcı DOM'u kendi başına yeniden kurar. Bu sınıf, kapsayıcıyı <div>
   yapıp tıklanabilir kısma imleci geri kazandırmak için.
   -------------------------------------------------------------------------- */
.hibrit-tiklanabilir {
    cursor: pointer;
}
