/**
* DevExtreme (widgets/material/dataGrid.material.less)
* Version: 20.1.10
* Build date: Fri Jan 15 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
@import (once) "../base/dataGrid.less";
@import (once) "./gridBase.material.less";

.grid-base(datagrid);

.dx-datagrid-group-panel {
    font-size: @MATERIAL_BASE_FONT_SIZE;
    touch-action: pinch-zoom;

    .dx-group-panel-message {
        color: @datagrid-columnchooser-item-color;
        font-weight: @datagrid-columnchooser-font-weight;
        padding: @MATERIAL_DATAGRID_CELL_PADDING 0;
        border-top: @MATERIAL_GRID_BASE_BORDER_HIDDEN;
        border-bottom: @MATERIAL_GRID_BASE_BORDER_HIDDEN;
    }

    .dx-group-panel-item {
        margin-right: @MATERIAL_GRID_BASE_GROUPPANEL_ITEM_MARGIN;
        color: @datagrid-columnchooser-item-color;
        font-weight: @datagrid-columnchooser-font-weight;
        font-size: @MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE;
        line-height: @MATERIAL_GRID_BASE_HEADER_LINE_HEIGHT;
        background: @datagrid-block-separator-bg;
        border-radius: 16px;
        padding: 8px 10px;
    }

    .dx-block-separator {
        margin-right: @MATERIAL_GRID_BASE_GROUPPANEL_ITEM_MARGIN;
        color: @datagrid-columnchooser-item-color;
        font-weight: @datagrid-columnchooser-font-weight;
        padding: @MATERIAL_DATAGRID_CELL_PADDING;
        background-color: @datagrid-block-separator-bg;
    }

    .dx-sort {
        color: @datagrid-menu-icon-color;
    }
}

.dx-datagrid-rowsview {
    .dx-row.dx-group-row:first-child {
        border-top: none;
    }


    .dx-row.dx-group-row {
        &:not(.dx-row-focused) {
            color: @datagrid-group-row-color;
            background-color: @datagrid-group-row-bg;
        }

        font-size: @MATERIAL_GRID_BASE_HEADER_CELL_FONT_SIZE;
        font-weight: bold;

        td {
            border-top-color: @MATERIAL_GRID_BASE_BORDER_COLOR;
            border-bottom-color: @MATERIAL_GRID_BASE_BORDER_COLOR;
        }
    }
}

.dx-datagrid-group-opened {
    .dx-icon(chevrondown);
    .dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);

    color: @datagrid-chevron-icon-color;
}

.dx-datagrid-group-closed {
    .dx-icon(chevronright);
    .dx-icon-sizing(@MATERIAL_BASE_ICON_SIZE);

    color: @datagrid-chevron-icon-color;
}

.dx-row.dx-datagrid-group-footer {
    &.dx-column-lines {
        border-bottom: @datagrid-border;
    }

    & > td {
        background-color: @datagrid-summary-bg;
        border-top: @datagrid-border;
        border-left-width: 0;
        border-right-width: 0;
    }
}

.dx-rtl {
    .dx-datagrid-group-panel {
        .dx-group-panel-item,
        .dx-block-separator {
            margin-left: @MATERIAL_GRID_BASE_GROUPPANEL_ITEM_MARGIN;
        }
    }
}
