/* Corrective Action module — align header titles and filter icons (Syncfusion-safe) */
.capa-grids-host .e-grid,
.capa-list-grid.e-grid,
#gridCorrectiveActionList.e-grid,
#gridCorrectiveActionCartable.e-grid {
    width: 100%;
}

.capa-grids-host .e-grid .e-table,
.capa-list-grid.e-grid .e-table,
#gridCorrectiveActionList.e-grid .e-table,
#gridCorrectiveActionCartable.e-grid .e-table {
    table-layout: fixed;
    width: 100%;
}

.capa-grids-host .e-grid .e-gridheader .e-headercell,
.capa-list-grid.e-grid .e-gridheader .e-headercell,
#gridCorrectiveActionList.e-grid .e-gridheader .e-headercell,
#gridCorrectiveActionCartable.e-grid .e-gridheader .e-headercell {
    white-space: nowrap;
    vertical-align: middle;
    padding-inline: 10px 12px;
}

.capa-grids-host .e-grid.e-wrap .e-gridheader .e-headercell,
.capa-list-grid.e-grid.e-wrap .e-gridheader .e-headercell,
#gridCorrectiveActionList.e-grid.e-wrap .e-gridheader .e-headercell,
#gridCorrectiveActionCartable.e-grid.e-wrap .e-gridheader .e-headercell {
    white-space: nowrap;
}

.capa-grids-host .e-grid .e-gridheader .e-headercelldiv,
.capa-list-grid.e-grid .e-gridheader .e-headercelldiv,
#gridCorrectiveActionList.e-grid .e-gridheader .e-headercelldiv,
#gridCorrectiveActionCartable.e-grid .e-gridheader .e-headercelldiv {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    white-space: nowrap;
    overflow: visible;
}

.capa-grids-host .e-grid .e-gridheader .e-headertext,
.capa-list-grid.e-grid .e-gridheader .e-headertext,
#gridCorrectiveActionList.e-grid .e-gridheader .e-headertext,
#gridCorrectiveActionCartable.e-grid .e-gridheader .e-headertext {
    white-space: nowrap;
    flex: 0 0 auto;
    overflow: visible;
}

.capa-grids-host .e-grid .e-gridheader .e-sortfilterdiv,
.capa-list-grid.e-grid .e-gridheader .e-sortfilterdiv,
#gridCorrectiveActionList.e-grid .e-gridheader .e-sortfilterdiv,
#gridCorrectiveActionCartable.e-grid .e-gridheader .e-sortfilterdiv {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    flex: 0 0 auto;
    margin-inline-start: 4px;
}

.capa-grids-host .e-grid .e-gridheader .e-headercell,
.capa-list-grid.e-grid .e-headercell,
.capa-list-grid.e-grid .e-rowcell {
    text-align: right !important;
}

.capa-grids-host .e-grid .e-rowcell,
.capa-list-grid.e-grid .e-rowcell,
#gridCorrectiveActionList.e-grid .e-rowcell,
#gridCorrectiveActionCartable.e-grid .e-rowcell {
    white-space: normal;
}

.capa-grids-host .e-grid .e-rowcell .e-templatecell,
.capa-list-grid.e-grid .e-rowcell .e-templatecell {
    text-align: right;
}

.capa-grids-host .e-grid .capa-mgmt-dd,
.capa-list-grid.e-grid .capa-mgmt-dd {
    margin-inline-start: auto;
    margin-inline-end: 0;
}
