﻿:root {
    /* Type scale */
    --fs-900: 2.4rem;
    --fs-800: 1.875rem;
    --fs-700: 1.5rem;
    --fs-600: 1.35rem;
    --fs-500: 1.125rem;
    --fs-400: 1rem;
    --fs-300: .9rem;
    --fs-200: .8rem;
    --fs-100: .7rem;
    --grid-border-width: 1px;
    --common-font: Gilroy;

    /* Spacing scale */
    --sp-1: .25rem;
    --sp-2: .5rem;
    --sp-3: .75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 2.5rem;
    --sp-8: 3rem;

    /* Corner radii: sm = fields, md = chips and small cards, lg = containers, cards, dialogs, pill = buttons, tags, tabs */
    --r-sm: .25rem;
    --r-md: .7rem;
    --r-lg: 1.2rem;
    --r-pill: 999px;

    /* Breakpoints (min-width): 640 mobile, 810 tablet, 1000 full navigation, 1200 two-column forms, 1369 large, 1600 very large.
       Use these values only; max-width variants end in .99 (e.g. 809.99px). */
}

@media (max-width: 640px) {
    :root {
        --fs-900: 1.5rem;
        --fs-700: 1.3rem;
        --fs-600: 1.15rem;
        --fs-500: 1rem;
        --fs-400: .9rem;
        --fs-300: .8rem;
        --fs-200: .6rem;
    }
}

/*default version*/
@font-face {
    font-family: "Gilroy";
    src: local("Gilroy"), url("/fonts/Gilroy-Regular.otf") format("opentype");
}

/*bold version*/
@font-face {
    font-family: "Gilroy";
    src: local("Gilroy"), url("/fonts/Gilroy-Bold.otf") format("opentype");
    font-weight: bold;
}

@font-face {
    font-family: "Gilroy";
    src: local("Gilroy"), url("/fonts/Gilroy-RegularItalic.otf") format("opentype");
    font-style: italic;
}

@font-face {
    font-family: "Gilroy";
    src: local("Gilroy Medium"), url("/fonts/Gilroy-Medium.otf") format("opentype");
    font-weight: 500;
}

@font-face {
    font-family: "Gilroy";
    src: local("Gilroy Semibold"), url("/fonts/Gilroy-Semibold.otf") format("opentype");
    font-weight: 600;
}

/* The navigation bar is sticky: an element scrolled into view (anchor, focused field) stops below it */
html {
    scroll-padding-top: 5rem;
}

/* Phone menu open: the voice assistant's floating button covered its last row (account icons, club) */
@media (max-width: 999.98px) {
    body:has(.nav-menu-links-and-parameters-container:not(.collapse)) .assistant-fab {
        display: none;
    }
}

html,

body {
    margin: 0;
    font-family: var(--common-font), sans-serif;
    font-size: var(--fs-500);
}

a {
    font-family: var(--common-font), sans-serif;
    font-size: inherit;
    color: inherit;
    display: flex;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Keyboard focus ring, shared by every focusable element */
:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

button,

select,

input,

textarea {
    font-family: var(--common-font), sans-serif;
}

/* An example in an empty field must not read as a value already entered: lighter and in italics */
input::placeholder,
textarea::placeholder {
    color: var(--gray-medium);
    font-style: italic;
    opacity: 1;
}

h1 {
    font-weight: bold;
    margin-bottom: .4em;
    font-size: var(--fs-900);
}

    h1:focus {
        outline: none;
    }

h2 {
    font-weight: bold;
    font-size: var(--fs-700);
    color: var(--main-color-1);
    margin-block: .6em;
    margin-right: .5em;
    display: flex;
    justify-content: start;
}

h3 {
    font-size: var(--fs-600);
    font-weight: bold;
    color: var(--main-color-1);
}

h4 {
    font-size: var(--fs-500);
    font-weight: bold;
    color: var(--main-color-1);
}

h5 {
    font-size: var(--fs-600);
    color: var(--gray-medium);
}

h6 {
    font-size: var(--fs-400);
    font-weight: bold;
    color: var(--main-color-1);
}

hgroup > p {
    color: var(--gray-medium);
}

i {
    font-style: italic;
}

/*Remove arrows from input type=number*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,

input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

em {
    font-weight: bold;
}

mark {
    font-weight: bold;
    color: var(--emphasize-color);
    background-color: inherit;
}

.pdf-container {
    height: 80vh;
}

.ga-container {
    padding: 1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--valid-color);
}

.invalid {
    outline: 1px solid var(--danger-high-color);
}

.validation-message {
    color: var(--danger-high-color);
}

#blazor-error-ui {
    background: var(--error-ui-bg);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--error-boundary-bg);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Une erreur est survenue."
    }

.prevent-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.login-link {
    padding-left: 1rem;
    font-size: 1rem;
    color: white;
}

.center-children {
    display: flex;
    justify-content: center;
}

.info-title,

.info-subtitle,

.blob-list-title {
    margin-top: .5em;
    margin-bottom: .1em;
    margin-right: .5em;
    display: flex;
    justify-content: start;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--main-color-1);
}

.info-title-container {
    display: flex;
    align-items: center;
}

.info-title-with-icon {
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.info-subtitle {
    font-size: var(--fs-600);
}

.info-separation-bar {
    margin: 0.1rem;
}

.label-file {
    cursor: pointer;
    color: var(--file-link);
    font-weight: bold;
}

    .label-file:hover {
        color: var(--file-link-hover);
    }

.list-wrapper {
    height: inherit;
    position: relative;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    cursor: pointer;
    padding: 0px 5px;
}

    .custom-file-upload:hover {
        color: white;
        background: var(--file-upload-hover);
    }

.button-file-upload {
    border: 1px black solid;
    border-radius: var(--r-sm);
    margin: 8px;
    padding: 6px, 12px;
}

.radio-group {
    display: inline;
}

.item-selected,

.item-not-selected {
    cursor: pointer;
}

.item-selected {
    background-color: var(--gray-medium);
    color: white;
    border-color: var(--gray-medium);
}

.item-not-selected {
    background-color: white;
    color: black;
}

    .item-not-selected:hover {
        background-color: var(--gray-light);
        color: black;
    }

.display-on-hover {
    display: none;
}

.display-on-hover-container:hover .display-on-hover {
    display: flex;
}

.option-entry {
    margin: 1rem;
    padding: 1rem;
}

.container-rounded {
    border: 1px black solid;
    border-radius: var(--r-lg);
}

.container-rounded-bg-light,

.container-rounded-bg-dark {
    padding-block: .6em;
    padding-inline: 1em;
    border-radius: var(--r-lg);
}

.container-rounded-bg-light {
    background-color: var(--bg-light);
}

.container-rounded-bg-dark {
    background-color: rgba(44,77,33,0.149);
}

.id-photo-form {
    max-height: 150px;
    max-width: 150px;
    object-fit: scale-down;
}

.document-container {
    height: 100%;
}

.control-section {
    height: 800px;
}

.button-text {
    margin-inline: .3em;
    white-space: nowrap;
}

/* Buttons: four roles.
   primary   = main action (save, create, print)          vert prairie
   secondary = navigation, alternative action             vert sapin
   neutral   = cancel, close                              gris
   danger    = delete, archive                            rouge doux
   btn-primary-ga--list = primary, square and full width, for the entries of a dropdown list. */
.btn-primary-ga,

.btn-secondary-ga,

.btn-neutral-ga,

.btn-danger-ga,

.btn-primary-ga--list {
    display: flex;
    align-items: center;
    color: white;
    padding-block: 0.5em;
    padding-inline: 1em;
    border-radius: var(--r-pill);
    margin-right: 0.5em;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: var(--fs-400);
    text-decoration: none;
}

    .btn-primary-ga:disabled,

    .btn-secondary-ga:disabled,

    .btn-neutral-ga:disabled,

    .btn-danger-ga:disabled,

    .btn-primary-ga--list:disabled {
        background-color: var(--bg-dark);
        color: white;
        cursor: not-allowed;
    }

.btn-primary-ga,

.btn-primary-ga--list {
    background-color: var(--main-color-2);
}

    .btn-primary-ga:hover,

    .btn-primary-ga--list:hover {
        background-color: var(--main-color-1);
        text-decoration: none;
    }

.btn-secondary-ga {
    background-color: var(--main-color-1);
}

    .btn-secondary-ga:hover {
        background-color: var(--main-color-2);
        text-decoration: none;
    }

.btn-neutral-ga {
    background-color: var(--bg-dark);
    color: var(--main-color-1);
}

    .btn-neutral-ga:hover {
        background-color: var(--gray-medium);
        color: white;
    }

.btn-danger-ga {
    background-color: var(--danger-color);
}

    .btn-danger-ga:hover {
        background-color: var(--alert-danger-fg);
    }

.btn-primary-ga--list {
    border-radius: 0;
    border-width: 0;
    margin: 0;
    width: 100%;
}

.svg-icon,

.svg-icon-card,

.svg-icon-menu,

.svg-icon-menu-link,

.svg-icon-dark,

.svg-icon-main,

.svg-icon-main-2,

.svg-icon-small,

.svg-icon-rounded {
    stroke: white;
    height: 25px;
    width: 25px;
    fill: none;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-icon-menu {
    stroke: var(--menu-color);
}

.svg-icon-main {
    stroke: var(--main-color-1);
}

.svg-icon-menu-link {
    stroke: var(--main-color-2);
}

.svg-icon-main-2 {
    stroke: var(--main-color-2);
}

.svg-icon-card {
    height: 35px;
    stroke: var(--main-color-2);
}

.svg-icon-dark {
    height: 20px;
    stroke: black;
}

.svg-icon-rounded {
    padding: 5px;
    border: solid;
    border-color: white;
    border-width: 1px;
    border-radius: 50%;
    background-color: var(--main-color-1);
}

/* Icon-only buttons.
   btn-icon        = transparent glyph, colored on hover
   btn-icon-filled = round, filled with vert sapin (modifiers --sm, --xs) */
.btn-icon {
    color: black;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

    .btn-icon:hover {
        color: var(--main-color-1);
    }

    .btn-icon:disabled {
        color: var(--gray-medium);
        cursor: not-allowed;
    }

.btn-icon-filled,

.btn-icon-filled--sm,

.btn-icon-filled--xs {
    background-color: var(--main-color-1);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2px;
    border: none;
    cursor: pointer;
}

.btn-icon-filled {
    margin-block: 8px;
    margin-right: 5px;
    height: 38px;
    width: 38px;
    min-width: 35px;
}

.btn-icon-filled--sm {
    height: 1.8em;
    width: 1.8em;
}

.btn-icon-filled--xs {
    height: 1.2em;
    width: 1.2em;
}

    .btn-icon-filled:hover,

    .btn-icon-filled--sm:hover,

    .btn-icon-filled--xs:hover {
        background-color: var(--main-color-2);
        color: black;
    }

    .btn-icon-filled:disabled,

    .btn-icon-filled--sm:disabled,

    .btn-icon-filled--xs:disabled {
        background-color: var(--bg-dark);
        cursor: not-allowed;
    }

.bg-1 {
    background-color: var(--main-color-1);
}

.bg-2 {
    background-color: var(--main-color-2);
}

.bg-3 {
    background-color: var(--main-color-3);
}

.bg-back {
    background-color: white;
}

.color-1 {
    color: var(--main-color-1);
}

.color-2 {
    color: var(--main-color-2);
}

.color-3 {
    color: var(--main-color-3);
}

.ga-dropdown {
    border: solid;
    border-width: thin;
    border-radius: var(--r-pill);
    border-color: var(--gray-medium);
    padding: 0.5rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

.displayMenuText {
    font-size: 1rem;
}

.img-logo-container {
    height: 150px;
}

.img-logo-text {
    display: flex;
    justify-content: center;
    height: 60px;
    object-fit: cover;
}

.action-bar {
    padding-block: 0.5rem;
    margin-bottom: .4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: .5em;
    column-gap: var(--sp-2);
}

    /* One spacing between all the header controls, whatever they are and however they are grouped: the gap of the bar
       and of its groups, instead of the side margins of each control (4px for lists and dates, .4em for the search box,
       .5em on the right of buttons), which added up differently for every pair */
    .action-bar .elt-action-bar {
        column-gap: var(--sp-2);
        margin-right: 0;
    }

    .action-bar :is(.select, .input-date-header, .searchbox, .segmented-switch,
                    .btn-primary-ga, .btn-secondary-ga, .btn-neutral-ga, .btn-danger-ga, .btn-icon-filled) {
        margin-inline: 0;
    }

    /* One height for the controls of the line, that of the lists and the search box: the buttons, sized by their
       padding, and the joined switches, by their labels, came out a few pixels shorter and their edges did not line up */
    .action-bar :is(.btn-primary-ga, .btn-secondary-ga, .btn-neutral-ga, .btn-danger-ga) {
        box-sizing: border-box;
        min-height: var(--header-control-height);
    }

    .action-bar .segmented-switch {
        box-sizing: border-box;
        height: var(--header-control-height);
    }

        .action-bar .segmented-switch .input-radio-label {
            display: flex;
            align-items: center;
            height: 100%;
            box-sizing: border-box;
        }

    /* The separate pills of a choice on the same line (teams, views of a statistics page): the same height too, their
       text centred in it, rather than the few pixels shorter that their padding gave. As flex items, an icon and its
       label lose the space between them in the markup: the gap gives it back */
    .action-bar .input-radio-group-inline:not(.segmented-switch) .input-radio-label {
        display: inline-flex;
        align-items: center;
        gap: .35em;
        box-sizing: border-box;
        height: var(--header-control-height);
        margin-block: 0;
    }

.input-section,

.input-section-line-1-1,

.input-section-line-1-2,

.input-section-line-1-3,

.input-section-radio {
    margin-top: 1em;
    margin-bottom: 1em;
    margin-right: 0.5em;
}

.input-section-line-1-1 {
    display: grid;
}

.input-section-line-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.input-section-line-1-3 {
    display: grid;
    grid-template-columns: 1fr 3fr;
}

.input-section-radio {
    display: grid;
    grid-template-columns: auto 1fr;
}

.check-label,

.check-label-standard {
    margin-left: .6rem;
}

.check-label {
    font-weight: bold;
}

.input-date,

.input-number,

.input-no-border,

.input-text,

.input-text-area,

.input-select,

.input-inside,

.input-number-grid,

.input-select-grid,

.input-text-grid {
    width: 100%;
    font-size: var(--fs-400);
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    background-color: white;
    padding: .3em;
}

.input-with-action {
    display: flex;
    align-items: center;
    gap: .5em;
}

.input-number {
        width: 95%;
    }

.input-text-area {
    width: 97%;
}

    .input-number-grid:disabled,

    .input-text:disabled,

    .input-text-area:disabled {
        background-color: var(--bg-disabled);
    }

.input-text {
    width: 98%;
}

.input-no-border {
    border: none;
    width: 90%;
}

.input-check {
    display: flex;
    align-items: start;
}

.input-inside {
    margin: 5px;
}

.input-label {
    font-weight: bold;
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 5px;
    margin-right: 5px;
}

.cards-list {
    display: grid;
    grid-gap: 1em;
}

.card-container,

.card-container-recent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline: 0;
    margin-block: 0;
    padding: 0.8rem;
    border-radius: var(--r-lg);
    cursor: pointer;
    border-color: rgba(230,230,230,1);
    border-style: solid;
    border-width: 2px;
}

    .card-container:hover {
        /* offset-x | offset-y | blur-radius | spread-radius | color */
        box-shadow: 2px 2px 20px 10px rgba(230,230,230,1);
        /*box-shadow: 5px var(--main-color-3);*/
    }

.card-container-recent {
    border-style: dashed;
    border-color: var(--main-color-2);
    background-color: rgba(145,179,73,0.102);
}

    .card-container-recent:hover {
        box-shadow: 2px 2px 20px 10px var(--main-color-2-op);
    }

.card-content-main {
    display: flex;
    align-items: center;
}

.card-title {
    display: flex;
    font-weight: bold;
    font-size: var(--fs-600);
    color: black;
}

.card-subtitle {
    font-size: var(--fs-300);
    color: var(--gray-medium);
}

.card-subtitle-sub {
    font-size: var(--fs-200);
    color: var(--gray-medium);
}

.card-img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.card-info {
    margin-left: 1rem;
}

/* Dialog footer buttons: the buttons' own right margin spaces them on a line, row-gap spaces the lines when a narrow
   screen wraps them */
.footer-menubar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: var(--sp-2);
}

.dialog-title {
    font-size: var(--fs-500) !important;
    font-weight: bold !important;
    word-wrap: break-word !important;
    color: var(--main-color-1);
}

.dialog-group-header {
    font-size: var(--fs-400) !important;
    font-weight: bold !important;
    word-wrap: break-word !important;
    margin-block: .3em;
}

.dialog-text {
    font-size: var(--fs-300) !important;
}

.dialog-paragraph {
    margin-bottom: .5rem;
}

.input-radio-group-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: .2em;
    padding-block: .2em;
}

.input-radio-label {
    font-weight: bold;
    margin-left: 0;
    margin-right: .3em;
    margin-block: .2em;
    cursor: pointer;
    font-size: .8rem;
}

    .input-radio-label:hover {
        background-color: var(--main-color-2);
        color: white;
    }

.input-radio-item-inline {
    margin-right: 5px;
}

/* Two exclusive views as one joined switch (GaInputRadioGroup CssClass="segmented-switch"): a single outline, the
   chosen half filled, so both options stay visible. Real / estimated on the budget, years / months on the task
   breakdown. Same outline as a selected filter pill, so both controls share one height. */
.segmented-switch {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
    padding-block: 0;
    border: 2px solid var(--main-color-1);
    border-radius: var(--r-pill);
    overflow: hidden;
}

    .segmented-switch .input-radio-label {
        margin: 0;
        padding: .4rem 1rem;
        border: none;
        border-radius: 0;
        color: var(--main-color-1);
        white-space: nowrap;
    }

    .segmented-switch input:checked + .input-radio-label {
        background-color: var(--main-color-1);
        color: white;
    }

    /* Three options or more: a thin line between two options that are not chosen, which would otherwise read as one
       word run; none beside the chosen one, whose fill already separates it */
    .segmented-switch input:not(:checked) + .input-radio-label + input:not(:checked) + .input-radio-label {
        position: relative;
    }

        .segmented-switch input:not(:checked) + .input-radio-label + input:not(:checked) + .input-radio-label::before {
            content: "";
            position: absolute;
            left: 0;
            top: 25%;
            bottom: 25%;
            border-left: 1px solid color-mix(in oklab, var(--main-color-1) 40%, white);
        }

/* Icons instead of words (chart kind): narrower halves, same height as a switch of words beside it */
.segmented-switch-icons .input-radio-label {
    padding-inline: .85rem;
    cursor: pointer;
}

/* On a phone, a switch whose labels do not fit on one line (three views of the machine statistics) ran past the right
   edge of the screen, its last option cut: it now keeps to the width of the screen, and a label too long breaks onto
   two lines, the switch growing taller. Short switches, which fit, are unchanged */
@media (max-width: 640px) {
    .segmented-switch {
        max-width: 100%;
    }

        .segmented-switch .input-radio-label {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
            padding-inline: .7rem;
            white-space: normal;
            text-align: center;
            line-height: 1.15;
        }

    /* Taller when a label breaks, so the height is a minimum: a percentage height no longer resolves against it, and
       the options, centred at their own height, left white bands above and below the chosen fill. Stretched instead */
    .action-bar .segmented-switch {
        height: auto;
        min-height: var(--header-control-height);
        align-items: stretch;
    }

        .action-bar .segmented-switch .input-radio-label {
            height: auto;
        }
}

/* Read by screen readers and kept in the text of the element, but not shown */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.input-radio-item {
    margin-right: 0px;
}

.input-check-container,

.input-check-container-list {
    display: flex;
    justify-content: flex-start;
}

.input-check-container-list {
    flex-flow: column;
}

.ga-alert {
    border: solid 1px var(--alert-danger-border);
    border-radius: var(--r-md);
    color: var(--alert-danger-fg);
    background-color: var(--alert-danger-bg);
    padding: 1rem;
}

.dialog-container {
    font-size: 1em;
    white-space: pre-line;
}

.input-number-inside,

.input-number-inside-sm {
    border: 1px solid var(--gray-medium);
    padding-inline: .3em;
    padding-block: .2em;
    border-radius: var(--r-sm);
    font-size: 0.8rem;
    height: 20px;
}

.input-number-inside {
    width: 95%;
}

.input-number-inside-sm {
    width: 80%;
}

.not-authorised-container {
    color: var(--danger-high-color);
    font-weight: bold;
}

.header-title {
    font-size: var(--fs-600);
}

.header-subtitle {
    font-style: normal;
    font-weight: normal;
    font-size: var(--fs-800);
    color: var(--gray-medium);
    margin-bottom: 15px;
}

.header-info {
    display: flex;
    align-items: center;
    font-size: var(--fs-300);
    color: rgba(0,0,0,1);
}

.header-label {
    margin-left: 5px;
    font-weight: bold;
}

.header-text {
    margin-left: 5px;
}

.info-label,

.info-label-enhance {
    font-style: normal;
    font-weight: normal;
    font-size: var(--fs-300);
    color: var(--gray-medium);
    margin-bottom: 2px;
}

.info-label-enhance {
    font-weight: bold;
}

.info-data,

.info-data-cell,

.info-data-preserve {
    font-style: normal;
    font-weight: bold;
    font-size: var(--fs-500);
    color: rgba(0,0,0,1);
}

.info-data {
    margin-top: 2px;
}

.info-data-cell {
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-data-preserve {
    white-space: pre-line;
    line-height: 140%;
    font-weight: normal;
}

.info-section {
    margin-block: .6em;
}

.info-group {
    margin-top: .5rem;
    background-color: var(--main-color-3);
    border-radius: var(--r-lg);
    padding: 1rem;
}

.hr-header {
    border: none;
    background-color: var(--main-color-1);
    height: 1px;
    width: 100%;
}

.header-total,

.header-total-light {
    display: flex;
    align-items: center;
    font-size: var(--fs-400);
}

.header-total {
    color: var(--main-color-1);
    font-weight: bold;
}

.header-total-light {
    color: black;
}

.modal-info-data {
    display: flex;
}

.total-hours-info {
    cursor: pointer;
}

    .total-hours-info:hover {
        margin-left: 1px;
        margin-right: 1px;
        background-color: var(--accent-blue);
        color: white;
    }

.modal-info-title {
    font-weight: bold;
    color: var(--accent-blue);
}

.modal-info-group-title {
    font-weight: bold;
    overflow-wrap: break-word;
}

.modal-info-hint {
    font-style: italic;
    font-weight: normal;
    font-size: 0.8rem;
    margin-top: .5em;
}

.input-check-inside {
    display: flex;
    justify-content: center;
}

/*for reasons still to find, this css doesn't work within <component>.razor.css*/
.radio-item-group input[type="radio"] {
    display: none;
}

.row-wrapper,

.row-wrapper-alt,

.row-wrapper-alt-link,

.row-wrapper-alt-dark,

.row-wrapper-alt-theme,

.row-wrapper-selected,

.row-wrapper-total {
    display: contents;
}

.row-wrapper-alt-link {
    cursor: pointer;
}

.row-wrapper-total {
    background-color: var(--bg-dark);
}

.row-wrapper-selected {
    background-color: var(--selected-color) !important;
}

.row-wrapper-alt-link:hover > div {
    background-color: var(--main-color-4);
}

.row-wrapper:hover > div,

.row-wrapper:hover > label {
    background-color: rgba(211,211,211, .5);
}

.grid-bg .row-wrapper-alt:nth-of-type(odd),

.grid-bg .row-wrapper-alt-link:nth-of-type(odd),

.grid-bg .row-wrapper-alt:nth-of-type(odd) {
    background-color: white;
}

.grid-bg .row-wrapper-alt:nth-of-type(even),

.grid-bg .row-wrapper-alt-link:nth-of-type(even),

.grid-bg .row-wrapper-alt:nth-of-type(even) {
    background-color: var(--bg-light);
}

.grid-bg .row-wrapper-alt-theme:nth-of-type(odd) {
    background-color: var(--zebra-theme-odd);
}

.grid-bg .row-wrapper-alt-theme:nth-of-type(even) {
    background-color: var(--zebra-theme-even);
}

.grid-bg .row-wrapper-alt-dark:nth-of-type(odd) {
    background-color: var(--gray-medium);
}

.grid-bg .row-wrapper-alt-dark:nth-of-type(even) {
    background-color: var(--bg-dark);
}

.grid-bg .row-wrapper-alt-dark:first-of-type {
    margin-top: 1rem;
}

.grid-bg .row-wrapper-alt-dark:last-of-type {
    margin-bottom: 1rem;
}

.radio-item-group label {
    background-color: var(--main-color-1);
    color: white;
    border-radius: var(--r-pill);
    cursor: pointer;
    border: none;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
}

.radio-item-group input[type=radio]:checked + label {
    background-color: var(--main-color-2);
    color: white;
}

.radio-item-group {
    margin-top: 7px;
    margin-bottom: 7px;
    display: flex;
    flex-flow: column;
    justify-content: stretch;
}

@media (min-width: 1369px) {
    .select-month {
        display: none;
    }

    .ga-container {
        padding: 3rem;
    }

}

@media (min-width: 1000px) and (max-width: 1368.99px) {
    .cards-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1369px) {
    .cards-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .input-section-group {
        display: grid;
        grid-auto-columns: 1fr;
        grid-auto-flow: column;
        column-gap: 2rem;
    }

}

@media (min-width: 810px) {

    .title-container {
        display: flex;
        justify-content: space-between
    }

    .elt-action-bar {
        margin-right: 5px;
        display: flex;
        align-items: center;
    }
}

/*Shared*/

.alert-warning,

.alert-info {
    margin-top: 1rem;
    padding: 20px;
    border: solid;
    border-width: 1px;
    border-radius: var(--r-lg);
}

.alert-warning {
    background-color: var(--alert-warning-bg);
    border-color: var(--alert-warning-fg);
    color: var(--alert-warning-fg);
}

.alert-info {
    background-color: var(--gray-light);
    border-color: var(--gray-medium);
    color: black;
}

/* New grid system*/

.grid-bg {
    display: grid;
    gap: var(--grid-border-width);
    border: var(--grid-border-width) solid var(--gray);
    background-color: var(--gray);
    overflow-x: auto;
}

.cell,

.cell-data,

.cell-data-column,

.cell-data-row,

.cell-label,

.cell-total,

.cell-total-align-center,

.cell-total-align-right,

.cell-header,

.cell-total-label,

.cell-data-align-right,

.cell-data-align-center,

.cell-data-container,

.cell-disabled {
    font-size: var(--fs-400);
    padding-inline: .5rem;
    padding-block: .4em;
    background-color: white;
    display: flex;
    align-items: center;
}

.cell-data-no-padding {
    font-size: var(--fs-400);
    background-color: inherit;
}

.cell-disabled {
    background-color: var(--gray);
    cursor: not-allowed;
}

.cell-data-column {
    align-items: start;
    flex-flow: column;
}

.cell-data-row {
    align-content: center;
    justify-content: space-between;
    gap: .3em;
}

.cell-data,

.cell-data-column,

.cell-data-row,

.cell-data-align-right,

.cell-data-container,

.cell-data-align-center,

.cell-total-label,

.cell-total-align-right,

.cell-label {
    background-color: inherit;
}

.cell-header {
    top: 0;
    position: sticky;
    color: white;
    background-color: var(--main-color-2);
}

.cell-total-align-center,

.cell-header,

.cell-data-align-center {
    display: flex;
    justify-content: center;
}

.cell-label {
    justify-content: flex-start;
}

.cell-total-align-right,

.cell-data-align-right {
    justify-content: flex-end;
}

.cell-total-label {
    justify-content: flex-end;
}

.cell-total-align-right,

.cell-total-align-center,

.cell-total,

.cell-total-label {
    padding: .4em;
    font-weight: bold;
}

.cell-total {
    justify-content: flex-end;
}

.cell-data-container {
    justify-content: flex-start;
    gap: .5em;
}

.group-header-wrapper {
    color: var(--main-color-1);
    background-color: white;
    display: flex;
    align-items: center;
    grid-column: 1 / -1;
    padding-top: 0.7em;
    padding-bottom: 0.5em;
    padding-inline: .5rem;
    scroll-margin-top: 1rem;
    gap: .5rem;
}

/* End new grid sytem*/

/* Grid helpers */
.grid-full-row {
    grid-column: 1 / -1;
}

.grid-subgrid-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
}

.capitalize {
    text-transform: capitalize;
}

.self-center {
    align-self: center;
}

.mt-4 {
    margin-top: var(--sp-4);
}

.button-rounded,

.button-rounded-selected,

.check-rounded-outline,

.check-rounded-selected {
    cursor: pointer;
    color: white;
    border-radius: var(--r-pill);
    border: none;
    padding: 4px;
    padding-bottom: 4px;
    padding-left: 10px;
    padding-right: 10px;
}

.button-rounded {
    background-color: var(--main-color-1);
}

.button-rounded-selected {
    color: white;
    background-color: var(--main-color-2);
}

.check-rounded-outline,

.check-rounded-selected {
    font-size: var(--fs-300);
    margin-top: 3px;
    margin-right: 3px;
}

    .check-rounded-selected > input,

    .check-rounded-outline > input {
        display: none;
    }

.check-rounded-selected {
    align-self: flex-start;
    color: white;
    background-color: var(--main-color-2);
}

.check-rounded-outline {
    align-self: flex-start;
    color: var(--main-color-2);
    border: 1px solid var(--main-color-2);
    background-color: white;
}

.enable-button {
    background-color: transparent;
    border: none;
    color: var(--main-color-2);
    cursor: pointer;
}

    .enable-button:disabled {
        color: var(--gray-dark);
        cursor: default;
        cursor: not-allowed;
    }

.input-search-filter {
    min-width: 150px;
    padding: .8em;
    border: none;
    background-color: var(--bg-light);
    border-radius: var(--r-pill);
    margin-block: .2em;
}

    .input-search-filter::placeholder {
        padding-block: .5em;
        font-size: .8rem;
        color: var(--gray-medium);
    }

    .input-search-filter:focus {
        border: 1px solid var(--main-color-1);
        outline: none;
    }

.id-photo-section {
    display: flex;
    justify-content: space-between;
}

.can-drop {
    outline: 3px dashed var(--ok-high-color) !important;
}

.no-drop {
    cursor: not-allowed !important;
    outline: 3px dashed var(--danger-high-color) !important;
}

/* Dates of the page headers, read as the header lists (.select of custom-controls.css): dark text and a plain outline,
   the light gray being kept for what cannot be used */
.input-date-header {
    font-family: var(--common-font), sans-serif;
    box-sizing: border-box;
    height: var(--header-control-height);
    padding: 0 10px;
    border: 1.5px solid var(--gray);
    border-radius: var(--r-lg);
    margin: 4px;
    font-weight: normal;
    font-size: var(--fs-300);
    color: inherit;
    background-color: transparent;
    min-width: 7rem;
    cursor: pointer;
}

    .input-date-header:hover {
        border-color: var(--main-color-1);
    }

    .input-date-header:focus-visible {
        outline: 2px solid var(--main-color-1);
        outline-offset: 1px;
    }

    .input-date-header:disabled {
        color: var(--gray-medium);
        border-color: var(--gray-light);
        background-color: var(--bg-disabled);
        cursor: not-allowed;
    }

.maintenance-event-column-header {
    background-color: var(--main-color-2);
    padding: 5px;
    font-weight: bold;
    margin: 1px;
    justify-self: stretch;
}

.maintenance-event-cell,

.maintenance-event-cell-number {
    background-color: white;
    margin: 1px;
    justify-self: stretch;
    padding: 5px;
}

.maintenance-event-cell-number {
    display: flex;
    justify-content: right;
}

.maintenance-event-details {
    border: solid 1px black;
}

/*.model-edit-groups > * {
    margin-block: .5em;
}*/

@media (min-width: 1200px) {
    .maintenance-event-groups {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .5em;
    }

    .model-edit-groups {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1em;
    }
}

.hide {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.daily-planning-filters-menu {
    display: flex;
    flex-wrap: wrap;
    grid-gap: .5em;
}

.toggle-switch-container {
    align-self: flex-end;
    display: flex;
    align-items: center;
}

.toggle-switch-label {
    margin-left: 0;
    margin-right: 10px;
    cursor: pointer;
    font-size: var(--fs-300);
}

.header-subtitle-dashboard-element {
    margin-top: .2rem;
}

.header-subtitle-dashboard-element-container {
    padding-bottom: .2rem;
}

.dashboard-cell,

.dashboard-cell-last {
    color: var(--main-color-1);
    font-size: 1rem;
    padding-top: .5rem;
    padding-bottom: .3rem;
}

.dashboard-cell {
    border-bottom: 1px solid var(--main-color-2);
}

.dashboard-cell-last {
    padding-bottom: 2rem;
}

/*    .dashboard-cell:hover, .dashboard-cell-last:hover {
        text-decoration: none;
    }*/

.dashboard-group-title {
    color: white;
    display: flex;
    align-content: center;
    font-size: var(--fs-600);
    font-weight: bold;
    margin-block: 0;
}

.dashboard-group-header-container {
    --bg-header: var(--main-color-2);
    background-color: var(--bg-header);
    color: white;
    stroke: white;
    display: flex;
    justify-content: space-between;
    padding-inline: 1rem;
    padding-top: .7rem;
    padding-bottom: .5rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom: 2px solid white;
}

.dashboard-header-info-container {
    color: var(--main-color-2);
    font-size: 1rem;
    margin-block: .5em;
}

.dashboard-group-container {
    flex: 1;
    background-color: var(--main-color-3);
    border-radius: var(--r-lg);
    margin-bottom: 1rem;
}

.icon-info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: .5rem;
}

@media (min-width: 810px) {

    .header-subtitle-dashboard-element-container {
        margin: 1rem 0;
    }

    .input-radio-label {
        font-size: 1rem;
    }
}

legend {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--main-color-1);
    margin-block: .5em;
}

fieldset {
    margin-block: .1em;
}

.legend-wrapper {
    display: flex;
    align-items: center;
}

.ga-nav-link,

.ga-nav-link-hd,

.ga-sub-nav-link {
    color: var(--menu-color);
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: row;
    text-decoration: none;
    background-color: inherit;
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    font-size: var(--fs-400);
}

    .ga-nav-link:hover,

    .ga-nav-link-hd:hover,

    .ga-sub-nav-link:hover {
        text-decoration: none;
    }

.ga-connection-link {
    display: flex;
    align-items: center;
    color: var(--main-color-2);
    text-decoration: none;
    margin-block: .3em;
    margin-right: 1em;
}

.ga-nav-link {
    font-size: var(--fs-400);
    padding: 10px 20px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.ga-nav-link-hd {
    display: none;
}

.ga-sub-nav-link {
    padding: .4em 1em;
    margin-left: 3em;
    margin-right: .6em;
    margin-top: 0;
    margin-bottom: 0;
    font-size: var(--fs-200);
}

@media (min-width: 810px) and (max-width: 1368.99px) {
    .ga-sub-nav-link {
        margin: .2em;
    }

    .ga-nav-link-hd {
        display: flex;
        height: 100%;
        align-items: center;
    }
}

@media (min-width: 1369px) {

    .ga-connection-link:last-child {
        margin-bottom: 2em !important;
    }
}

.ga-connection-link:hover {
    color: white;
    stroke: white;
}

    .ga-connection-link:hover > * {
        stroke: white;
    }

.ga-nav-link:hover,

.ga-sub-nav-link:hover,

.svg-icon-menu:hover {
    background-color: var(--nav-hover);
}

.active {
    color: white;
}

    .active > * {
        color: white !important;
        stroke: white;
    }

.navigate-years-button {
    background-color: var(--main-color-2);
    color: white;
    border-radius: 50%;
    border: none;
    margin: 0;
    cursor: pointer;
    margin: 2px;
}

    .navigate-years-button:hover {
        color: black;
    }

.btn-tab-idle,

.btn-tab-selected {
    border-width: 1px;
    border-radius: var(--r-pill);
    padding-block: 0;
    padding-inline: 1em;
    background-color: transparent;
    font-weight: bold;
    font-size: var(--fs-400);
    cursor: pointer;
}

.btn-tab-idle {
    border: 1.5px dashed var(--gray-medium);
    color: var(--gray-medium);
}

.btn-tab-selected {
    border: 2px solid var(--main-color-1);
    color: var(--main-color-1);
}

.model-group-header {
    margin-top: .6em;
    margin-bottom: .4em;
    grid-column: 1/-1;
}

.circle {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.grid-bg div[style*="height"] {
    grid-column: 1 / -1;
    /*height: auto !important;*/ /* �vite que la hauteur interf�re */
    visibility: hidden; /* Cache visuellement sans affecter le d�filement */
}

.chart-side-table-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-block: 0.5em;
}

.responsive-img {
    max-width: 100vw; /* largeur max = largeur de la fen�tre */
    max-height: 100vh; /* hauteur max = hauteur de la fen�tre */
    width: auto;
    height: auto;
    display: block; /* �vite les petits espaces sous l'image */
    margin: 0 auto; /* centre l'image horizontalement */
}

/* Button styled as link for modal navigation - prevents freeze when navigating from modals */
.button-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    text-align: left;
    display: inline;
}

.button-link:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.button-link:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* A unit price that opens how it is obtained (StockUnitPriceInfoModal), on the current stock and the inventory: a figure
   that reads as a link, not a button, cut with an ellipsis in a narrow column like the text around it */
.btn-price {
    border: none;
    background-color: transparent;
    padding: 0;
    font: inherit;
    color: var(--main-color-1);
    cursor: pointer;
    text-decoration: underline dotted;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

    .btn-price:hover,
    .btn-price:focus-visible {
        color: var(--main-color-2);
        text-decoration-style: solid;
    }

/* Specific class for modal links (preserve existing styling) */
.modal-info-data .button-link {
    color: inherit;
}

/*
 * Touch screens: a finger needs about 32px where a mouse is happy with the glyph alone. Only a coarse pointer gets these
 * sizes, so the desktop tables and toolbars keep their density.
 */
@media (pointer: coarse) {
    /* Transparent icon buttons (and the year arrows of the budget and machine grids): the box grows, the glyph stays */
    .btn-icon,
    .navigate-years-button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-width: 2rem;
        min-height: 2rem;
    }

    /* The small filled circle keeps its look: an invisible ring around it takes the touch */
    .btn-icon-filled--xs {
        position: relative;
    }

        .btn-icon-filled--xs::after {
            content: "";
            position: absolute;
            inset: -.45rem;
        }

    input[type="checkbox"],
    input[type="radio"] {
        width: 1.25rem;
        height: 1.25rem;
    }

    .input-text,
    .input-select,
    .input-number,
    .input-text-grid,
    .input-select-grid,
    .input-number-grid {
        min-height: 2rem;
    }
}
