html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.card {
    border: none;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        width: 100% !important;
        min-width: 100% !important;
        height: auto;
        flex-direction: row !important;
        padding: 0.5rem !important;
    }

    .sidebar h5,
    .sidebar hr,
    .sidebar .mt-auto {
        display: none;
    }

    .sidebar a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem !important;
    }

    .d-flex.min-vh-100 {
        flex-direction: column !important;
    }

    .flex-grow-1.p-4 {
        padding: 1rem !important;
    }
}
