/*You need to import it in the layout since there is a problem with the pathing.*/
/*@import "./_content/EspaceCollege.Forms.Blazor/css/utils.css";*/
:root {
    --cr-font-family: var(--mud-typography-default-family, sans-serif);
    --cr-font-family-monospace: 'Roboto Mono', monospace;
}

html, body {
    font-family: var(--cr-font-family);
}

h1:focus {
    outline: none;
}

.hazard {
    background-image: repeating-linear-gradient(-55deg, #00000033, #00000033 20px, #FFFFFF33 20px, #FFFFFF33 40px);
}

.hazard-light {
    background-image: repeating-linear-gradient(-55deg, #00000002, #00000002 20px, #FFFFFF02 20px, #FFFFFF02 40px);
}

code {
    background-color: var(--mud-palette-action-disabled-background);
    color: var(--mud-palette-action-default);
    padding: 0 .3em;
    border-radius: .2em;
    word-break: break-word;
}

    code.inherit-text {
        color: inherit;
    }

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: var(--mud-palette-error-darken);
    color: var(--mud-palette-gray-default);
    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 a {
        color: var(--mud-palette-gray-default);
        cursor: pointer;
        text-decoration: underline;
        font-weight: bold;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        color: var(--mud-palette-gray-default);
        text-decoration: none;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xp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jYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.table-selectable tbody tr:hover {
    cursor: pointer;
}

@media screen and (max-width:960px) {
    .table col.action-buttons {
        width: 200px;
    }
}

tr.disabled {
    position: relative;
}

    tr.disabled > td {
        color: var(--mud-palette-action-disabled) !important;
    }

    tr.disabled::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: hsl(0 0% 100% / .1)
    }

dl > dt {
    font-weight: bold;
}

dl > dd {
    margin-left: 1rem;
}

textarea.resize-none,
.resize-none textarea {
    resize: none !important;
}

textarea.resize-both,
.resize-both textarea {
    resize: both !important;
}

textarea.resize-horizontal,
.resize-horizontal textarea {
    resize: horizontal !important;
}

textarea.resize-vertical,
.resize-vertical textarea {
    resize: vertical !important;
}

ul.list-style-disc {
    list-style-type: disc;
    line-height: 1.5em;
    position: relative;
    margin-left: 2em;
}

    ul.list-style-disc > li {
        margin-left: 1em;
        padding-left: 1em;
        list-style: disc;
        margin-bottom: 0.4em;
        margin-top: 0.4em;
    }

/*App specific CSS*/

.appbar-icon {
    transition: all .5s ease;
    z-index: -1000;
    opacity: 1;
}

    .appbar-icon.icon-hidden {
        transform: translateX(-100%);
        opacity: 0;
    }

/*Utilities that aren't in MudBlazor */
.opacity-25 {
    opacity: .25;
}

.opacity-50 {
    opacity: .5;
}

.opacity-75 {
    opacity: .75;
}

.opacity-100 {
    opacity: 1;
}

.align-text-justify {
    text-align: justify;
}

.align-text-lg-justify {
    text-align: inherit;
}

.align-text-center {
    text-align: center;
}

.align-text-lg-center {
    text-align: inherit;
}

@media screen and (min-width:1280px) {
    .align-text-lg-justify {
        text-align: justify;
    }

    .align-text-lg-center {
        text-align: center;
    }
}

.align-text-right {
    text-align: right;
}

.not-active {
    text-decoration: line-through;
}

.font-weight-bold {
    font-weight: bold;
}

.font-style-italic {
    font-style: italic;
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.monospace {
    font-family: var(--cr-font-family-monospace);
}

.class-number {
    font-family: var(--cr-font-family-monospace);
    /*font-size: calc(var(--mud-typography-body1-size) + 0.2rem);*/
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.above-drawer-1 {
    z-index: calc(var(--mud-zindex-drawer) + 10) !important;
}

.above-drawer-2 {
    z-index: calc(var(--mud-zindex-drawer) + 20) !important;
}

.above-drawer-3 {
    z-index: calc(var(--mud-zindex-drawer) + 30) !important;
}

.above-appbar-1 {
    z-index: calc(var(--mud-zindex-appbar) + 10) !important;
}

.above-appbar-2 {
    z-index: calc(var(--mud-zindex-appbar) + 20) !important;
}

.above-appbar-3 {
    z-index: calc(var(--mud-zindex-appbar) + 30) !important;
}

.disabled-primary,
.mud-checkbox.mud-disabled .mud-primary-text * {
    color: var(--mud-palette-primary-darkest);
}


/*Amélioration des MudTabs*/
.mud-tabs-vertical > .d-inline-block:has( > .mud-tab.full-width) {
    width: 100% !important;
}

.mud-tabs-unclickable .mud-tab.mud-disabled {
    color: inherit;
}

.mud-tabs-unclickable .mud-tab.mud-tab-active.mud-disabled {
    color: var(--mud-palette-primary);
}

.uppercase-input input {
    text-transform: uppercase;
}

.mud-expand-panel.scrollable-content > .mud-collapse-container {
    overflow-y: auto;
}

.mud-expand-panel.max-height-50 > .mud-collapse-container {
    max-height: 50vh;
}

.mud-expansion-panels.real-dense .mud-expand-panel > .mud-expand-panel-header {
    padding: 8px 12px;
}

/*MudCustomStepper*/
.mud-stepper > div:not(.mud-tabs-tabbar) > div:not(.mud-stepper-nav) {
    max-height: 50vh;
    overflow-y: scroll;
}

@media screen and (min-width:1280px) {
    .mud-stepper > div:not(.mud-tabs-tabbar) > div:not(.mud-stepper-nav) {
        max-height: 70vh;
        overflow-y: scroll;
    }
}

/*MudExpansionPanel*/
.mud-expand-panel.mud-disabled.read-only .mud-expand-panel-header {
    color: var(--mud-palette-text-primary);
}

/*MudChips*/
.mud-chip.mud-chip-size-xsmall {
    height: auto;
    border-radius: 100vh;
    font-size: .8em;
    padding: .1em 1em;
}

/*Others*/
.official-format ul {
    list-style: circle;
}

    .official-format ul li {
        margin-left: 1.2em;
    }

.official-format h1 {
    font-size: 1.3em;
    font-weight: bold;
}

.official-format h2 {
    font-size: 1.3em;
    font-weight: normal;
}

.official-format h3 {
    font-size: 1.15em;
    font-weight: bold;
}

.official-format h4 {
    font-size: 1.15em;
    font-weight: normal;
}

.official-format {
    font-size: 1em;
}

    .official-format p {
        margin-bottom: .5em;
    }


/* modifications des comportements par défauts de la progress-bar */
/* pas d'animation, on voit la valeur, le tampon, ainsi que le reste de la barre */

.mud-progress-linear.linear-buffered-progress-bar-no-animation.mud-progress-linear-buffer.horizontal
.mud-progress-linear-bar:first-child {
    animation: none !important;
    background: var(--mud-palette-action-disabled-background) !important;
}

.mud-progress-linear.linear-buffered-progress-bar-no-animation.mud-progress-linear-rounded
.mud-progress-linear-bar {
    border-radius: 0;
}

/*Utility Tableau de bord*/
.column-vsm,
.column-sm,
.column-md,
.column-lg,
.column-xl,
.column-xx {
    display: none;
}
/*very small*/
@container (width > 525px) {
    .column-vsm {
        display: revert;
    }

    .column-vsm-none {
        display: none;
    }
}
/*Small*/
@container (width > 600px) {
    .column-sm {
        display: revert;
    }

    .column-sm-none {
        display: none;
    }
}
/*Medium*/
@container (width > 960px) {
    .column-md {
        display: revert;
    }

    .column-md-none {
        display: none;
    }
}
/*Large*/
@container (width > 1280px) {
    .column-lg {
        display: revert;
    }

    .column-lg-none {
        display: none;
    }
}

@container (width > 1920 px) {
    .column-xl {
        display: revert;
    }
}

@container (width > 2560px) {
    .column-xx {
        display: revert;
    }
}

.mud-table.responsive-footer-sm .mud-table-pagination .mud-table-pagination-caption,
.mud-table.responsive-footer-sm .mud-table-pagination .mud-table-pagination-information,
.mud-table.responsive-footer-sm .mud-table-pagination .mud-table-page-number-information {
    display: none;
}


@container (width > 600px) {
    .mud-table.responsive-footer-sm .mud-table-pagination .mud-table-pagination-information {
        display: revert;
    }
}

@container (width > 600px) {
    .mud-table.responsive-footer-sm .mud-table-pagination .mud-table-page-number-information {
        display: revert;
    }
}

@container (width > 600px) {
    .mud-table.responsive-footer-sm .mud-table-pagination .mud-table-pagination-caption {
        display: revert;
        align-self: center;
    }
}

.mud-table-cell {
    padding: 3px;
    vertical-align: middle;
}

.toolbar-container {
    margin-right: 10px;
    margin-left: auto;
}

/*Permet d'avoir une boite de dialogue pleine grandeur sur la hauteur.'*/
.mud-dialog.mud-dialog-fullscreen.max-height {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .mud-dialog.mud-dialog-fullscreen.max-height .outline-none {
        flex-grow: 1;
        /* overflow-y: auto; */
        overflow: hidden;
        padding-bottom: .3em;
    }

        .mud-dialog.mud-dialog-fullscreen.max-height .outline-none > div:has(>.mud-dialog-content) {
            height: 100%;
        }

    .mud-dialog.mud-dialog-fullscreen.max-height .mud-dialog-content {
        height: 100%;
        /* overflow-y:auto; */
    }

/*Class used for rotation of an icon*/
.mud-icon-button.rotating {
    animation: inherit;
}

    .mud-icon-button.rotating > .mud-icon-button-label,
    .rotating {
        animation: rotation 1s infinite linear;
    }

@media (prefers-reduced-motion) {
    .rotating {
        animation: rotation 5s infinite linear;
    }
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-359deg);
    }
}

/*Début Critères Admissibilité*/
.criteres-admissibilite .suggestion > td:not([data-label="Actions"]) {
    color: var(--mud-palette-primary, teal);
    font-weight: bold;
}

ul.criteres-admissibilite li.suggestion {
    background-color: var(--mud-palette-primary, teal);
    font-weight: bold !important;
    position: relative;
    box-shadow: 0 0 .3em var(--mud-palette-background, white);
}

    ul.criteres-admissibilite li.suggestion::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: -1em;
        height: 2em;
        width: 1em;
        background-color: var(--mud-palette-background);
    }

    ul.criteres-admissibilite li.suggestion::after {
        content: "!";
        color: var(--mud-palette-primary);
        font-size: 1.5em;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: -.5em;
    }

.criteres-admissibilite .suggestion-suppression > td:not([data-label="Actions"]),
ul.criteres-admissibilite li.suggestion-suppression {
    color: var(--mud-palette-error, red);
    text-decoration: line-through;
}
/*Fin Critères Admissibilité*/

.text-stricken {
    text-decoration: line-through;
}

.text-muted {
    color: var(--mud-palette-text-disabled, #888);
}

.mud-error-text.text-muted {
    color: rgba(var(--mud-palette-error-rgb, #F00), 0.2) !important;
}

.mud-success-text.text-muted {
    color: rgba(var(--mud-palette-success-rgb, #0F0), 0.2) !important;
}

.mud-alert.vertical-icon > div {
    align-items: center;
}

/*FLOATING BUTTONS*/
[type=button].floating-button {
    position: fixed;
    z-index: 9999;
}

    [type=button].floating-button.b-1 {
        bottom: 1rem;
    }

    [type=button].floating-button.b-2 {
        bottom: 2rem;
    }

    [type=button].floating-button.b-3 {
        bottom: 3rem;
    }

    [type=button].floating-button.b-4 {
        bottom: 4rem;
    }

    [type=button].floating-button.b-5 {
        bottom: 5rem;
    }

    [type=button].floating-button.r-1 {
        right: 1rem;
    }

    [type=button].floating-button.r-2 {
        right: 2rem;
    }

    [type=button].floating-button.r-3 {
        right: 3rem;
    }

    [type=button].floating-button.r-4 {
        right: 4rem;
    }

    [type=button].floating-button.r-5 {
        right: 5rem;
    }


.grid-container-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.grid-item {
    grid-column: auto / span var(--column-size, 1);
    grid-row: auto / span var(--row-size, auto);
}

/* Small (sm) */
@media screen and (min-width: 600px) {
    .grid-item {
        grid-column: auto / span var(--column-size-sm, var(--column-size, 1));
        grid-row: auto / span var(--row-size-sm, var(--row-size, auto));
    }
}

/* Medium (md) */
@media screen and (min-width: 960px) {
    .grid-item {
        grid-column: auto / span var(--column-size-md, var(--column-size-sm, var(--column-size, 1)));
        grid-row: auto / span var(--row-size-md, var(--row-size-sm, var(--row-size, auto)));
    }
}

/* Large (lg) */
@media screen and (min-width: 1280px) {
    .grid-item {
        grid-column: auto / span var(--column-size-lg, var(--column-size-md, var(--column-size-sm, var(--column-size, 1))));
        grid-row: auto / span var(--row-size-lg, var(--row-size-md, var(--row-size-sm, var(--row-size, auto))));
    }
}

/* Extra Large (xl) */
@media screen and (min-width: 1920px) {
    .grid-item {
        grid-column: auto / span var(--column-size-xl, var(--column-size-lg, var(--column-size-md, var(--column-size-sm, var(--column-size, 1)))));
        grid-row: auto / span var(--row-size-xl, var(--row-size-lg, var(--row-size-md, var(--row-size-sm, var(--row-size, auto)))));
    }
}

/* Extra Extra Large (xxl) */
@media screen and (min-width: 2560px) {
    .grid-item {
        grid-column: auto / span var(--column-size-xxl, var(--column-size-xl, var(--column-size-lg, var(--column-size-md, var(--column-size-sm, var(--column-size, 1))))));
        grid-row: auto / span var(--row-size-xxl, var(--row-size-xl, var(--row-size-lg, var(--row-size-md, var(--row-size-sm, var(--row-size, auto))))));
    }
}
