﻿body {
}

.form-group {
    margin-bottom: 1rem !important;
}

.divider {
    width: 100%;
    height: 0px;
    border-top: 1px solid #dedede;
}

.text-lightgrey {
    color: lightgrey;
}

.stat {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .stat i {
        color: #3f80ea !important;
    }

    .stat.stat-sm {
        font-size: 1rem;
    }

/*.chart{
    min-height: 100%;
}*/

.dashboard-alarms-container {
    display: flex;
    gap: 8px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-alarm {
    border-radius: 6px;
    padding: 8px;
    font-size: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #CCCCCC;
    color: #666;
    flex-direction: column;
    gap: 0;
    line-height: 12px;
}

    .dashboard-alarm.in-alarm {
        background-color: #C00;
        color: #FFF;
    }

    .dashboard-alarm.warning.in-alarm {
        background-color: gold;
        color: rgba(0,0,0,0.8);
    }



.table-alarm-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.table-alarm {
    background-color: #C00;
    color: #FFF;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

    .table-alarm:has(.warn) {
        background-color: gold !important;
        color: #333 !important;
    }


#detail-cards {
}

    #detail-cards .card {
        min-width: 300px;
    }

    #detail-cards .card-title {
        flex: 1 1 auto;
        clear: both;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #detail-cards .card-body {
        display: flex;
        flex-direction: column;
    }


.stat .icon {
    background-color: #3f80ea !important;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
}

    .stat .icon.co2 {
        -webkit-mask-image: url('/img/co2.svg');
        mask-image: url('/img/co2.svg');
    }

.connect-status, .service-status {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 16px;
}

    .connect-status.online {
        background-color: var(--bs-success);
        color: rgba(255,255,255,1);
    }

    .connect-status.offline, .service-status.inactive {
        background-color: var(--bs-gray-300);
        color: rgba(255,255,255,0.5);
    }

    .service-status.active {
        background-color: var(--bs-info);
        color: rgba(255,255,255,1);
    }

    .service-status.oof {
        background-color: var(--bs-danger);
        color: rgba(255,255,255,1);
    }

.lastErogationDate {
    font-size: 11px;
}

.lastUpdateDate {
    font-size: 11px;
}

.sidebar-brand img {
    max-width: 100%;
}
