﻿.custom-legend {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 10px;
    font-size: 13px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.legend-label, .separator, .legend-value {
    margin: 0 3px;
}

.legend-item div:first-child {
    margin-right: 3px;
}

.legend-item .legend-value {
    font-weight: bold;
}
/* -------------------------------------Chart css ----------------------------- */

.gauge-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font-family: 'Chivo Mono', monospace;
    white-space: nowrap;
    font-size: 32px;
    font-weight: bold;
}

.button-panel-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

    .button-panel-container > .button-panel {
        width: 100%;
        height: 100%;
        font-weight: 600;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

/* ------------------------------------Dashboard Layout css ------------------*/

div.e-dashboardlayout.e-control div.e-panel div.e-panel-header div {
    overflow: initial;
}

.e-panel-container {
    font-size: 14px;
}


/* Pour gérer le width pour le titre choix du type */

.wizard-nav-item-title {
    width: 100px;
}


#dashboardLayoutContainer {
    margin: 15px;
    flex: 1;
    padding-bottom: 5px;
    overflow: hidden;
}

.e-control.e-lib.e-dashboardlayout.e-responsive {
    z-index: 0;
}

.e-dashboardlayout.e-control .e-panel .e-panel-container .e-grid.sf-grid .e-gridcontent .e-content.e-yscroll {
    overflow: auto;
}

#frameLayout {
    position: absolute;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
}

    #frameLayout > div {
        border: 2px dashed;
        border-color: transparent;
        transition: all 0.3s;
        width: 100%;
        height: 100%;
    }


.e-panel-header {
    background-color: #f7f9fc;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e3e3e3;
    border-radius: 8px 8px 0 0;
}

.panel-content {
    vertical-align: middle;
    font-size: 15px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.61);
    text-align: center;
}

.e-panel-content {
    height: calc(100% - 0px);
    width: 100%;
    display: block;
}

.e-panel .e-header-text {
    padding: 12px 0 12px 0;
}

.e-panel {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
}

.e-dashboardlayout.e-control .e-panel .e-panel-header {
    font-size: 15px;
    font-weight: 500;
    height: 45px;
    line-height: 30px;
    padding: 10px;
    vertical-align: middle;
    border-bottom: 0.5px solid #e3e3e3;
}

.e-panel-header button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

    .e-panel-header button:hover {
        background-color: #0056b3;
    }
/* ------------------------------------Dashboard Layout css ------------------*/

/* ------------------------------------Dashboard no Data css ------------------*/

.dashBoardNoDataField {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.dashBoardNoDataTemplate {
    height: inherit;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------Dashboard no Data css ------------------*/

/* ------------------------------------Dashboard Configure ChartData css ------------------*/

.vertical-line {
    border-left: 2px solid #000;
    display: inline-block;
    height: 130px;
    margin: 0 20px;
}

/* ------------------------------------Dashboard Configure ChartData css ------------------*/

/* ------------------------------------Index Dashboard css ------------------*/


.e-inplaceeditor > .e-editable-value-container > .e-editable-value {
    font-size: 32px;
}

.box-header:hover {
    background-color: #f1f1f1;
}

.box-primary {
    background-color: #ffffff;
}

/* ------------------------------------Index Dashboard css ------------------*/

/* ------------------------------------Powershell ------------------*/

.text-multiline textarea {
    height: 500px !important;
}
/* ------------------------------------Powershell ------------------*/



.custom-card {
    cursor: pointer;
    border: 2px solid;
    border-radius: 25px;
    padding: 10px;
    background-color: white;
    width: 260px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 5px 0;
}

    .custom-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        background-color: var(--cso-gray-300);
    }

.custom-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .custom-card-header .title {
        flex: 1;
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }


    .custom-card-header .icon-container {
        width: 40px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 10px;
    }

.custom-card-icon::before {
    font-size: 40px;
}

.custom-card-subtitle {
    margin: 0;
    font-size: 14px;
    color: grey;
}

.custom-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.agent-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex: 1;
}

    .agent-info .agent-circle {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

        .agent-info .agent-circle .tooltip {
            visibility: hidden;
            width: 120px;
            background-color: #555;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -60px;
            opacity: 0;
            transition: opacity 0.3s;
        }

            .agent-info .agent-circle .tooltip::after {
                content: "";
                position: absolute;
                top: 100%;
                left: 50%;
                margin-left: -5px;
                border-width: 5px;
                border-style: solid;
                border-color: #555 transparent transparent transparent;
            }

        .agent-info .agent-circle:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }

    .agent-info span {
        font-weight: bold;
    }

.custom-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* Conteneur principal */
.simple-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Chivo Mono', monospace;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Icône */
.icon-container {
    font-size: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Valeur au centre */
.value-container {
    font-size: 60px;
    display: inline-block;
    white-space: nowrap;
    min-width: 50px;
}

/* Unité à droite */
.unit-container {
    font-size: 30px;
    margin-top: -5px;
    display: inline-block;
    min-width: 50px;
    text-align: left;
}

.content-value {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


/* ------------------------------------Configuring Panel ------------------*/

.configuring-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.configuring-panel-icon {
    font-size: 2em;
    color: var(--cso-gray-600);
    margin-bottom: 10px;
}

.configuring-panel-text {
    font-weight: 600;
    font-size: 1.5em;
    color: var(--cso-gray-600);
}

.key-number-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 260px;
    transition: transform 0.2s ease-in-out;
}

/* ------------------------------------KeyNumberWithTrendline------------------*/

.number-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.number-unit {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.unit-label {
    font-size: 1rem;
    font-weight: 500;
}

/* ------------------------------------KeyNumberWithTrendline------------------*/

/* ------------------------------------Gestion postion spinner wrapper------------------*/

.visualization-wrapper-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.visualization-loading-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}


    .visualization-loading-container * {
        pointer-events: auto;
    }




/* ------------------------------------Editable Filter Row dans les rapports ------------------*/


.editable-rows .row {
    align-items: center;
    min-height: 48px;
    margin-bottom: 6px;
}

.editable-rows .btn {
    align-self: center;
}

/* ------------------------------------Box -> DumbVisualziaiton ------------------*/

.dashboard-panel-wrapper {
    height: 100%;
}

.box-visualization.box {
    max-height: 100%;
    height: 100%;
}


    .box-visualization.box .box-body {
        overflow-y: hidden;
        max-height: 100%;
        height: 100%;
    }

/* --- Fit Text Container -------------------------------------------- */
.fit-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
    gap: 0.5rem;
}

.icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-dynamic-size {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
}

.value-unit-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.value-unit-line {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
}

.value-text {
    line-height: 1.1;
    padding-bottom: 0.1em;
    white-space: nowrap;
}

.unit-text {
    display: inline-block;
    vertical-align: bottom;
    white-space: nowrap;
    margin-left: 0.25em;
    line-height: 1;
    font-size: 0.5em;
}

.tooltip-container > div {
    width: 100%;
}

.service-badge-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 4px;
}
