﻿.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 ------------------*/


/* 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;
}

#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%;
    }


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

/* ------------------------------------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 ------------------*/


.box-header:hover {
    background-color: var(--uxp-body-background);
}

/* ------------------------------------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(--uxp-treeview-background-hover);
    }

.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(--uxp-text-descriptive);
    margin-bottom: 10px;
}

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

.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: auto;
    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%;
}

/* --- Labels above radio groups --------------------------------------- */
.cso-label:has(+ .radio-button-group) {
    display: block;
}

/* --- Configuration sections (filters, thresholds, sorts) ------------ */
.datashow-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--uxp-grid-border);
}

.datashow-section > .datashow-section-header {
    margin-bottom: 0;
}

.datashow-section {
    margin-bottom: 10px;
}

.datashow-section-title {
    flex-grow: 1;
    font-weight: 500;
}

.datashow-section-empty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--uxp-text-descriptive);
}

/* --- Report cool down: hours, minutes and seconds on one line --------- */
.report-cooldown .row {
    flex-wrap: nowrap;
}

    .report-cooldown .row > * {
        flex: 1 1 0;
        min-width: 0;
    }

/* --- Dashboard panel ------------------------------------------------ */
.datashow-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.datashow-panel-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 8px 12px;
}

    .datashow-panel-header > * {
        min-width: 0;
        max-width: 100%;
    }

.datashow-panel-title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--uxp-text);
}

.datashow-panel-body {
    position: relative;
    flex-grow: 1;
    min-height: 0;
    overflow: visible;
    padding: 8px 12px 12px;
}

    .datashow-panel-body .overflow-hidden,
    .visualization-preview-body .overflow-hidden {
        overflow: visible !important;
    }

.datashow-panel.is-static .datashow-panel-body {
    padding: 0;
}

.uxp-dashboard-container.layout-editable .uxp-dashboard-panel {
    border-style: dashed;
    border-color: var(--uxp-input-border-focus);
}

.uxp-dashboard-container.layout-editable .uxp-dashboard-panel .layout-button-template {
    top: 8px;
}

.uxp-dashboard-container.layout-editable .uxp-dashboard-panel .layout-button-template.btn-close {
    right: 8px;
}

.uxp-dashboard-container.layout-editable .uxp-dashboard-panel .layout-button-template.btn-edit {
    right: 32px;
}

.uxp-dashboard-container.layout-editable .datashow-panel-header {
    padding-right: 36px;
}

.uxp-dashboard-container.layout-editable .datashow-panel-body,
.uxp-dashboard-container.layout-editable .datashow-panel-body * {
    pointer-events: none !important;
}

.datashow-panel .datashow-panel-body .uxp-chart-zoom-toolbar {
    top: var(--datashow-zoom-toolbar-top, -36px);
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

    .datashow-panel:hover .datashow-panel-body .uxp-chart-zoom-toolbar,
    .datashow-panel .datashow-panel-body .uxp-chart-zoom-toolbar:focus-within,
    .datashow-panel .datashow-panel-body .uxp-chart-zoom-toolbar:has(.uxp-chart-zoom-button:not(:disabled) ~ .uxp-chart-zoom-button:not(:disabled)) {
        opacity: 1;
    }

    .datashow-panel .datashow-panel-body .uxp-chart-zoom-toolbar .uxp-chart-zoom-button:disabled {
        display: none;
    }

.datashow-panel:has(.uxp-chart-zoom-toolbar) .datashow-panel-header {
    padding-right: 90px;
}

.datashow-panel:has(.uxp-chart-zoom-button:not(:disabled) ~ .uxp-chart-zoom-button:not(:disabled)) .datashow-panel-header {
    padding-right: 240px;
}

.uxp-dashboard-container.layout-editable .datashow-panel-body .uxp-chart-zoom-toolbar {
    display: none !important;
}

/* --- 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;
}

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

/* Tooltips rendered inside a grid cell inherit its nowrap: let the text wrap within the tooltip width. */
.uxp-tooltip {
    white-space: normal;
}

/* RadioButtonGroup est en inline-flex : sans retour à la ligne, il se place à côté de son label au lieu d'en dessous. */
.cso-label + .uxp-radio-button-group:not(.full-width) {
    display: flex;
    width: fit-content;
}
