body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-left: 200px;
    transition: margin-left 0.2s;
}

.sidebar {
    position: fixed; top: 0; left: 0; width: 200px; height: 100%;
    background: #212529; z-index: 1030;
    display: flex; flex-direction: column;
    transition: width 0.2s;
    overflow: hidden;
}

.sidebar.collapsed { width: 60px; }

.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0.75rem; border-bottom: 1px solid #495057;
    min-height: 48px;
}

.sidebar-brand {
    color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
    white-space: nowrap; overflow: hidden;
}

.sidebar.collapsed .sidebar-brand { font-size: 0.7rem; text-align: center; width: 100%; }

.sidebar-toggle {
    background: none; border: none; color: #adb5bd; cursor: pointer; font-size: 1.2rem; padding: 0;
    line-height: 1;
}
.sidebar.collapsed .sidebar-toggle { display: none; }

.sidebar-body {
    flex: 1; overflow-y: auto; overflow-x: hidden;
}

.sidebar-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.75rem; color: #adb5bd; text-decoration: none;
    white-space: nowrap; font-size: 0.9rem;
    transition: 0.15s;
}
.sidebar-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-item.active { background: #0d6efd; color: #fff; }

.sidebar-icon { font-size: 1.15rem; flex-shrink: 0; width: 20px; text-align: center; }

.sidebar-label { overflow: hidden; white-space: nowrap; }
.sidebar.collapsed .sidebar-label { display: none; }

.sidebar-footer {
    padding: 0.5rem 0.75rem; border-top: 1px solid #495057;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.sidebar.collapsed .sidebar-footer > div:first-child { text-align: center; }
.sidebar.collapsed .sidebar-footer .btn span { display: none; }
.sidebar.collapsed .sidebar-footer .btn { padding-left: 0; padding-right: 0; text-align: center; }
.sidebar.collapsed .sidebar-footer .btn i { margin: 0 !important; }

.card {
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0 !important;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.badge {
    font-weight: 500;
}

.navbar-brand {
    font-weight: 700;
}

.fs-7 { font-size: 0.85rem; }

.navbar .nav-link { white-space: nowrap; }
.navbar .nav-link:hover { background: rgba(255,255,255,0.1); border-radius: 4px; }

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn-lg {
    font-weight: 600;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    .card-body {
        padding: 0.75rem;
    }
    .table {
        font-size: 0.8rem;
    }
    .navbar .navbar-nav {
        margin-top: 0.5rem;
    }
    .navbar .nav-link {
        padding: 0.3rem 0.5rem;
    }
}

@media print {
    .no-print { display: none !important; }
}
