@use "sass:color";
@use "../sizes" as *;
@use "../colors" as *;
// adduse


$PIVOTGRID_AREA_BACKGROUND: null !default;
$PIVOTGRID_BORDER_COLOR: null !default;
$PIVOTGRID_AREA_COLOR: null !default;
$pivotgrid-field-area-box-text-color: null !default;
$pivotgrid-field-area-box-background-color: null !default;
$PIVOTGRID_DATA_AREA_COLOR: null !default;
$PIVOTGRID_TOTALCOLOR: null !default;
$PIVOTGRID_GRANDTOTALCOLOR: null !default;
$PIVOTGRID_FIELD_AREA_TEXT_COLOR: null !default;
$PIVOTGRID_ACCENT_COLOR: null !default;
$PIVOTGRID_DRAG_HEADER_BORDER_COLOR: null !default;
$PIVOTGRID_DRAG_HEADER_FIRST_SHADOW_COLOR: null !default;
$PIVOTGRID_DRAG_HEADER_SECOND_SHADOW_COLOR: null !default;
$PIVOTGRID_AREA_ALL_IMAGE: null !default;
$PIVOTGRID_AREA_FILTER_IMAGE: null !default;
$PIVOTGRID_AREA_COLUMN_IMAGE: null !default;
$PIVOTGRID_AREA_ROW_IMAGE: null !default;
$PIVOTGRID_AREA_DATA_IMAGE: null !default;
$PIVOTGRID_DIMENSION_IMAGE: null !default;
$PIVOTGRID_HIERARCHY_IMAGE: null !default;
$PIVOTGRID_POSITION_INDICATOR_COLOR: null !default;
$pivotgrid-chevron-icon-color: null !default;


@if $mode == "light" {

  $PIVOTGRID_AREA_BACKGROUND: $base-bg !default;
  $PIVOTGRID_BORDER_COLOR: $base-border-color !default;

  /**
    * $name 10. Header text color
    * $type color
    */
  $PIVOTGRID_AREA_COLOR: color.change($base-text-color, $alpha: 0.54) !default;

  $pivotgrid-field-area-box-text-color: $PIVOTGRID_AREA_COLOR !default;
  $pivotgrid-field-area-box-background-color: darken($base-bg, 12%) !default;
  $PIVOTGRID_DATA_AREA_COLOR: $base-text-color !default;

  /**
    * $name 20. Totals background color
    * $type color
    */
  $PIVOTGRID_TOTALCOLOR: color.change(darken($PIVOTGRID_AREA_BACKGROUND, 13.3%), $alpha: 0.2) !default;

  /**
    * $name 30. Grand totals background color
    * $type color
    */
  $PIVOTGRID_GRANDTOTALCOLOR: $base-hover-bg !default;

  /**
    * $name 40. Field area text color
    * $type color
    */
  $PIVOTGRID_FIELD_AREA_TEXT_COLOR: color.change(darken($PIVOTGRID_AREA_COLOR, 26.2%), $alpha: 0.3) !default;

  $PIVOTGRID_ACCENT_COLOR: $base-accent !default;
  $PIVOTGRID_DRAG_HEADER_BORDER_COLOR: color.change($PIVOTGRID_ACCENT_COLOR, $alpha: 0.5) !default;
  $PIVOTGRID_DRAG_HEADER_FIRST_SHADOW_COLOR: color.change($base-shadow-color, $alpha: 0.1) !default;
  $PIVOTGRID_DRAG_HEADER_SECOND_SHADOW_COLOR: color.change($base-shadow-color, $alpha: 0.2) !default;

  $PIVOTGRID_AREA_ALL_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAJElEQVQoz2P8z4AfsDAwJELVzGfExmIiYAAD5QoYRx1JL0cCAJeiFh8Qq9chAAAAAElFTkSuQmCC") !default;
  $PIVOTGRID_AREA_FILTER_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAWElEQVQoz83RsQqAMAxF0fepFxzEQRz8e1sah0JTamhXeVtyCCSRaR6ZTGQsSHJgcRyk1YQ7aBcuB+KkDO0D9UDsHcmARiC2BqiVEfg2+jOoF30+YPnNWV4jV/jo04VE6gAAAABJRU5ErkJggg==") !default;
  $PIVOTGRID_AREA_COLUMN_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAIElEQVQoz2P4z4AfAlHCfwgEshogEFmMPgpGHUkfRwIAQ8IdQALkrHMAAAAASUVORK5CYII=") !default;
  $PIVOTGRID_AREA_ROW_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAI0lEQVQoz2P4z4AfAlHCfwjEzqKPAsKObIBA7Cz6KBgGIQkAQ8IdQJKOGQIAAAAASUVORK5CYII=") !default;
  $PIVOTGRID_AREA_DATA_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAARElEQVQoz2P4z4AfMhClIOE/NkiSAl+ooG8CQwKIzwChEQpQlGBXgKYEwxeoSrB6k7ACfFYkYPgDXQGKdAItQpKi2AQAaDQFJxj4SdQAAAAASUVORK5CYII=") !default;

  $PIVOTGRID_DIMENSION_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAH0lEQVQoz2P4z4AfMlBHQcJ/MESjqasAKxx5bqAosgCZ3QSYpC33dQAAAABJRU5ErkJggg==") !default;
  $PIVOTGRID_HIERARCHY_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAMUlEQVQoz2P4z4AfMlBXQcJ/EKShggQoxKEAojsBwxQqKUjACpEVoOhGNYVKCiiKLAATcARoA49V5wAAAABJRU5ErkJggg==") !default;

  $PIVOTGRID_POSITION_INDICATOR_COLOR: gray !default;
  $pivotgrid-chevron-icon-color: $PIVOTGRID_AREA_COLOR !default;
}

@if $mode == "dark" {

  $PIVOTGRID_AREA_BACKGROUND: $base-bg !default;
  $PIVOTGRID_BORDER_COLOR: $base-border-color !default;

  /**
    * $name 10. Header text color
    * $type color
    */
  $PIVOTGRID_AREA_COLOR: color.change($base-text-color, $alpha: 0.54) !default;

  $pivotgrid-field-area-box-text-color: $PIVOTGRID_AREA_COLOR !default;
  $pivotgrid-field-area-box-background-color: lighten($base-bg, 12%) !default;
  $PIVOTGRID_DATA_AREA_COLOR: $base-text-color !default;

  /**
    * $name 20. Totals background color
    * $type color
    */
  $PIVOTGRID_TOTALCOLOR: color.change(darken($PIVOTGRID_AREA_BACKGROUND, 13.3%), $alpha: 0.2) !default;

  /**
    * $name 30. Grand totals background color
    * $type color
    */
  $PIVOTGRID_GRANDTOTALCOLOR: $base-hover-bg !default;

  /**
    * $name 40. Field area text color
    * $type color
    */
  $PIVOTGRID_FIELD_AREA_TEXT_COLOR: color.change(darken($PIVOTGRID_AREA_COLOR, 26.2%), $alpha: 0.3) !default;

  $PIVOTGRID_ACCENT_COLOR: $base-accent !default;
  $PIVOTGRID_DRAG_HEADER_BORDER_COLOR: color.change($PIVOTGRID_ACCENT_COLOR, $alpha: 0.5) !default;
  $PIVOTGRID_DRAG_HEADER_FIRST_SHADOW_COLOR: color.change($base-shadow-color, $alpha: 0.1) !default;
  $PIVOTGRID_DRAG_HEADER_SECOND_SHADOW_COLOR: color.change($base-shadow-color, $alpha: 0.2) !default;

  $PIVOTGRID_AREA_ALL_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAJElEQVQoz2P8z4AfsDAwJELVzGfExmIiYAAD5QoYRx1JL0cCAJeiFh8Qq9chAAAAAElFTkSuQmCC") !default;
  $PIVOTGRID_AREA_FILTER_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAWElEQVQoz83RsQqAMAxF0fepFxzEQRz8e1sah0JTamhXeVtyCCSRaR6ZTGQsSHJgcRyk1YQ7aBcuB+KkDO0D9UDsHcmARiC2BqiVEfg2+jOoF30+YPnNWV4jV/jo04VE6gAAAABJRU5ErkJggg==") !default;
  $PIVOTGRID_AREA_COLUMN_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAIElEQVQoz2P4z4AfAlHCfwgEshogEFmMPgpGHUkfRwIAQ8IdQALkrHMAAAAASUVORK5CYII=") !default;
  $PIVOTGRID_AREA_ROW_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAI0lEQVQoz2P4z4AfAlHCfwjEzqKPAsKObIBA7Cz6KBgGIQkAQ8IdQJKOGQIAAAAASUVORK5CYII=") !default;
  $PIVOTGRID_AREA_DATA_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAARElEQVQoz2P4z4AfMhClIOE/NkiSAl+ooG8CQwKIzwChEQpQlGBXgKYEwxeoSrB6k7ACfFYkYPgDXQGKdAItQpKi2AQAaDQFJxj4SdQAAAAASUVORK5CYII=") !default;

  $PIVOTGRID_DIMENSION_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAH0lEQVQoz2P4z4AfMlBHQcJ/MESjqasAKxx5bqAosgCZ3QSYpC33dQAAAABJRU5ErkJggg==") !default;
  $PIVOTGRID_HIERARCHY_IMAGE: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAMUlEQVQoz2P4z4AfMlBXQcJ/EKShggQoxKEAojsBwxQqKUjACpEVoOhGNYVKCiiKLAATcARoA49V5wAAAABJRU5ErkJggg==") !default;

  $PIVOTGRID_POSITION_INDICATOR_COLOR: gray !default;
  $pivotgrid-chevron-icon-color: $PIVOTGRID_AREA_COLOR !default;
}

