.ag-root-wrapper,
.ag-root-wrapper-body,
.ag-center-cols-viewport,
.ag-center-cols-container,
.ag-center-cols-clipper {
    min-height: unset !important;
}

/* Hide background cell value while editing in a popup */
.ag-cell.ag-cell-popup-editing {
    color: transparent !important;
}
.ag-cell.ag-cell-popup-editing * {
    color: transparent !important;
}

/* Custom styling for transparent Alpine custom theme and borders */
.ag-theme-alpine-custom {
    --ag-background-color: transparent !important;
    --ag-odd-row-background-color: transparent !important;
    --ag-row-border-color: transparent !important;
    background: transparent !important;
}
.ag-theme-alpine-custom .ag-root-wrapper {
    background: transparent !important;
    border: none !important;
}
.ag-theme-alpine-custom .ag-row {
    background-color: transparent !important;
    border-bottom: 1px solid var(--mantine-color-default-border, #e9ecef) !important;
}
.ag-theme-alpine-custom .ag-cell {
    border-bottom: none !important;
}

/* Styling for AG Grid Enterprise context menu (Right Click menu) - Light Mode */
[data-ag-theme-mode="light"] .ag-menu,
[data-ag-theme-mode="light"] .ag-popup,
:root:not([data-ag-theme-mode="dark"]) .ag-menu,
:root:not([data-ag-theme-mode="dark"]) .ag-popup {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-radius: 6px !important;
    padding: 4px !important;
}

[data-ag-theme-mode="light"] .ag-menu-list,
:root:not([data-ag-theme-mode="dark"]) .ag-menu-list {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

[data-ag-theme-mode="light"] .ag-menu-option,
:root:not([data-ag-theme-mode="dark"]) .ag-menu-option {
    border-radius: 4px !important;
    transition: background-color 0.15s ease !important;
    color: #212529 !important;
}

[data-ag-theme-mode="light"] .ag-menu-option *,
:root:not([data-ag-theme-mode="dark"]) .ag-menu-option * {
    color: #212529 !important;
}

[data-ag-theme-mode="light"] .ag-menu-option-active,
:root:not([data-ag-theme-mode="dark"]) .ag-menu-option-active {
    background-color: #f1f3f5 !important;
}

/* Styling for AG Grid Enterprise context menu - Dark Mode */
[data-ag-theme-mode="dark"] .ag-menu,
[data-ag-theme-mode="dark"] .ag-popup {
    background-color: #1a1b1e !important;
    background: #1a1b1e !important;
    border: 1px solid #373a40 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    border-radius: 6px !important;
    padding: 4px !important;
}

[data-ag-theme-mode="dark"] .ag-menu-list {
    background-color: #1a1b1e !important;
    background: #1a1b1e !important;
}

[data-ag-theme-mode="dark"] .ag-menu-option {
    border-radius: 4px !important;
    transition: background-color 0.15s ease !important;
    color: #c1c2c5 !important;
}

[data-ag-theme-mode="dark"] .ag-menu-option * {
    color: #c1c2c5 !important;
}

[data-ag-theme-mode="dark"] .ag-menu-option-active {
    background-color: #2c2e33 !important;
}


/* ── Report columns AG Grid: orange checkbox + row highlight ── */
#exposure-report-columns-grid .ag-row-selected {
    background-color: rgba(255, 120, 0, 0.18) !important;
}
#exposure-report-columns-grid .ag-row-selected .ag-cell {
    background-color: transparent !important;
}
#exposure-report-columns-grid .ag-checkbox-input-wrapper.ag-checked::after {
    color: #ff7800 !important;
}
#exposure-report-columns-grid .ag-checkbox-input-wrapper:not(.ag-checked):hover::after {
    color: rgba(255, 120, 0, 0.5) !important;
}
