// Use Bootstrap 4 variables
@import "bootstrap/functions"; //***
@import "variables"; //***

// Report
$ThemeRptGrpColor1: #F5F5F5;
$ThemeRptGrpTextColor1: inherit;
$ThemeRptGrpSummaryColor1: #F5F5F5;
$ThemeRptGrpSummaryTextColor1: inherit;
$ThemeRptGrpColor2: inherit;
$ThemeRptGrpTextColor2: inherit;
$ThemeRptGrpSummaryColor2: inherit;
$ThemeRptGrpSummaryTextColor2: inherit;
$ThemeRptGrpColor3: inherit;
$ThemeRptGrpTextColor3: #F5F5F5;
$ThemeRptGrpSummaryColor3: #F5F5F5;
$ThemeRptGrpSummaryTextColor3: inherit;
$ThemeRptGrpColor4: inherit;
$ThemeRptGrpTextColor4: inherit;
$ThemeRptGrpSummaryColor4: inherit;
$ThemeRptGrpSummaryTextColor4: inherit;
$ThemeRptGrpColor5: #F5F5F5;
$ThemeRptGrpTextColor5: inherit;
$ThemeRptGrpSummaryColor5: #F5F5F5;
$ThemeRptGrpSummaryTextColor5: inherit;
$ThemeRptGrpColor6: inherit;
$ThemeRptGrpTextColor6: inherit;
$ThemeRptGrpSummaryColor6: inherit;
$ThemeRptGrpSummaryTextColor6: inherit;
$ThemeRptPageSummaryColor: inherit;
$ThemeRptPageSummaryTextColor: inherit;
$ThemeRptGrandSummaryColor: inherit;
$ThemeRptGrandSummaryTextColor: inherit;
body {
    background-color: inherit; // background color
    font-family: DejaVuSerif; // font name
    font-size: xx-small; // font size - DO NOT CHANGE!
}

// table for PDF export
.ew-table {
    border: 0;
    border-collapse: collapse;
    font-size: xx-small; // font size - DO NOT CHANGE!
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.ew-table td, .ew-table th {
    padding: 3px; // cell padding
    border: 0.5px solid;
    border-color: inherit; // border color
}
.no-border td, .no-border th {
    border: 0;
}
.ew-table .ew-table-header td, .ew-table .ew-table-header th {
    background-image: none; // remove header bg image
    background-color: inherit; // header bgcolor
    color: inherit; // header font color
    vertical-align: top;
}

// row color
.ew-table .ew-table-row, .ew-table .ew-table-row td {
    background-color: inherit; // alt row color 1
}

// alternate row color
.ew-table .ew-table-alt-row, .ew-table .ew-table-alt-row td {
    background-color: inherit; // alt row color 2
}

// main table footer
.ew-table .ew-table-footer td {
    background-color: inherit; // footer color
}

// crosstab column row
.ew-table .ew-table-column-row {
    background-color: inherit; // alt row color 2
}

// groups
@mixin ew-rpt-grp($i, $color, $bgcolor, $summary-color, $summary-bgcolor) {
    // group #{$i}
    .ew-rpt-grp-header-#{$i} {
        color: $color;
        background-color: $bgcolor;
        font-weight: bold;
    }
    .ew-rpt-grp-header-#{$i} {
        a:link, a:active, a:visited {
            color: inherit;
            text-decoration: none;
        }
    }
    .ew-rpt-grp-field-#{$i} {
        background-color: $bgcolor;
    }
    .ew-rpt-grp-summary-#{$i} {
        color: $summary-color;
        background-color: $summary-bgcolor;
    }
}
@include ew-rpt-grp(1, $ThemeRptGrpTextColor1, $ThemeRptGrpColor1, $ThemeRptGrpSummaryTextColor1, $ThemeRptGrpSummaryColor1);
@include ew-rpt-grp(2, $ThemeRptGrpTextColor2, $ThemeRptGrpColor2, $ThemeRptGrpSummaryTextColor2, $ThemeRptGrpSummaryColor2);
@include ew-rpt-grp(3, $ThemeRptGrpTextColor3, $ThemeRptGrpColor3, $ThemeRptGrpSummaryTextColor3, $ThemeRptGrpSummaryColor3);
@include ew-rpt-grp(4, $ThemeRptGrpTextColor4, $ThemeRptGrpColor4, $ThemeRptGrpSummaryTextColor4, $ThemeRptGrpSummaryColor4);
@include ew-rpt-grp(5, $ThemeRptGrpTextColor5, $ThemeRptGrpColor5, $ThemeRptGrpSummaryTextColor5, $ThemeRptGrpSummaryColor5);
@include ew-rpt-grp(6, $ThemeRptGrpTextColor6, $ThemeRptGrpColor6, $ThemeRptGrpSummaryTextColor6, $ThemeRptGrpSummaryColor6);
.ew-rpt-grp-aggregate {
    font-weight: bold;
}
.ew-rpt-page-summary {
    color: inherit; // page summary text color
    background-color: inherit; // page total background color
}
.ew-rpt-grand-summary {
    color: inherit; // grand summary text color
    background-color: inherit; // grand summary background color
}

// for crosstab report only
.ew-rpt-col-summary {
    background-color: inherit; // column summary
    color: inherit;
    border: 0;
}
.ew-rpt-col-header {
    background-color: inherit; // column heading background color
    color: inherit; // column heading text color
    border: 0;
}

// export page break
.ew-page-break {
    page-break-before: always;
}