/* Survey results page */
main.admin.surveys {

  .results-navigation-inner {
    @media screen and (max-width: 576px){
      flex-wrap: wrap;
    }
  }

  .survey-container {
    section#survey-details, section#responses-summary {
      align-self: stretch;
      border-right: 1px solid var(--light-gray);
      min-width: var(--container-s);
      padding-right: 0.5rem;
      width: var(--container-s);
    }

    section#survey-response, section#answer-summary, section#questions-content {
      flex: 1;
      width: var(--container-sm);

      .response-rate-info {
        align-items: center;

        .results-table {
          flex: 1;
          min-width: var(--container-s);
          width: 100%;
        }
      }
    }
  }

  .results-table-rows-wrapper {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    box-shadow: var(--gray-box-shadow);
    gap: 0.25rem;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
  }

  .results-table-row {
    display: flex;
    align-items: center;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--off-white);
    gap: 0.5rem;
  }

  .results-table-row--alt {
    background-color: var(--lightest-gray);
    border: 3px var(--theme-color) solid;
  }

  .results-table-row.total {
    font-weight: 600;
  }

  .results-table-header {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    height: 2.5rem;
    padding: 0.25rem 0.5rem;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }

  .results-table-cell {
    align-items: center;
    padding: 0.25rem;
    border-right: 1px solid var(--light-gray);
    font-size: .875rem;
    width: 30%;

    &:last-child {
      border-right: none;
    }
  }

  .results-table {
    .cell-xs {
      width: 15%;
    }

    .cell-xl {
      width: 40%;
    }

    .cell-xxl {
      width: 60%;
    }
  }

  @media screen and (max-width: 768px) {
    .survey-container {
      flex-direction: column;

      section#survey-details, section#responses-summary, section#survey-response, section#answer-summary {
        min-width: var(--container-xs);
        width: 100%;
      }

      section#survey-details, section#responses-summary {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--light-gray);
        padding-bottom: 0.5rem;
      }

      section#survey-response .response-rate-info .chart__wrapper.chart__wrapper--m .chart__legend {
        min-width: var(--container-xs);
      }
    }
  }

  @media screen and (max-width: 576px){
    .survey-container section#survey-response .response-rate-info .results-table {
      min-width: var(--container-xs);
    }
  }
}
