/* Minimal AG Grid base CSS to ensure grid renders visibly without constraining row heights.
   Note: Prefer the official AG Grid CSS in production.
*/

/* Keep box sizing sane */
.ag-root, .ag-root-wrapper, .ag-root-wrapper-body,
.ag-body, .ag-center-cols-clipper, .ag-center-cols-viewport,
.ag-center-cols-container, .ag-header, .ag-header-viewport,
.ag-header-container { box-sizing: border-box; }

.ag-theme-alpine { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif; font-size: 13px; }

/* Do not force internal containers to 100% height; let AG Grid manage heights */
/* Removed height:100% overrides to allow variable row heights */

/* Basic header visuals */
.ag-header { background: #f6f7f7; border-bottom: 1px solid #ddd; }
.ag-header-cell, .ag-header-group-cell { padding: 8px; border-right: 1px solid #e2e2e2; }
.ag-header-cell-label { font-weight: 600; }

/* Light borders between rows and cells, avoid layout overrides */
.ag-row { border-bottom: 1px solid #eee; }
.ag-cell { padding: 6px 8px; border-right: 1px solid #f0f0f0; overflow: hidden; text-overflow: ellipsis; }
.ag-row-odd { background: #fff; }
.ag-row-even { background: #fafafa; }

/* General */
.ag-overlay { display:none; }

/* Allow multi-line content and auto-height behavior using AG Grid classnames */
.ag-cell.ag-cell-wrap-text { white-space: normal; }
.ag-cell.ag-cell-auto-height { overflow: visible; text-overflow: unset; }

/* Debug: ensure viewport can scroll and reveal rows */
.ag-body-viewport, .ag-center-cols-viewport { overflow: auto !important; }
.ag-center-cols-viewport { min-height: 200px; }
