/* Sidebar */
html, body {
    height: 100%;
    overflow: hidden;
}

#wrapper {
    height: 100vh;
}

#sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    transition: width 0.25s ease;
    overflow-y: auto;
    z-index: 100;
    will-change: transform;
}

#sidebar-wrapper.collapsed {
    width: 0;
    overflow: hidden;
}

#page-content-wrapper {
    min-width: 0;
    margin-left: 240px;
    height: 100vh;
    overflow-y: auto;
    transition: margin-left 0.25s ease;
}

#page-content-wrapper.expanded {
    margin-left: 0;
}

.sidebar .list-group-item.active {
    background-color: #0d6efd !important;
    border-left: 3px solid #fff;
}

.sidebar .list-group-item:hover:not(.active) {
    background-color: #343a40 !important;
}

.sidebar-section-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Cards */
.stat-card {
    border-left: 4px solid;
    border-radius: 6px;
}

/* Tables */
.table th {
    background-color: #f8f9fa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Status badges */
.badge-pending { background-color: #6c757d; }
.badge-approved { background-color: #0d6efd; }
.badge-disbursed { background-color: #0dcaf0; }
.badge-active { background-color: #198754; }
.badge-closed { background-color: #adb5bd; color: #333; }
.badge-rejected { background-color: #dc3545; }

/* Print */
@media print {
    #sidebar-wrapper, nav.navbar, .btn, .alert { display: none !important; }
    #page-content-wrapper { padding: 0 !important; }
}
