@use '../../../../styles/_globals.scss' as *;

.isHighlight {
  font-weight: 600;
}

h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: 500;
}

table + table {
  margin-top: 20px;
}

td span {
  font-weight: normal;
}

td span.isHighlight {
  font-weight: 800;
}

td,
th {
  padding: var(--s-quarter) var(--s);
  text-align: center;

  &:first-child {
    text-align: left;
    padding-left: 0;
  }

  &:last-child {
    padding-right: 0;
  }
}

:host ::ng-deep .collapsible-title {
  font-weight: bold;
}

// Mobile responsiveness
@include mq(xs, max) {
  table {
    font-size: 0.875rem;
    width: 100%;
  }

  td,
  th {
    padding: var(--s-half) var(--s-half);
    overflow-wrap: anywhere;
    min-width: auto;

    &:first-child {
      padding-left: 0;
      width: 30%;
      text-align: left;
    }

    &:not(:first-child) {
      text-align: right;
    }

    &:last-child {
      padding-right: 0;
    }
  }
}

// Dialog container mobile layout
:host ::ng-deep {
  .mat-mdc-dialog-container {
    @include mq(xs, max) {
      max-width: calc(100vw - 32px);
      margin: var(--s2);
    }
  }

  .mat-mdc-dialog-content {
    @include mq(xs, max) {
      padding: 0 var(--s2);
      max-width: 100%;
      overflow-x: hidden;
    }
  }
}
