/** CSS for a performance summary view component. */

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

:host {
  @include common.border-bottom-gray;
  @include common.border-right-gray;
}

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

mat-card {
  @include common.overview-card-height;
}

mat-card-title {
  @include common.overview-card-title;
}

b {
  font-weight: 500;
}

ul {
  @include common.ul-flat;
}

table {
  width: 100%;
}

table ul {
  margin: 0;
}

.item-container {
  margin-bottom: 16px;
}

.item-container > table {
  border-spacing: 0;
}

.item-container > td {
  padding: 0;
}

.item-value,
.child-item-value {
  padding-left: 8px;
  min-width: 80px;
  width: 20%;
  font-size: 18px;
  font-weight: 500;
}

.child-item-value {
  font-size: 16px;
  font-weight: unset;
}

.item-description {
  margin-left: 20px;
}

.flops-utilization-tooltip-target {
  color: #e8710a;
  border-bottom: 1px dotted #e8710a;
  cursor: pointer;
}

.tooltip-icon-container {
  position: relative;
}

.tooltip-icon {
  color: #e8710a;
  position: absolute;
  top: -2px;
  left: 4px;
  font-size: 20px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

:host.dark-theme {
  flex-grow: 1;
  border: none;

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

  mat-card-title {
    background-color: common.$dark-theme-card-title-background-color;
    color: common.$dark-theme-card-title-color;
    padding: 16px;
    margin: -16px -16px 16px;
  }
}

.baseline-value {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
  font-weight: normal;
}

.baseline-data {
  color: #adc6fa;
  font-weight: 500;
}

.legend-container {
  margin-bottom: 12px;
  font-size: 14px;
}

.legend-text {
  color: rgba(0, 0, 0, 0.54);
}
