// Chart area -- contains all charts.
.award-charts {
    display: block;

    // Style for an individual chart.
    @at-root #{&}__chart {
        display: block;

        @media screen and (min-width: $screen-sm-min) {
            flex: 0 0 33.3333%;
            width: 33.3333%;
        }

        @media print {
            break-after: page;
            page-break-after: always;
            margin: 0 auto;
        }

        .title {
            font-size: 1.2rem;
        }
    }

    // Style for the chart.js <canvas> of an individual chart.
    @at-root #{&}__canvas {
        position: relative;
        height: 180px;

        @media print {
            width: 100%;
            height: auto;
            margin: 0 auto;
        }

        canvas {
            display: block;
            width: 0;
            height: 0;
        }
    }

    @at-root #{&}__legend {
        margin: 20px auto 50px;
        width: 80%;

        @media screen and (min-width: $screen-md-min) {
            width: 80%;
        }

        @media print {
            width: 70%;
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;

            li {
                margin-left: 0;
                padding-left: 18px;
                text-indent: -18px;
            }
        }

        a {
            display: block;
            margin: 2px 0;
            padding: 0 3px;
            color: black;
            text-indent: -8px;
            text-decoration: none;
            line-height: 18px;

            &:hover {
                background-color: #e0e0e0;
            }
        }

        .chart-legend-chip {
            display: inline-block;
            width: auto;
            height: 12px;
            margin-right: 5px;
            vertical-align: top;
        }

        .chart-legend-label {
            display: inline;
            position: relative;
        }
    }

    @at-root #{&}__title {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding-top: 10px;
        text-align: center;
        color: gray;
        font-size: 1.2rem;
        font-weight: 400;

        .reagentsreportlink {
            margin-left: 5px;
        }
    }
}

// Provides the flex structure for a group of charts.
.award-chart__group-wrapper {
    padding: 5px;

    &:first-child {
        margin: 50px 0 0 0;
        margin-top: 0;
    }

    h2 {
        margin-top: 5px;
        padding-bottom: 10px;
        font-size: 1.8rem;
        font-weight: normal;
        text-align: center;
        border-bottom: 1px solid #a0a0a0;

        .btn {
            display: inline-block;
            margin-left: 5px;
            padding-top: 5px;
        }
    }

    .reporttitle {
        position: absolute;
        padding-top: 7px;
        padding-bottom: 3px;
        margin-left: 8px;
    }
}

// Style for a group of charts, like for the experiment group or annotation group.
.award-chart__group {
    @media screen and (min-width: $screen-sm-min) {
        display: flex;
    }
}

.legend-title {
    margin-bottom: 5px;
    text-align: center;
    color: #808080;
    font-size: 1.1rem;
}

/* stylelint-disable-next-line selector-class-pattern */
.type-Award {
    .panel__split {
        border-top: 1px solid #c0c0c0;
    }
}
