/* ------------------------------------------------------------------------------------------------------------------- */
/* Size of charts in a card.                                                                                           */
/* ------------------------------------------------------------------------------------------------------------------- */

.card-chart-carousel {
    width: 100%;
    min-height: 256px;
    min-width: 256px;
    display: block;
    padding-left: 20px;
    padding-right: 20px;
}

.log-output {
    font-size: var(--font-size-sm);
}

/* ------------------------------------------------------------------------------------------------------------------- */
/* Build configuration UI header frame                                                                                 */
/* ------------------------------------------------------------------------------------------------------------------- */

.subsection-header {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
    background-image: -moz-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
    background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
    background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
}

.subsection-title {
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    font-weight: bold;
}

/* Add padding-top for more space */
.tab-content > .active {
    display: block;
    padding-top: 20px;
}
/* No issues card */
.no-issues {
    text-align: center;
    svg {
        height: 200px;
        width: 200px;
        color: var(--success-color);
    }
}

/* Bar graph in table */
.bar-graph {
    float: left;
    color: transparent;
}

.severity-error {
    background-color: #FFCDD2;
}

.severity-error--hover:hover {
    background-color: #EF9A9A;
}

.severity-high {
    background-color: #FFE0B2;
}

.severity-high--hover:hover {
    background-color: #FFCC80;
}

.severity-normal {
    background-color: #FFF9C4;
}

.severity-normal--hover:hover {
    background-color: #FFF59D;
}

.severity-low {
    background-color: #F0F4C3;
}

.severity-low--hover:hover {
    background-color: #E6EE9C;
}

/* ------------------------------------------------------------------------------------------------------------------- */

/* Mouse cursor pointer for clicking on doughnut charts */
.graph-cursor-pointer {
    cursor: pointer;
}

/* ------------------------------------------------------------------------------------------------------------------- */
/* Cards                                                                                                               */
/* ------------------------------------------------------------------------------------------------------------------- */

.warnings-console-output {
    overflow-y: auto;
    margin: 0 -1rem -1rem;
    padding: 0 1rem 1rem;

    pre {
        background: transparent;
        border: none;
        margin: 0;
        padding: 0;
        line-height: 1.75;
        font-size: var(--font-size-sm);
        overflow-wrap: break-word;

        a {
            overflow-wrap: break-word;
        }
    }
}

@media (width >= 1000px) {
    .jenkins-card__content .warnings-console-output {
        height: 300px;
    }
}

@media (width < 1000px) {
    .jenkins-card__content .warnings-console-output {
        max-height: 300px;
    }
}

.warnings-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;

    .jenkins-card {
        height: 100%;

        pre {
            margin-bottom: 0;
        }
    }
}

@media (max-width: 1200px) {
    .warnings-cards {
        display: flex;
        flex-direction: column;

        .jenkins-card {
            min-height: 220px;
        }
    }
}

.warnings-card__small {
    grid-column: span 1;
}

.warnings-card__large {
    grid-column: span 2;
}

.warnings-card__x-large {
    grid-column: span 3;
}
