.dot_plot_filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 20px;

  label {
    font-family: "Matter SemiMono", monospace;
    font-size: 12px;
    color: var(--soft-grey);
  }
}

.dot_plot_search {
  font-family: "Matter SemiMono", monospace;
  font-size: 12px;
  color: var(--soft-black);
  border: 1px solid var(--gridline);
  border-radius: 7px;
  padding: 8px 10px;
  width: 280px;
  box-sizing: border-box;
  outline: none;
  background: var(--paper);

  &:focus {
    border-color: var(--hard-grey);
  }

  &::placeholder {
    color: var(--soft-grey);
  }
}

.dot_plot_scroll {
  overflow: auto;
  max-height: 75vh;
  border: 1px solid var(--gridline);
  border-radius: 7px;
}

table.dot_plot {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;

  th,
  td {
    box-sizing: border-box;
    background: var(--paper);
  }

  thead th {
    position: sticky;
    z-index: 2;
    height: 32px;
    background: var(--gentle-grey);
    border-bottom: 1px solid var(--gridline);
    font-family: "Matter SemiMono", monospace;
    font-weight: normal;
    font-size: 11px;
    color: var(--soft-grey);
    white-space: nowrap;
  }

  thead tr:first-child th {
    top: 0;
  }

  thead tr:last-child th {
    top: 32px;
  }

  th.dot_plot_week_label {
    text-align: left;
    padding: 0 12px;
  }

  th.dot_plot_day {
    text-align: center;
    min-width: 28px;
    padding: 0;
  }

  th.dot_plot_corner {
    left: 0;
    z-index: 3;
    text-align: left;
    padding: 0 16px;
    border-right: 1px solid var(--gridline);
  }

  tbody th.dot_plot_user {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 220px;
    max-width: 320px;
    padding: 8px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    color: var(--soft-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid var(--gridline);
    border-bottom: 1px solid var(--gridline);
  }

  .dot_plot_user_name {
    display: block;
  }

  .dot_plot_user_accounts {
    display: block;
    font-size: 11px;
    color: var(--soft-grey);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  td.dot_plot_cell {
    min-width: 28px;
    height: 40px;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--gridline);
  }

  th.week_start,
  td.week_start {
    border-left: 1px solid var(--gridline);
  }

  th.today,
  td.today {
    background: var(--shaded-white, var(--gentle-grey));
  }

  tbody tr:hover td,
  tbody tr:hover th.dot_plot_user {
    background: var(--gentle-grey);
  }

  .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--forest);
    vertical-align: middle;
  }

  td.dot_plot_empty {
    padding: 24px 16px;
    font-size: 13px;
    color: var(--soft-grey);
  }
}
