﻿.dashboard-stat-bar {
    color: whitesmoke;
    background-color: var(--turquoise-color);
    padding: 1.3rem;
    font-size: 1.2rem;
    border-radius: 1.2rem;
    justify-content: center;
    font-weight: 700;
    position: relative;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1rem;
    width: 100%;
}

.dash-stat-section {
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 1rem;
}

.dash-stat-value {
    font-weight: normal;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combined-result-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: fit-content;
    padding: 0.9rem 1.4rem;
    border-radius: 1.5rem;
    background-color: var(--dashboard-light-blue);
}

.result-row {
    display: grid;
    grid-template-columns: 27% 66% 7%;
    align-items: center;
}

.result-header {
    display: grid;
    grid-template-columns: 27% 66% 7%;
    margin-bottom: 1rem;
}

.response-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}



.response-bar-no-data {
    width: 100%;
    height: 100%;
    background-color: var(--dashboard-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--dashboard-slate);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: auto;
}

.legend-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-circle.positive {
    background-color: var(--dashboard-teal);
}

.legend-circle.partial {
    background-color: var(--dashboard-yellow);
}

.legend-circle.negative {
    background-color: var(--dashboard-coral);
}

.graph-header {
    grid-column: 2;
    text-align: center;
}

.p-value-title {
    grid-column: 3;
    text-align:center;
}

.p-value{
    text-align: center;
}

.container-graphs-p {
}


.combined-result-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: fit-content;
    padding: 0.9rem 1.4rem;
    border-radius: 1.5rem;
    background-color: var(--dashboard-light-blue);
}

.combined-result-label {
    max-width: 190px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
}
.dashboard-stat-bar svg {
    width: 3rem;

    var(--green-turquoise-color)
    }
.img-icon-dash{
    width: 2rem;
    color:wheat;
}

.spider-chart-title {
    font-size: 1.3em;
    font-weight: bold;
}

.vas-scale-title {
    text-align: center;
    font-size: 1.3em;
    color: var(--turquoise-color);
}

.vas-scale-subtitle {
    text-align: center;
    font-size: 0.95em;
    color: var(--dark-teal-color);
}

.vas-scale-pole {
    text-align: center;
    font-weight: bold;
    color: var(--dark-teal-color);
    font-size: 0.85em;
}

.vas-scale-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.vas-scale-legend {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
}

.vas-scale-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85em;
    color: var(--dark-teal-color);
}

.vas-scale-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vas-scale-legend-swatch {
    width: 14px;
    height: 28px;
    border-radius: 7px;
    background-color: var(--dashboard-light-gray);
    flex-shrink: 0;
}

.vas-scale-ruler-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.vas-scale-ruler-container {
    position: relative;
    width: 100px;
    height: 400px;
    flex-shrink: 0;
    margin: 0 auto;
}

.vas-scale-tick-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vas-scale-tick-label {
    position: absolute;
    right: calc(50% + 20px);
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--dark-teal-color);
    font-weight: bold;
}

.vas-scale-ruler {
    width: 100px;
    height: 400px;
    display: block;
}

.response-bar-row {
    display: grid;
    grid-template-columns: 95px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.response-bar-label {
    font-size: 14px;
    text-align: right;
}

.response-bar {
    display: flex;
    height: 2.5rem;
    overflow: hidden;
}

.response-bar-positive {
    background-color: var(--dashboard-teal);
}

.response-bar-partial {
    background-color: var(--dashboard-yellow);
}

.response-bar-negative {
    background-color: var(--dashboard-coral);
}

.response-bar-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.response-bar-label {
    text-align: right;
    font-size: 0.9rem;
}

.response-bar-container {
    display: flex;
    width: 100%;
    height: 30px;
    overflow: hidden;
    background-color: var(--dashboard-light-gray);
}

.response-bar-segment {
    height: 100%;
    min-width: 0;
}

.response-bar-value-1 {
    background-color: var(--dashboard-teal);
}

.response-bar-value-2 {
    background-color: var(--dashboard-yellow);
}

.response-bar-value-3 {
    background-color: var(--dashboard-coral);
}

.response-bar-value-4 {
    background-color: var(--dashboard-mint);
}

.response-bar-value-5 {
    background-color: var(--dashboard-blue-gray);
}

.response-bar-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.85rem;
    color: var(--dashboard-slate);
}

.response-legend-5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.response-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.response-legend-circle {
    display: inline-block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    border-radius: 50%;
}

.response-value-1 {
    background-color: var(--dashboard-teal);
}

.response-value-2 {
    background-color: var(--dashboard-yellow);
}

.response-value-3 {
    background-color: var(--dashboard-coral);
}

.response-value-4 {
    background-color: var(--dashboard-mint);
}

.response-value-5 {
    background-color: var(--dashboard-blue-gray);
}


.response-legend-5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.response-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.response-legend-circle {
    display: inline-block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    border-radius: 50%;
}

.response-value-1 {
    background-color: var(--dashboard-teal);
}

.response-value-2 {
    background-color: var(--dashboard-yellow);
}

.response-value-3 {
    background-color: var(--dashboard-coral);
}

.response-value-4 {
    background-color: var(--dashboard-mint);
}

.response-value-5 {
    background-color: var(--dashboard-blue-gray);
}

.response-bar-value-1 {
    background-color: var(--dashboard-teal);
}

.response-bar-value-2 {
    background-color: var(--dashboard-yellow);
}

.response-bar-value-3 {
    background-color: var(--dashboard-coral);
}

.response-bar-value-4 {
    background-color: var(--dashboard-mint);
}

.response-bar-value-5 {
    background-color: var(--dashboard-blue-gray);
}
.dashboard-section-selector {
    min-height: 100%;
}


.dashboard-section-selector,
.dashboard-outcome-filter {
    background-color: #E9F6FE;
}

.dashboard-section-selector {
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

.dash-main-container {
    height: calc(100vh - var(--navbar-height) - var(--admin-subnav-height));
    overflow-y: auto;
    overflow-x: hidden;
/*    padding-bottom: 3rem;*/
}

.Dashboard-Layout {
    display: flex;
    align-items: stretch;
    background-color: white;
/*    padding-top: 1.5rem;*/
    min-height: 100%;
}

.Dashboard-content-lmenu {
    display: flex;
    flex-shrink: 0;
    width: 17%;
}

.dashboard-section-selector {
    width: 100%;
    flex: 1;
}

.Dashboard-Content-rcontent {
    width: 83%;
    padding: 1rem 2rem 4rem;
}

.Dashboard-content-lmenu {
    width: 20%;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;

    height: calc(100vh - var(--navbar-height) - var(--admin-subnav-height));
}

/* === Filtres du tableau de bord (accordeon) === */
.dash-filter-group {
    margin-bottom: 0.5rem;
}

.dash-filter-group > summary,
.dash-results-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    color: var(--turquoise-color);
    padding: 0.6rem 0;
    cursor: pointer;
    list-style: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--light-grey-color);
    user-select: none;
}

.dash-filter-group > summary::-webkit-details-marker {
    display: none;
}

.dash-filter-group > summary::after,
.dash-results-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--mint-color);
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
}

.dash-filter-group[open] > summary::after,
.dash-results-toggle[aria-expanded="true"]::after {
    transform: rotate(0deg);
}

.dash-results-divider {
    border: 0;
    border-top: 3px solid var(--mint-color);
    opacity: 1;
    margin: 0.75rem 0;
}

.dash-results-content > .dash-filter-group > summary {
    font-size: 0.9rem;
    text-transform: none;
}

.dash-results-content .dash-filter-item {
    font-size: 0.85rem;
}

.dash-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 0 0.5rem;
}

.dash-filter-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--turquoise-color);
    cursor: pointer;
    user-select: none;
}

.dash-filter-item input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 0;
}


/* ----- Loriquet ----- */

.loriquet-wrapper {
    position: absolute;
    right: 2rem;
    top: -9.5rem;
    user-select: none;
}

.loriquet-wrapper__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.loriquet-info {
    position: relative;
    width: 25rem;
    top: -4rem;
    right: -2.5rem;
}

.loriquet-info-img {
    display: block;
    width: 100%;
    height: auto;
}

.loriquet-info-txt {
    position: absolute;
    top: 50%;
    left: 46%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: left;
    z-index: 1;
    color: var(--turquoise-color);
    font-weight: normal;
    line-height: 1.25;
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
}

.loriquet-img {
    height: 12rem;
}


.socio-source-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    transition: 0.2s all ease;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.source-btn {
    border: unset;
    background: white;
    color: var(--turquoise-color);
    padding: 0.6rem 2rem 0.4rem;
    border-radius: 6px 6px 0 0;
    border-bottom: 0.2rem solid var(--water-gray-color);
    font-size: 1.2rem;

    transition:
        background 0.2s ease,
        padding 0.1s ease-in-out,
        border-bottom-width 0.1s ease-in-out;
}

.source-btn:hover {
    background: #f2f2f2;
    border-bottom-width: 0.4rem;
    padding-bottom: 0.2rem;
}

.source-btn.active {
    font-weight: bold;
    border-bottom: 0.4rem solid var(--green-turquoise-color);
    padding-bottom: 0.2rem;
}

.source-btn:hover > span,
.source-btn.active > span {
    padding-bottom: 0;
}

.source-btn.active {
/*    color: black;*/
/*    border-width : 4rem;*/
    font-weight: bold;
    border-bottom: 0.4rem solid var(--green-turquoise-color);
}


.dash-sep {
    height: 2px !important;
    color: var(--blue-grey-color);
    opacity: .75;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.dash-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dash-header .dash-header-title {
    margin: 0 !important;
}

.dash-header .dash-header-subtitle {
    color: var(--blue-grey-color);
    font-weight: bold;
    margin-bottom: 0;
}

/* Sections */
.dashboard-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
/*    font-weight: bold;*/
/*    color: var(--turquoise-color);*/
/*    padding: 0.6rem 0;*/
    cursor: pointer;
    list-style: none;
/*    border-bottom: 1px solid var(--light-grey-color);*/
    user-select: none;
}

.dashboard-section > summary::-webkit-details-marker {
    display: none;
}

.dashboard-section > summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--mint-color);
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
}

.dashboard-section[open] > summary {
    margin-bottom: 1rem;
}

.dashboard-section[open] > summary::after {
    transform: rotate(0deg);
}

.dash-section-title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
/*    margin-bottom: 1rem;*/
}

.dash-section-title {
    color: var(--blue-grey-color);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0;
}

.dash-section-title-wrapper .tooltip-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-section-title-wrapper .tooltip-icon {
    font-size: 1.25rem;
    top: unset;
    margin-right: unset;
}


.dash-tile {
    padding: 1rem;
    width: 100%;
    border-radius: 1rem;
}

.dash-tile-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.pie-chart-compact {
    max-width: 300px;
    margin: 0 auto;
}

.dash-tile-subtitle {
    margin-bottom: 0;
}

.dash-tile-header {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.dash-tile-header-values {
    display: flex;
    gap: 1rem;
    align-items: center;
    
}

.dash-tile-header-values > div {
    border-radius: 1rem;
    /* min-width (not a fixed width) -- the child already gets
       padding: 0.5rem 1.4rem from .yellow-result/.blue-gray-result/etc.
       (app.css), and with border-box sizing that padding was eating into a
       fixed 5rem, leaving too little room for the text and pushing it off
       center instead of centering it in the pill. */
    min-width: 5rem;
    text-align: center;
    font-weight: bold;

}

.dash-tile-header-values > .light-green-result {
    background-color: var(--dashboard-light-green);
    color: var(--dashboard-teal);
    width: fit-content;
    padding: 0.5rem 1.4rem;
    font-size: 1.5rem;
}

.dash-section-title-wrapper > .dash-tile-title {
    margin-bottom: 0;
}

.dash-tile-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
/*    margin-bottom: 1rem;*/
/*    width: 35rem;*/
}

.dash-tile-title-wrapper > .dash-section-title-wrapper {
    margin-bottom: 0;
}


.dash-tile-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
}

.dash-tile-bar-value {
    font-weight: bold;
    font-size: 1.25rem;
    width: 5rem;
    border-right: 2px solid var(--blue-grey-color);
/*    min-width: fit-content;*/
    padding: 0 0.5rem;
    display: flex;
/*    justify-content: center;*/
    align-items: center;
}

.dash-tile-bar-label {
    font-size: 1rem;
}


/* Socio-démo */
.dash-socio-sex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.socio-sex-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
/*    gap: 0.25rem;*/
}

.socio-sex-prop {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);

}

.socio-sex-pct {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.dxbl-chart-with-legend-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100%;
}

/* =========================================================
   Pie charts with legends
   ========================================================= */

.pie-chart-compact .dxbl-chart-with-legend-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100%;
}

/* Pie chart area — 70% */
.pie-chart-compact .dxbl-chart-with-legend-container > *:first-child {
    flex: 0 0 70% !important;
    height: 70% !important;
    max-height: 70% !important;
    min-height: 0 !important;
}

/* Legend container — 30% */
.pie-chart-compact .dxbl-chart-with-legend-container > *:last-child {
    flex: 0 0 30% !important;
    height: 30% !important;
    max-height: 30% !important;
    min-height: 0 !important;
}

/* Make the actual DevExpress legend fill that 30% */
.pie-chart-compact .dxbl-chart-with-legend-container > *:last-child .dxbl-chart-legend {
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
}

/* Scrollable legend items */
.pie-chart-compact .dxbl-chart-legend-items {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
}

/* Legend scrollbar visibility -- overflow-y:auto above already shows a
   scrollbar on browsers with persistent scrollbars (Windows), but
   overlay-style scrollbars (macOS/trackpad) stay invisible until the
   user happens to hover or drag, so nothing signals there's more to see
   below the fold. Keeping it transparent by default and revealing it on
   hover over the whole chart (not just the legend) makes that affordance
   discoverable regardless of OS/browser scrollbar behavior. */
.pie-chart-compact .dxbl-chart-legend-items {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.pie-chart-compact .dxbl-chart-legend-items::-webkit-scrollbar {
    width: 6px;
}

.pie-chart-compact .dxbl-chart-legend-items::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 3px;
}

.pie-chart-compact:hover .dxbl-chart-legend-items {
    scrollbar-color: var(--turquoise-color) transparent;
}

.pie-chart-compact:hover .dxbl-chart-legend-items::-webkit-scrollbar-thumb {
    background-color: var(--turquoise-color);
}

/* Long legend text */
.pie-chart-compact .dxbl-chart-legend-text {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 15rem;
}

/* Chronic disease / percentage chart */
.percentage-bar-chart {
    height: 100%;
}

/* Neurodiversity tile */
.dash-socio-neurodiversity .pie-chart-compact {
    height: 100%;
    min-height: 0;
}
/* Shared immediate tooltips for the SVG EQ-5D and VAS charts. */
.lori-chart-tooltip {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    max-width: min(360px, calc(100vw - 16px));
    padding: 10px 14px;
    border: 1px solid var(--dashboard-warm-gray);
    border-radius: 6px;
    background: white;
    color: var(--dashboard-teal);
    box-shadow: 0 3px 12px #0002;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
[data-chart-tooltip] { cursor: help; }

.response-legend-five-items { display: contents; }
.response-legend-scroll {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    max-height: 5.625rem;
    overflow-y: auto;
    margin-inline: auto;
    padding-inline: .5rem;
    scrollbar-gutter: stable both-edges;
}
.response-legend-scroll .legend-item {
    flex: 0 0 auto;
    min-height: 1.875rem;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
}
.response-legend-scroll .legend-circle { flex-shrink: 0; }

/* Keep missing and numeric gauge comparison scores aligned. */
.dashboard-gauge-score {
    box-sizing: border-box;
    width: 8rem;
    min-width: 8rem;
    flex: 0 0 8rem;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Let the education-style response tooltips extend beyond the bars. */
.response-bar-hover {
    overflow: visible;
}
.response-bar-hover .survey-segment:hover {
    z-index: 1;
}
.response-bar-hover .survey-tooltip {
    pointer-events: none;
}

/* Keep gauge values independent of the DevExpress locale and inside the chart. */
.experience-gauge-chart {
    position: relative;
}
.experience-gauge-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Keep the shared question stem aligned with the distribution heading. */
.result-header > .question-stem {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: start;
    margin-right: 1rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.eq5d-legend-divider {
    border: 0;
    border-top: 1px solid #000;
    opacity: 1;
    margin: 0 0 1rem;
}

.dash-results-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}
