/* Sequence Weights Report - AG Grid styles */

/* AG Grid: header styling (background + line below) */
.ag-theme-alpine .ag-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #babfc7;
}

/* Second header row (leaf columns) when using column groups: separator line */
.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),
.ag-theme-alpine .ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {
    border-top: 1px solid #babfc7;
}

/* AG Grid: centered headers (group and column) */
.ag-theme-alpine .ag-header-group-cell-label,
.ag-theme-alpine .ag-header-cell-label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* AG Grid: avoid excess padding/margin on headers to prevent overlap */
.ag-theme-alpine .ag-header-cell,
.ag-theme-alpine .ag-header-group-cell {
    padding-left: 8px;
    padding-right: 8px;
    margin: 0;
}

/* AG Grid: two-line headers (weight columns) */
.ag-theme-alpine .ag-header-cell.header-two-lines .ag-header-cell-label,
.ag-theme-alpine .ag-header-cell.header-two-lines .ag-header-cell-text {
    white-space: pre-line;
    text-align: center;
    line-height: 1.2;
}

/* Grid container: do not force horizontal scroll over pinned columns */
#sequence-weights-report.processes-grid-container,
.processes-grid-container.ag-theme-alpine {
    overflow: visible;
}

/* Taller header rows so two-line headers are not cut off */
.processes-grid-container .ag-theme-alpine {
    --ag-header-height: 48px;
}

/* Grid height */
.processes-grid-container.ag-theme-alpine {
    height: 75vh;
    border: 1px solid #ccc;
}
.ag-root-wrapper.ag-layout-normal.ag-ltr {
    height: 75vh;
}

/* AG Grid loading overlay */
.ag-theme-alpine .ag-overlay-loading-center {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}
