/** CSS for a normalized accelerator performance view component. */

@use 'frontend/app/styles/common';

:host:not(.dark-theme) {
  mat-expansion-panel {
    @include common.overview-card;
    margin: 0;
  }
}

mat-expansion-panel-header {
  margin: 8px 8px 0;
}

mat-panel-title {
  @include common.overview-card-title;
  background-color: transparent;
}

mat-expansion-panel-header.cdk-keyboard-focused,
mat-expansion-panel:not(.mat-expanded) mat-expansion-panel-header:hover {
  background-color: common.$card-title-focus-background-color !important;
}

.mat-expanded mat-expansion-panel-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

b {
  font-weight: 500;
}

ul {
  @include common.ul-flat;
}

:host.dark-theme {
  border: none;

  mat-expansion-panel {
    @include common.overview-card-dark-theme;
  }

  mat-panel-title {
    background-color: transparent;
    color: common.$dark-theme-card-title-color;
  }

  mat-expansion-panel-header {
    background-color: common.$dark-theme-card-title-background-color;
    margin: 0;
  }

  mat-expansion-panel-header.cdk-keyboard-focused,
  mat-expansion-panel:not(.mat-expanded) mat-expansion-panel-header:hover {
    background-color: common.$dark-theme-card-title-focus-background-color !important;
  }

  .table {
    margin-top: 18px;
  }
}
