@media (max-width: 1199px) {
    .topbar-center .context-select {
        display: none;
    }
}

@media (max-width: 991px) {
    .sidebar-panel {
        transform: translateX(-100%);
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }
    body.sidebar-open .sidebar-panel {
        transform: translateX(0);
    }
    .app-main, body.sidebar-collapsed .app-main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    .brand-copy, .profile-copy, .quick-action-btn {
        display: none;
    }
    .topbar-search {
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .app-content {
        padding: 1rem 0.85rem;
    }
    .page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .page-actions, .page-toolbar {
        width: 100%;
        justify-content: flex-start;
    }
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        display: none;
    }
    .topbar {
        padding: 0.5rem 0.85rem;
    }
    .table-responsive {
        border-radius: var(--erp-radius);
    }
}
