﻿/******************************** Charts ******************/
.pieChart {
    display: flex;
}

.parentPath {
    stroke-width: 18px;
}

.childPath {
    stroke-width: 4px !important;
    opacity: 0;
    transition: opacity 0.5s;
}

.parentPath:hover + .group .childPath {
    opacity: 1;
}

.pieTooltip {
    visibility: hidden;
    font-size: x-small;
    max-width: 10px;
    transition: visibility;
}

.parentPath:hover + .group .pieTooltip {
    visibility: visible;
}

.barChart {
    background-color: #FFFFFF;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    height: 100%;
    width: 100%;
}

    .barChart line {
        stroke-width: 10px;
        transition: stroke-width 0.5s;
    }

        .barChart line:hover {
            stroke-width: 20px;
        }

    .barChart text {
        font-family: 'Poppins';
        font-weight: 500;
        font-size: 10px;
        color: black;
    }
/*********************** Barchart *******************************/
.ChartGrid {
    display: block;
    max-width: 1050px;
}

.printing-speed-reference {
    text-align: start;
    padding-bottom: 2vh;
    display: flex;
    flex-direction: column;
}

    .printing-speed-reference p {
        font-size: 12px;
    }

.reference-input {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 32px;
    padding-left: 10px;
    width: 50px !important;
    font-size: 14px;
}

@media (min-aspect-ratio:1/1) {

    .chart-reference {
        position: absolute;
        margin-left: 40rem;
        margin-top: -3.8rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .chart-reference input {
            width: 7rem;
            height: 2.3rem;
            text-align: center;
        }

    .printing-speed-legend {
        height: fit-content !important;
    }
}

@media (max-aspect-ratio:1/1) {


    .chart-reference input {
        width: 6rem;
        height: 2.3rem;
        text-align: center;
    }
}

@media (min-width: 550px) and (max-width: 1000px) {

    .chart-reference {
        position: absolute;
        margin-left: 15rem;
        margin-top: -3.8rem;
        display: flex;
        gap: 0.7rem;
        align-items: center;
    }

    .printing-speed-legend {
        /*height: 95vh; */
    }
}

@media (max-width: 550px) {

    .chart-reference {
        place-content: center;
        display: flex;
        gap: 0.7rem;
        align-items: center;
        padding-bottom: 2vh;
    }

    .printing-speed-legend {
        /*  height:85vh; */
    }
}

.chart-container {
    display: flex;
    flex-flow: row;
    gap: 10px;
}

.chart-panel {
    margin-bottom: 10px;
    display: flex;
    flex-flow: column;
    border-radius: 6px;
    align-items: stretch;
    min-width: 300px;
    flex: 1;
}

.chart-header {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 16px;
    font-size: 18px;
}

@media (min-aspect-ratio:1/1) {
    /* Desktop */
    .job-column {
        max-width: 15vw;
    }

        .job-column p {
            max-width: 15vw;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .chart-legend {
        padding-top: 10%;
        padding-bottom: 5%;
    }

        .chart-legend ul {
            padding-left: 20px !important;
        }

        .chart-legend p:last-child {
            padding-left: 10px;
            margin-left: auto;
        }

    .no-data-message {
        width: 10rem;
        height: 10rem;
        text-align: center;
        align-content: center;
    }

    .alarms-panel a {
        color: var(--link-color);
        font-family: 'Poppins';
        font-weight: 400;
        font-size: 12px;
        padding: 12px 30px;
    }
}

@media (max-aspect-ratio:1/1) {
    /* Mobile */

    .job-column {
        max-width: 80vw;
    }

        .job-column p {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .chart-legend ul {
        padding: 0.5rem;
    }

    .chart-legend p:last-child {
        margin-left: auto;
    }

    .chart-legend ul li p:first-of-type {
        white-space: nowrap;
        overflow: hidden;
    }

    .chart-header img {
        display: none;
    }


    .alarms-panel {
        width: 40vw;
        display: flex;
        flex-flow: column;
        background: var(--dialog-bg-color);
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
        border-radius: 6px;
        align-items: center;
        align-items: stretch;
        overflow: hidden;
    }

        .alarms-panel th {
            padding-left: 5px !important;
        }

        .alarms-panel td {
            padding-left: 5px !important;
            transition: background-color 0.5s;
            border-bottom: 2px solid var(--border-bottom);
        }

        .alarms-panel a {
            color: var(--link-color);
            font-family: 'Poppins';
            font-weight: 500;
            font-size: 12px;
            padding: 12px 5px;
        }

    .user-name {
        max-width: 20vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.chart-legend li {
    display: flex;
    flex-flow: row;
    justify-content: left;
    gap: 10px;
    align-items: center;
}

.chart-legend div {
    height: 8px;
    width: 8px;
    border-radius: 4px;
}

.chart-tooltip {
    position: relative;
}

    /* Tooltip text */
    .chart-tooltip .tooltiptext {
        visibility: hidden;
        width: fit-content;
        background-color: black;
        color: #fff;
        text-align: center;
        padding: 0.5rem;
        border-radius: 6px;
        opacity: 0.7;
        font-size: 0.65rem;
        position: absolute;
        margin-left: 0.2rem;
        word-wrap: break-word;
    }

    /* Show the tooltip text when you mouse over the tooltip container */
    .chart-tooltip:hover .tooltiptext {
        visibility: visible;
    }

.alarm-selected {
    background-color: var(--background-select);
}

.alarms-header {
    height: 75px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-bottom);
    align-self: stretch;
    padding-left: 20px;
    padding-right: 20px;
}

.secondline-td {
    margin-top: 2px;
    font-size: 10px;
}

.alarms-button-causes {
    height: 40px;
    width: 170px;
    background: var(--dialog-bg-color);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.alarms-panel th {
    background: var(--app-background);
    padding-left: 30px;
}

.alarms-panel td {
    padding-left: 30px;
    transition: background-color 0.5s;
    border-bottom: 2px solid var(--border-bottom);
}

.alarms-panel thead tr {
    height: 40px;
}

.alarms-panel tbody tr {
    height: 48px;
}

.alarms-panel tr:hover td {
    background-color: var(--background-select);
    color: var(--link-color);
}

.alarm-settings-div {
    margin-left: -210px;
    margin-top: 45px;
    width: 250px;
    gap: 2px;
    position: absolute;
    z-index: 1;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px 5px;
    background: var(--background-dropdown);
}

.alarm-summary-comparison-button {
    margin-top: 10px;
    display: flex;
    justify-content: right;
}

.alarm-settings-button {
    margin-left: 10px;
    padding: 10px;
}

.alarm-settings-button-dropdown {
    margin-left: 10px;
    background-color: var(--accent-bg-color);
    padding: 10px;
}

.alarms-mobile-popup-header {
    display: flex;
    place-content: space-between;
    padding-left: 2vh;
    padding-right: 1vh;
    padding-top: 1vh;
    flex-direction: row;
}

.alarms-mobile-container {
    width: 50%;
    height: fit-content;
    padding-bottom: 3rem;
    border-radius: 0.3rem;
    background-color: white;
    box-shadow: 2px 2px 10px 0px rgba(0,0,0,0.3);
    white-space: pre-wrap;
}

.alarms-mobile-popup {
    padding-left: 4vh;
}
