@import url('./font/fonts.css');
@import url('connected-user-component.css');
@import url('vaadin-button.css');
@import url('vaadin-tooltip.css');
@import url('prestation-card.css');
@import url('prestation-details.css');
@import url('input-field.css');
@import url('stepper.css');
@import url('employee-tag.css');
@import url('./application/demonstration.css');
@import url('./application/stepper.css');
@import url('./leaflet/leaflet.css');
@import url('./leaflet/MarkerCluster.css');
@import url('./leaflet/MarkerCluster.Default.css');

/*
PMA - Suppression de ce CSS qui bloque la compil GITHub
@import url('./component/employee-tag.css');*/

* {
    --lumo-font-family: 'GintoNormal', serif;
    --lumo-border-radius: calc(var(--lumo-size-m));
    --lumo-border-radius-s: calc(var(--lumo-size-s));
    --lumo-border-radius-m: calc(var(--lumo-size-m));
    --lumo-border-radius-l: calc(var(--lumo-size-l));
}

html {
    --background-yellow: url(./img/background.svg);
    --background-purple: url(./img/background_purple.svg);
    --background-gray: url(./img/background_gray.svg);
    font-size: 13px;
    font-family: 'GintoNormal', serif;
    line-height: var(--lumo-line-height-s);
}

vaadin-dialog-overlay::part(overlay) {
    border-radius: 16px;
}

.with_background {
    background-repeat: no-repeat;
    background-image: var(--background);
    background-position: 0 0;
    background-color: #F8F8F8;
    background-size: 100% 600px;
}

[theme~="yellow"] {
    --background: var(--background-yellow);
    --lumo-shade-5pct: rgba(55, 58, 83, 0.05);
    --lumo-shade-10pct: rgba(55, 58, 83, 0.1);
    --lumo-shade-20pct: rgba(55, 58, 83, 0.2);
    --lumo-shade-30pct: rgba(55, 58, 83, 0.3);
    --lumo-shade-40pct: rgba(55, 58, 83, 0.4);
    --lumo-shade-50pct: rgba(55, 58, 83, 0.5);
    --lumo-shade-60pct: rgba(55, 58, 83, 0.6);
    --lumo-shade-70pct: rgba(55, 58, 83, 0.7);
    --lumo-shade-80pct: rgba(55, 58, 83, 0.8);
    --lumo-shade-90pct: rgba(55, 58, 83, 0.9);
    --lumo-primary-text-color: #373A53;
    --lumo-primary-color-50pct: rgba(255, 243, 106, 0.5);
    --lumo-primary-color-10pct: rgba(255, 243, 106, 0.1);
    --lumo-error-text-color: rgb(157, 11, 1);
    --lumo-error-color-50pct: rgba(194, 13, 0, 0.5);
    --lumo-error-color-10pct: rgba(194, 13, 0, 0.1);
    --lumo-success-text-color: #0A5C19;
    --lumo-success-color-50pct: rgba(139, 242, 156, 0.5);
    --lumo-success-color-10pct: rgba(139, 242, 156, 0.1);
    --lumo-shade: #373A53;
    --lumo-primary-color: #FFF36A;
    --lumo-error-color: #c20d00;
    --lumo-success-color: #D4F7C5;
    --lumo-header-text-color: #000000;
    --lumo-primary-contrast-color: #000;
    --lumo-tint-5pct: rgba(115, 122, 196, 0.05);
    --lumo-tint-10pct: rgba(115, 122, 196, 0.1);
    --lumo-tint-20pct: rgba(115, 122, 196, 0.2);
    --lumo-tint-30pct: rgba(115, 122, 196, 0.3);
    --lumo-tint-40pct: rgba(115, 122, 196, 0.4);
    --lumo-tint-50pct: rgba(115, 122, 196, 0.5);
    --lumo-tint-60pct: rgba(115, 122, 196, 0.6);
    --lumo-tint-70pct: rgba(115, 122, 196, 0.7);
    --lumo-tint-80pct: rgba(115, 122, 196, 0.8);
    --lumo-tint-90pct: rgba(115, 122, 196, 0.9);
    --lumo-tint: #737ac4;
    --lumo-base-color: #F7F7FC;
    --lumo-success-contrast-color: #0A5C19;
}

[theme~="purple"] {
    --background: var(--background-purple);
    --lumo-shade-5pct: rgba(60, 48, 84, 0.05);
    --lumo-shade-10pct: rgba(60, 48, 84, 0.1);
    --lumo-shade-20pct: rgba(60, 48, 84, 0.2);
    --lumo-shade-30pct: rgba(60, 48, 84, 0.3);
    --lumo-shade-40pct: rgba(60, 48, 84, 0.4);
    --lumo-shade-50pct: rgba(60, 48, 84, 0.5);
    --lumo-shade-60pct: rgba(60, 48, 84, 0.6);
    --lumo-shade-70pct: rgba(60, 48, 84, 0.7);
    --lumo-shade-80pct: rgba(60, 48, 84, 0.8);
    --lumo-shade-90pct: rgba(60, 48, 84, 0.9);
    --lumo-primary-text-color: #7A70FF;
    --lumo-primary-color-50pct: rgba(176, 171, 255, 0.5);
    --lumo-primary-color-10pct: rgba(176, 171, 255, 0.1);
    --lumo-error-text-color: rgb(194, 13, 0);
    --lumo-error-color-50pct: rgba(194, 13, 0, 0.5);
    --lumo-error-color-10pct: rgba(194, 13, 0, 0.1);
    --lumo-success-text-color: #0A5C19;
    --lumo-success-color-50pct: rgba(139, 242, 156, 0.5);
    --lumo-success-color-10pct: rgba(139, 242, 156, 0.1);
    --lumo-shade: #3c3054;
    --lumo-primary-color: #b0abff;
    --lumo-error-color: #c20d00;
    --lumo-success-color: #8BF29C;
    --lumo-header-text-color: #000;
    --lumo-primary-contrast-color: #FFF;
    --lumo-tint-5pct: rgba(176, 171, 255, 0.05);
    --lumo-tint-10pct: rgba(176, 171, 255, 0.1);
    --lumo-tint-20pct: rgba(176, 171, 255, 0.2);
    --lumo-tint-30pct: rgba(176, 171, 255, 0.3);
    --lumo-tint-40pct: rgba(176, 171, 255, 0.4);
    --lumo-tint-50pct: rgba(176, 171, 255, 0.5);
    --lumo-tint-60pct: rgba(176, 171, 255, 0.6);
    --lumo-tint-70pct: rgba(176, 171, 255, 0.7);
    --lumo-tint-80pct: rgba(176, 171, 255, 0.8);
    --lumo-tint-90pct: rgba(176, 171, 255, 0.9);
    --lumo-tint: #B0ABFF;
    --lumo-base-color: #F7F7FC;
    --lumo-success-contrast-color: #38761D;
}

[theme~="gray"] {
    --background: var(--background-gray);

    /* Shades (gris foncé principal) */
    --lumo-shade-5pct: rgba(60, 60, 60, 0.05);
    --lumo-shade-10pct: rgba(60, 60, 60, 0.1);
    --lumo-shade-20pct: rgba(60, 60, 60, 0.2);
    --lumo-shade-30pct: rgba(60, 60, 60, 0.3);
    --lumo-shade-40pct: rgba(60, 60, 60, 0.4);
    --lumo-shade-50pct: rgba(60, 60, 60, 0.5);
    --lumo-shade-60pct: rgba(60, 60, 60, 0.6);
    --lumo-shade-70pct: rgba(60, 60, 60, 0.7);
    --lumo-shade-80pct: rgba(60, 60, 60, 0.8);
    --lumo-shade-90pct: rgba(60, 60, 60, 0.9);
    --lumo-shade: #3C3C3C;

    /* Primary (gris moyen moderne) */
    --lumo-primary-color: #6E6E73;
    --lumo-primary-color-50pct: rgba(110, 110, 115, 0.5);
    --lumo-primary-color-10pct: rgba(110, 110, 115, 0.1);
    --lumo-primary-text-color: #3C3C3C;
    --lumo-primary-contrast-color: #FFFFFF;

    /* Error */
    --lumo-error-color: #B00020;
    --lumo-error-text-color: #7A0015;
    --lumo-error-color-50pct: rgba(176, 0, 32, 0.5);
    --lumo-error-color-10pct: rgba(176, 0, 32, 0.1);

    /* Success */
    --lumo-success-color: #4CAF50;
    --lumo-success-text-color: #1B5E20;
    --lumo-success-color-50pct: rgba(76, 175, 80, 0.5);
    --lumo-success-color-10pct: rgba(76, 175, 80, 0.1);
    --lumo-success-contrast-color: #FFFFFF;

    /* Base */
    --lumo-base-color: #F5F5F5;
    --lumo-header-text-color: #1F1F1F;

    /* Tint (gris clair légèrement bleuté) */
    --lumo-tint-5pct: rgba(120, 120, 130, 0.05);
    --lumo-tint-10pct: rgba(120, 120, 130, 0.1);
    --lumo-tint-20pct: rgba(120, 120, 130, 0.2);
    --lumo-tint-30pct: rgba(120, 120, 130, 0.3);
    --lumo-tint-40pct: rgba(120, 120, 130, 0.4);
    --lumo-tint-50pct: rgba(120, 120, 130, 0.5);
    --lumo-tint-60pct: rgba(120, 120, 130, 0.6);
    --lumo-tint-70pct: rgba(120, 120, 130, 0.7);
    --lumo-tint-80pct: rgba(120, 120, 130, 0.8);
    --lumo-tint-90pct: rgba(120, 120, 130, 0.9);
    --lumo-tint: #787882;

}

.v-loading-indicator {
    background-color: black;
    opacity: .5;
}

.logo {
    width: 250px;
    padding: 10px 0 0 10px;
}

.main-content {
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
}

.signing-mobile-layout {
    display: none;
}

@media (max-width: 768px) {
    html {
        --background-yellow: url(./img/background_mobile.svg);
        --background-purple: url(./img/background_purple_mobile.svg);
        background-color: #FFFFFF;
        font-size: 13px;
        background-image: none;
    }

    .with_background {
        background-color: #FFFFFF;
    }

    .logo {
        width: 180px;
        padding: 10px 0 0 5px;
    }

    .main-container {
        height: auto;
    }

    .main-content {
        width: 100% !important;
    }

    .two-columns {
        align-self: normal;
        flex-direction: column;
    }

    .col-30 {
        width: 100% !important;
        align-self: normal;
    }

    .col-70 {
        visibility: hidden;
        min-height: 50px !important;
    }


    .signing-layout {
        display: none;
    }

    .signing-mobile-layout {
        display: flex;
    }

    .sign-dialog {
        width: 100%;
    }

}

@media (max-width: 550px) {
    .requester-layout {
        align-self: normal;
        flex-direction: column;
    }

    .col-50 {
        width: 100% !important;
        align-self: normal;
    }
}

.smiley-sad {
    width: 235px;
}

.title {
    font-size: 20px;
    font-weight: bold;
}

.description {
    background-color: #DDDDDD;
    color: #333333;
    font-style: italic;
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.description a {
    text-decoration: underline;
    color: #807601 !important;
}

.success-note {
    background-color: #D4F7C5;
    color: #38761D;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid #38761D;
    margin: 10px 0 20px 0;
}

.left {
    color: #666666;
    font-size: 11px;
}

.document-icon {
    font-size: 30px;
    background-color: #DDD;
    padding: 7px 7px 7px 9px;
    border-radius: 22px;
}

.document-name {
    font-weight: bold;
    padding-bottom: 2px;
}

.neutral-sticker,
.success-sticker,
.info-sticker {
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 16px;
}

.neutral-sticker {
    background-color: #EEEEEE;
    color: #666666;
    white-space: nowrap;
}

.info-sticker {
    background-color: #C5D4F7;
    color: #1D3876;
    white-space: nowrap;
}

.success-sticker {
    background-color: #D4F7C5;
    color: #38761D;
    white-space: nowrap;
}

.warning-note {
    background-color: #FBEBDE;
    color: #7B3F0F;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid #7B3F0F;
    margin: 10px 0 20px 0;
}

.user-party-name,
.sign-mention,
.expiry {
    color: #666666;
    font-size: 11px;
}

.sign-mention-icon {
    color: #666666;
}

.expiry-icon {
    font-size: 18px;
}

.document-name-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.user-icon {
    font-size: 30px;
    background-color: #DDD;
    padding: 7px;
    border-radius: 22px;
}

.user-name {
    font-weight: bold;
}

.two-columns {
    align-self: stretch;
    display: flex;
    width: 100%;
    gap: 30px;
    min-height: 650px;
    height: 80vh;
}

.requester-layout {
    align-self: stretch;
    display: flex;
    width: 100%;
    gap: 20px;
}


.col-30 {
    align-self: stretch;
    width: 30%;
}

.col-70 {
    align-self: stretch;
    width: 70%;
    min-height: 650px;
}

.col-50 {
    align-self: stretch;
    width: 50%;
}


.sign-dialog {
    width: 650px;
}

.dialog-title {
    font-size: 16px;
    font-weight: bold;
}

.multi-switch-item {
    border: 1px solid #AAAAAA;
    color: #000000;
}

.multi-switch-item-selected {
    background-color: #000000;
    border: 1px solid #000000;
    color: #FFFFFF;
}

.disclaimer {
    color: #666666;
    font-size: 11px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.signature-left {
    color: #666666;
    font-size: 11px;
}

vaadin-button {
    cursor: pointer;
}

.centered-upload {
    display: flex;
    justify-content: center;
}

.centered-upload::part(upload-button) {
    margin: 0 auto; /* Centre le bouton dans son conteneur */
}

.upload-icon-bg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Ajuste la taille du composant si nécessaire */
    background-color: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.upload-icon-bg::before {
    content: "\f090"; /* Code de l’icône dans ta police */
    font-family: 'MaterialSymbol';
    font-size: 128px;
    color: #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    margin-top: -40px;
}

/* Le bouton doit apparaître au-dessus */
.upload-icon-bg::part(upload-button) {
    position: relative;
    z-index: 1;
    background-color: #FFF36A;
    color: #000000;
    border-radius: 5px;
    padding: 10px 20px;
}

.upload-icon-bg::part(drop-label-icon) {
    display: none;
}

.upload-icon-bg::part(primary-buttons) {
    margin-top: 100px;
}

.requester-picture {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    margin-right: 10px;
}

.requester-name {
    padding-top: 5px;
    text-align: right;
    font-weight: bold;
    font-style: normal;
    font-size: 13px;
}

.requester-job {
    padding-top: 4px;
    font-size: 12px;
    color: #666666;
    font-style: normal;
}

.requester-coordinates {
    font-style: normal;
}

.requester-coordinates .material-symbol {
    font-size: 20px;
    padding-right: 5px;
    line-height: unset;
    max-height: 25px;
}

.requester-coordinates {
    text-decoration: underline;
}

.requester-coordinates a:hover {
    color: #666666;
}

.section_title {
    font-weight: bold;
    font-size: var(--lumo-font-size-xxxl);
}

.form-section {
    font-size: var(--lumo-font-size-xl);
    font-weight: bold;
    padding-bottom: var(--lumo-space-s);
}

.form-horizontal-layout {
    padding: var(--lumo-space-s);
}

.form-horizontal-layout-label {
    color: var(--lumo-shade-60pct);
}

.custom-dialog {
    left: 0;
}

@media only screen and (max-width: 600px) {
    .custom-dialog {
        min-width: 100%;
    }
}

@media only screen and (min-width: 601px) {
    .custom-dialog {
        min-width: 25%;
    }
}

.custom-dialog::part(footer) {
    border-radius: 0;
}

.confirm-dialog-title {
    font-weight: bold;
    font-size: var(--lumo-font-size-xl);
}

.confirm-dialog::part(message) {
    width: auto;
}

.confirm-dialog::part(content) {
    padding: var(--lumo-space-m);
}

.confirm-dialog::part(footer) {
    display: flex;
    flex-direction: row-reverse;
    justify-content: end;
}

.confirm-dialog::part(cancel-button) {
    flex-grow: 0;
}

.lumo-m-font-size {
    font-size: var(--lumo-font-size-m);
}

[theme~="badge"] {
    font-size: var(--lumo-font-size-xs);
}

[theme="badge waiting"] {
    background-color: #EEEEEE;
    color: #666666;
}

[theme="badge info"] {
    background-color: #e4f8ff;
    color: #0077a3;
}

[theme="badge success"] {
    background-color: #DAFBE0 !important;
    color: #0E8121 !important;
}

.lazy-div {
    display: flex;
    flex-direction: column;
    gap: var(--lumo-space-m);
    overflow: hidden auto;
    max-height: 100%;
    padding: var(--lumo-space-xs);
}

.title-with-subtitle {
    display: flex;
    flex-direction: column;
    gap: var(--lumo-space-xs);
}

vaadin-button[theme~="error"]::part(label) {
    text-decoration: underline;
}

.custom-label {
    margin-left: calc(var(--lumo-border-radius-m) / 4);
    padding-right: 1em;
    padding-bottom: 0.5em;
    padding-top: 0.25em;
    margin-top: -0.25em;
    color: var(--lumo-secondary-text-color);
    font-size: var(--lumo-font-size-s);
}

vaadin-vertical-layout:hover > .custom-label {
    color: var(--lumo-body-text-color);
}

.prestations-layout > .main-content {
    width: 33% !important;
}

@media (width <= 1680px) {
    .prestations-layout > .main-content {
        width: 50% !important;
    }

    .prestations-layout .section_title {
        font-size: var(--lumo-font-size-xxl) !important;
    }
}

@media (width <= 768px) {
    .prestations-layout > .main-content {
        width: 100% !important;
    }

    vaadin-dialog-overlay::part(overlay) {
        width: 100%;
    }
}

@media (width <= 530px) {
    .prestations-layout .section_title {
        font-size: var(--lumo-font-size-xl) !important;
    }
}

vaadin-button .material-symbol.button-icon-only {
    font-size: 30px !important;
    padding: 5px 0px;
}

.pdfViewer {
    border-radius: 16px;
}

.pdfViewer::part(toolbar) {
    padding: 0 30px;
}

vaadin-notification-card[theme~="success"]::part(overlay) {
    background-color: #D4F7C5;
    color: #38761D;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid #38761D;
}

vaadin-notification-card[theme~="error"]::part(overlay) {
    background-color: #FFE2E0;
    color: #C20D00;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid #C20D00;
}

vaadin-notification-card[theme~="warning"]::part(overlay) {
    background-color: #FBEBDE;
    color: #7B3F0F;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid #7B3F0F;
}

/******************************Statistiques*******************************/
.statistiques-layout, .stat_chart {
    --lumo-header-text-color: #222222;
    --pilot-color-background: #F5F5F5;
    --pilot-color-section-background: #E0E0E0;
    --pilot-color-input-border: #F5F5F5;

    --pulse-color-yellow: #fff36a;
    --pulse-color-pink: #ff8fe6;
    --pulse-color-purple: #cd9efb;
    --pulse-color-blue: #76daff;
    --pulse-color-green: #8bf29c;

    --pulse-color-yellow-light: #fffcd1;
    --pulse-color-pink-light: #ffd1f4;
    --pulse-color-purple-light: #e6ccff;
    --pulse-color-blue-light: #CCF1FF;
    --pulse-color-green-light: #C2FCCC;

    --pulse-line-size : 500px;

    --lumo-space-m: 15px;
}

.stat_chart .highcharts-color-0 { fill: var(--pulse-color-blue); stroke: var(--pulse-color-blue); }
.stat_chart .highcharts-color-1 { fill: var(--pulse-color-green); stroke: var(--pulse-color-green); }
.stat_chart .highcharts-color-2 { fill: var(--pulse-color-yellow); stroke: var(--pulse-color-yellow); }
.stat_chart .highcharts-color-3 { fill: var(--pulse-color-pink); stroke: var(--pulse-color-pink); }
.stat_chart .highcharts-color-4 { fill: var(--pulse-color-purple); stroke: var(--pulse-color-purple); }
.stat_chart .highcharts-color-5 { fill: var(--pulse-color-blue-light); stroke: var(--pulse-color-blue-light); }
.stat_chart .highcharts-color-6 { fill: var(--pulse-color-green-light); stroke: var(--pulse-color-green-light); }
.stat_chart .highcharts-color-7 { fill: var(--pulse-color-yellow-light); stroke: var(--pulse-color-yellow-light); }
.stat_chart .highcharts-color-8 { fill: var(--pulse-color-pink-light); stroke: var(--pulse-color-pink-light); }
.stat_chart .highcharts-color-9 { fill: var(--pulse-color-purple-light); stroke: var(--pulse-color-purple-light); }

:host(.pilot-waterfall) .highcharts-intermediate-sum {
    fill: var(--pulse-color-blue)!important;
    stroke: var(--pulse-color-blue)!important;
}

:where([styled-mode]) .highcharts-negative {
    fill: var(--pulse-color-pink);
    stroke: var(--pulse-color-pink);
}

:host(.pilot-waterfall) .highcharts-point {
    fill: var(--pulse-color-green);
    stroke: var(--pulse-color-green);
}

.statistiques-layout :where(vaadin-text-area, vaadin-multi-select-combo-box, vaadin-email-field, vaadin-select, vaadin-combo-box, vaadin-text-field)::part(input-field) {
    background-color: #FFFFFF;
    border: 1px solid var(--pilot-color-input-border);
}

.statistiques-layout .logo {
    width: 200px;
    top: 0;
    right: 5px;
    position: absolute;
}


/**
    Main config for stats buttons
 */
.stats_buttons {
    border-radius: 50%;
    height: 30px;
}

.stats_buttons .vaadin-combo-box {
    border-radius: 16px;
}

/* vaadin-combo-box-overlay-styles.css (themeFor = "vaadin-combo-box-overlay") */
:host([theme="stats-combo"]) vaadin-combo-box-item:hover {
    background-color: red !important;
}



/**
    Main config for stats chart titles
 */

.chart_title_layout {
    margin: 8px 8px 12px;
}

.chart_title {
    font-size: 14px;
    color: var(--lumo-header-text-color);
    margin: 3px;
}

.info_icon {
    cursor: help;
    font-size: 18px;
    color: var(--lumo-tertiary-text-color);
    display: inline;
    opacity: 0;
}
.stats_chart_container:hover .info_icon,
#overlay:hover .info_icon {
    opacity: 1;
}


.stats_title {
    font-size: 24px;
    color: var(--lumo-header-text-color);
    margin: 0;
}

.stats_secondary_text {
    font-size: 12px;
    color: #666666;
    margin: auto 0 auto 0;
}

.statistiques-layout vaadin-multi-select-combo-box > input  {
    font-weight: normal;
    font-size: 12px;
}

.statistiques-layout {
    background-color: var(--pilot-color-background);
    padding: 10px;
    height: 100%;
}

.statistiques-layout .connected_user {
    z-index: 10;
}

#statNavBar {
    width: 250px;
    min-width: 250px;
    height: 100%;
    box-shadow: none;
    align-self: start;
}

#charts_main_container {
    background-color: var(--pilot-color-section-background);
    border-radius: 16px;
    flex-grow: 1;
    padding: 20px;
    min-width: 0;
}

.layout_Period_Content{
    height: 100%;
}

vaadin-tab > a {
    padding: 0;
}

vaadin-tab {
    border-radius: 12px;
    &:hover {
        background-color: #EEEEEE;
    }
}

vaadin-tab[selected] {
    background-color: var(--pilot-color-section-background);
}

vaadin-tab .stat-tab {
    position: relative;
    padding: 10px 5px;
    margin-left: 10px;
    font-weight: normal;
}

vaadin-tab[selected] .stat-tab {
    font-weight: bold;
    color: var(--lumo-header-text-color);
}


/* Barre à gauche */
vaadin-tab[selected]::before {
    background-color: #222222;
    height: 100%;
    width: 8px;
    border-radius: 8px;
}

#navBar-icons {
    min-width: 24px;
    text-align: center;
}

.stats-period-filter-layout {;
    align-self: flex-end;
    align-items: center;
}

.stats-period-filter-layout .date-label {
    font-weight: bold;
    font-size: 16px;
    min-width: 150px;
    justify-content: center;
    display: flex;
    color: var(--lumo-header-text-color);
}


#stats-charts-main-container {
    background-color: #FFFFFF;
    z-index: 0;
    border-radius: 16px;
    border: 0;
    height: fit-content;
    bottom: 0;
}
.secure-textarea::part(input-field) {
    border-radius: 16px !important;
}

.hide-toggle-button::part(toggle-button) {
    display: none !important;
}

.title_filter_layout > .material-symbol {
    font-size: 32px;
}

.layout_line{
    height: var(--pulse-line-size);
}

/**********************DIVS SIZE****************************/
.stats_number_chart{
    height: 150px;
}

/**
15 px is the gap between the lines of the charts
 */
.stats_double_height {
    height: calc(var(--pulse-line-size)*2 + 15px);
    min-height: calc(var(--pulse-line-size)*2+ 15px);
    max-height: calc(var(--pulse-line-size)*2+ 15px);
    align-self: stretch;
}

vaadin-chart::part(chart),  .highcharts-axis-line, .highcharts-tick {
    stroke: none !important;
}

.stats_chart_container {
    background-color: white;
    padding: 10px;
    border-radius: 12px;

}

.pyramid-content{
    height: 100%;
}

.fullscreen_chart_dialog {
    position: absolute;
    top: 10px;
    right: 10px;
}

.dialog_wrapper{
    border: none;
    box-shadow: none;
    background-color: white;
    padding: 0;
}

.age_label_chart{
    font-size: 12px;
    color: #444444;
    text-align: center;
    line-height: 1.2;
    flex-grow: 1;
}

/* Force les charts à respecter la largeur du parent sans scrollbar */
vaadin-chart,
vaadin-chart > div,
.highcharts-container,
.highcharts-root {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

/* Sur le layout parent (HorizontalLayout de la pyramide) */
vaadin-horizontal-layout.pyramid-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/**********************VAADIN CHART COLORS****************************/
vaadin-chart {
    --vaadin-charts-color-0: var(--pulse-color-blue);
    --vaadin-charts-color-1: var(--pulse-color-green);
    --vaadin-charts-color-2: var(--pulse-color-yellow);
    --vaadin-charts-color-3: var(--pulse-color-pink);
    --vaadin-charts-color-4: var(--pulse-color-purple);

    --vaadin-charts-color-5: var(--pulse-color-blue-light);
    --vaadin-charts-color-6: var(--pulse-color-green-light);
    --vaadin-charts-color-7: var(--pulse-color-yellow-light);
    --vaadin-charts-color-8: var(--pulse-color-pink-light);
    --vaadin-charts-color-9: var(--pulse-color-purple-light);

    --vaadin-charts-background : #ffffff;

    /* Force le conteneur Highcharts interne à suivre les règles de redimensionnement */
    width: 100% !important;
    max-width: 100% !important;
}

/* Sécurité pour les conteneurs de graphiques de ton application */
.stats_chart_container {
    width: 100%;
    overflow: hidden; /* Empêche les barres de défilement pendant le reflow */
}
/* ==================== SUPPRIMER ESPACE / PADDING À DROITE DES CHARTS ==================== */

.stat_chart,
.stat_chart .highcharts-container,
.stat_chart .highcharts-root {
    width: 100% !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}


/* Spécialement pour les charts dans .stats_chart_container */
.stats_chart_container .stat_chart {
    padding: 0 !important;
    margin: 0 !important;
}

#map {
    position: relative;
    z-index: 0;
}

.marker-cluster.proportional div {
    background-color: var(--pulse-color-blue);
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    z-index: 2;
}

.custom-div-icon {
    background: transparent;
    border: none;
}

.chartNumberSpan {
    display: inline-block;
    line-height: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    text-align: center;
    flex: 0 1 auto;
}

.title_layout .material-symbol{
    margin-top: 3px;

}

.filters_layout{
    margin-left: auto;
    flex-wrap: wrap;
    width: 80%;
}

.title_filter_layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}


/* Configuration pour petits écrans (ex: < 800px) */
@media (max-width: 800px) {
    .title_filter_layout {
        flex-direction: column; /* On empile verticalement */
        align-items: flex-start; /* On aligne tout à gauche */
    }

    .filters_layout {
        margin-left: 0; /* On annule le décalage à droite */
        width: 100%;    /* Prend toute la largeur */
        justify-content: space-between; /* Espace les filtres et les boutons */
    }
}


/*****************************Map*************************/
.stats_chart_container, #map {
    height: 100%;
    width: 100%;
}

.custom-marker {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    color: white;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.marker-cluster-custom {
    background: transparent;
    border: none;
}

.marker-cluster-custom > div {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


.custom-bubble-icon {
    background: transparent;
    border: none;
}

.bubble-marker {
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    background-color: var(--pulse-color-blue);
}

.leaflet-layer {
    filter: grayscale(50%) brightness(105%);
}

.leaflet-control-zoom {
    border: none !important;
}

.leaflet-touch .leaflet-bar a {
    border-radius: 50% !important;
    font-family: inherit;
    font-weight: inherit;
    margin: 5px;
    &:hover {
        background-color: #EEEEEE;
        text-decoration: none;
    }
}

.leaflet-control-attribution {
    font-size: 8px;
}

.leaflet-control-attribution > a,
.leaflet-control-attribution > span {
    display: none;
}

#organization-type-combo:has(~ #organization-multi-select:not([hidden]))::part(input-field) { /*only if followed by visible #organization-multi-select*/
    border-radius: 16px 0 0 16px;
    border-right: 0;
}


#organization-multi-select::part(input-field) {
    border-radius: 0 16px 16px 0;
}

/* Bordure du tooltip UNIQUEMENT pour la Heatmap */
.heatmap_tooltip .highcharts-tooltip-box {
    stroke: #222 !important;
    stroke-width: 2px !important;
}

.stats_chart_fullscreen {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: calc(100vw - 40px) !important;
    height: calc(100vh - 40px) !important;
    z-index: 2147483647 !important;
    background: white !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}


.stats_chart_close_btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2147483648;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}


.stats_grid_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    grid-template-rows: repeat(3, var(--pulse-line-size));

    gap: 10px;
    box-sizing: border-box;
    width: 100%;

    height: 100%;

    grid-auto-flow: row dense;
}

.stats_grid_onethird_chart_div {
    min-width: 0;
    box-sizing: border-box;

    height: 100% !important;
}

.stats_grid_double_height {
    grid-row: span 2;

    height: 100% !important;
}
.stats_grid_triple_width{
    grid-column: span 3;

    height: 100% !important;
}

.stats_grid_double_width{
    grid-column: span 2;

    height: 100% !important;
}
.stats_grid_spacer {
    visibility: hidden;
    pointer-events: none;
    min-width: 0;
    height: 100% !important;
}

.secondary {
    color: var(--lumo-secondary-text-color);
}

.info_icon--non-hoverable {
    cursor: help;
    font-size: 18px;
    color: var(--lumo-tertiary-text-color);
    display: inline;
}