/* Add here all your CSS customizations */

/* Page header breadcrumb: sağdan boşluk (container hissi) */
.page-header .right-wrapper {
    padding-right: 1.5rem;
}

/* Mobil: kullanıcı dropdown ve menü ikonu aynı satırda (flex) */
@media only screen and (max-width: 767px) {
    .body .header {
        display: flex !important;
        align-items: center;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        z-index: 99;
        background: #fff !important;
        border-bottom: 1px solid #E9E9E6;
        border-top: 3px solid #EDEDED;
    }
    .body .header .logo-container {
        position: static !important;
        flex: 1;
        min-width: 0;
        height: 60px;
        display: flex !important;
        align-items: center;
        background: none !important;
        border: none !important;
    }
    .body .header .logo-container .logo {
        margin-left: 15px;
        line-height: 1;
    }
    .body .header .logo-container .toggle-sidebar-left {
        position: static !important;
        margin-left: auto;
        margin-right: 15px;
        flex-shrink: 0;
    }
    /* Menü ikonu sağdan 15px, 30px genişlik → sağ 45px’e kadar. Userbox’ı onun solunda bırakıyoruz. */
    .body .header .header-right {
        margin-top: 0 !important;
        width: auto !important;
        flex-shrink: 0;
        height: 60px;
        display: flex !important;
        align-items: center;
        padding-right: 8px;
        float: none !important;
        background: transparent !important;
    }
    .body .header .header-right .separator {
        display: none;
    }
    .body .header .header-right .userbox .profile-info {
        display: inline-block;
    }
    .body .header .header-right .userbox .profile-info .name,
    .body .header .header-right .userbox .profile-info .role {
        display: block;
        line-height: 1.2;
    }
    .body .inner-wrapper {
        padding-top: 60px !important;
    }
}

/* Mobil uyumluluk için buton stilleri */
@media (max-width: 767.98px) {
    .btn-block-sm {
        width: 100%;
        display: block;
    }
    
    .card-header .card-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .card-header .card-actions .btn {
        width: 100%;
    }
}

/* Lightbox Styles */
.announcement-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.announcement-lightbox.show {
    display: flex;
}

.announcement-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease-in-out;
}

.announcement-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.announcement-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10000;
}

.announcement-lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .announcement-lightbox-content {
        max-width: 95%;
    }
    
    .announcement-lightbox-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* -------------------------------------------------------------------------
   Kasa defteri / istatistik / maaş: ön bakiye (ONBAKIYE), ücretsiz, telafi satırları
   — açık kırmızı arka plan (tema + Bootstrap striped üzerinde çalışır; custom.css layout’ta yüklenir)
   ------------------------------------------------------------------------- */
.table tbody tr.table-row-ledger-highlight > td,
.table tbody tr.table-row-ledger-highlight > th,
.table tbody tr.table-row-ledger-highlight > * {
    background-color: #fecaca !important;
    background-image: none !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-bg: transparent !important;
}

.table-striped > tbody > tr.table-row-ledger-highlight > *,
.table-striped > tbody > tr.table-row-ledger-highlight:nth-of-type(odd) > *,
.table-striped > tbody > tr.table-row-ledger-highlight:nth-of-type(even) > * {
    background-color: #fecaca !important;
    --bs-table-accent-bg: transparent !important;
}

.table-hover tbody tr.table-row-ledger-highlight:hover > td,
.table-hover tbody tr.table-row-ledger-highlight:hover > th,
.table-hover tbody tr.table-row-ledger-highlight:hover > * {
    background-color: #fca5a5 !important;
}

.card.card-ledger-highlight {
    border-left: 4px solid #ef4444;
    background-color: #fecaca !important;
}

.badge.badge-onbakiye {
    background-color: #f87171 !important;
    color: #fff !important;
}
