/* Hide project right sidebar completely */
.project-page-layout-sidebar,
.project-page-sidebar,
aside[data-testid="project-page-sidebar"] {
    display: none !important;
}

/* Expand main content to full width */
.project-page-layout-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Adjust container to use full width */
.container-fluid .row > .col-lg-9,
.container-fluid .row > .col-md-9 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Remove margin/padding that was for sidebar */
.project-page-layout {
    display: block !important;
}

.project-page-layout-content.gl-lg-mr-5 {
    margin-right: 0 !important;
}

/* Ensure file tree and code viewer use full width */
.tree-holder,
.file-holder,
.blob-viewer {
    width: 100% !important;
}

/* For project overview page */
.project-home-panel + .project-page-layout-sidebar {
    display: none !important;
}

.project-home-panel ~ .gl-mt-5 {
    width: 100% !important;
}
