@use '../schemaVisualiser/schemaVisualiser.scss';

.sqlseal-explorer-container {
    height: 100%;
    width: 100%;
    max-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
}

.sqlseal-explorer-grid-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1em;
    height: 100%;
    width: 100%;
    padding: 1em;
}

.sqlseal-explorer-code {
    // background: orange;
}

.sqlseal-explorer-render {
    // background: red;
    overflow: hidden; // Changed from scroll to hidden - AG Grid will handle its own scrolling
    height: 100%; // Ensure the container has a defined height
    min-height: 400px; // Minimum height for proper pagination
}

.sqlseal-menubar-container {
    padding: 0.2em 0;
    display: flex;
}

.sqlseal-menubar-container .separator {
    flex: 1;
}

.sqlseal-menubar-button {
    border: 0;
    --input-shadow: none;
}

.sqlseal-explorer-right-pane {
    display: grid;
    container-type: inline-size;
    height: 100%;
    overflow: hidden; // Prevent the pane itself from expanding
    & > * {
        grid-area: 1 / 1;
        height: 100%;
        overflow: hidden; // Ensure child elements don't expand beyond bounds
    }
}

.sqlseal-explorer-right-pane {
    // AG Grid styling for explorer context
    & .sqlseal-grid-wrapper {
        height: 100%;
        overflow: hidden;
        
        & > .ag-theme-quartz {
            height: 100%;
        }
    }

    & .ag-root-wrapper {
        height: 100%;
    }

    & .ag-paging-page-size {
        display: none;
    }

    & .ag-paging-row-summary-panel {
        display: none;
    }

    & .ag-paging-panel {
        justify-content: center;
    }
}
