@use "../settings" as *;
@use "../tools" as *;

:root {
  @each $name, $value in $breakpoints {
    --breakpoint-#{$name}: #{$value};
  }
}

html {
  font-size: 62.5%;
}

body {
  @include flex(column, nowrap);

  font-size: $font-size-4;
  font-weight: $font-weight-regular;
  color: $color-neutral-10;
  background-color: $color-neutral-1;
}

main {
  flex: 1;
}

input[disabled] {
  background-color: $color-neutral-5;
  opacity: 0.5 !important;
}

table {
  border-collapse: collapse;
  border: 0.1rem solid $color-neutral-10;

  td:has(table) {
    padding: 0;
  }

  table {
    inline-size: 100%;
  }

  tbody tr:nth-child(even) {
    background-color: $color-neutral-1;
  }

  tbody tr:nth-child(odd) {
    background-color: $color-neutral-3;
  }

  thead {
    background-color: $color-neutral-1;
  }

  th {
    padding-block: $whitespace-5;
    font-size: $font-size-3;
    font-weight: $font-weight-semi-bold;
    text-transform: uppercase;
  }

  th,
  td {
    padding-inline: $whitespace-4;
  }

  th {
    text-align: start;
  }
}
