/* Reset natif */
.q-readonly-dl,
.q-readonly-dl dt,
.q-readonly-dl dd {
    margin: 0;
    padding: 0;
}

.q-readonly-div {
    background: white;
    padding: 12px 5px;
}

/* Chaque dt/dd forme visuellement un champ */
.q-readonly-label {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.6);
}

/* Valeur (équivalent q-field__control) */
.q-readonly-value {
    font-size: 14px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.87);
    padding-top: 7px !important;
}

.q-readonly-div-formulaire {
    padding: 5px 5px 20px 5px;
}

/* Chaque dt/dd forme visuellement un champ pour la synthèse des formulaires */
.q-readonly-label-formulaire {
    font-size: 0.9rem;
    font-weight: 300;
    color: black;
}

/* Valeur (équivalent q-field__control) pour la synthèse des formulaires */
.q-readonly-value-formulaire {
    font-weight: bold !important;
    font-size: 1rem;
    color: black;
}

/** DSFR Header overrides **/
.fr-nav__list > .fr-nav__item > .fr-nav__link, .fr-nav__list > .fr-nav__item > .fr-nav__btn {
    padding: 1rem 0.65rem;
}

.fr-nav__btn {
    justify-content: start;
}

.text-negative > .fr-nav__link {
    color: var(--q-color-negative);
}

.annonce-card {
    width: 50%;
}

@media screen and (max-width: 1250px) {
    .annonce-card {
        width: 100%;
    }
}

.add-colon::before {
    content: ":  ";
}

.fr-light-highlight {
    box-shadow: inset .25rem 0 0 0 var(--border-default-blue-france) !important;
    padding-left: 0.5rem;
}

.fr-light-callout {
    --title-spacing: 0 0 0.5rem;
    --text-spacing: 0;
    --idle: transparent;
    --hover: var(--background-contrast-grey-hover);
    --active: var(--background-contrast-grey-active);
    background-color: var(--background-contrast-grey);
    box-shadow: inset .25rem 0 0 0 var(--border-default-blue-france);
    padding: 1rem;
    position: relative;
}

.header {
    display: flex;
    justify-content: center;
}

.bandeau-title {
    width: 100%;
    /*max-width: 1440px;*/
    height: 158px;
    background-image: url('../images/common/bg-bandeau-title.png');
    background-size: cover;
}

.bandeau-title .bandeau-title-opacity {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 109, 0.3);

    display: flex;
    justify-content: center;
    flex-direction: column;
}

.bandeau-title .bandeau-title-opacity .title-bandeau {
    background-color: rgba(256, 256, 256, 0.7);
    height: 80px;
    width: 45%;
    min-width: 300px;
    padding-left: calc((100% - 1232px) / 2);

    display: flex;
    justify-content: center;
    flex-direction: column;
}

.bandeau-title .bandeau-title-opacity .title-bandeau h1 {
    color: var(--fgv-text-color) !important;
    margin: 0 !important;
    font-size: 1.75rem !important;
    line-height: 2.25rem !important;
    font-weight: 700 !important;
    padding-left: 10px;
}

.back-espace-perso-link {
    text-decoration: none;
    color: var(--q-color-primary);
    background-image: none;
    display: flex;
    gap: 5px;
    margin: 2em 0 1em;
    font-size: 12px;

    span {
        font-size: 24px;
    }
}

.q-tr--mini .showButtonOnHover {
    justify-content: center !important;
    padding: 0 4px
}

.q-tr--mini .col_action {
    background: rgba(0, 0, 0, 0.05);
}

.q-tr.no-hover td::before {
    background: unset;
}

.smaller-thead .q-table thead th {
    font-size: 0.90rem;
}

/** iFrames **/

.iframe-md {
    height: calc(100vh - 72px);
    width: min(1024px, 100vw);
}

.iframe-lg {
    height: calc(100vh - 72px);
    width: min(1247px, 100vw);
}

.iframe-xl {
    height: calc(100vh - 72px);
    width: min(1400px, 100vw);
}

/** Classe utilisée pour afficher l'authentification forte dans une modale **/
.iframe-nested {
    height: max(300px, min(500px, 100vh - 200px));
    width: 500px;
}

/** HTML override **/
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/** Quasar override **/

.q-mb-none {
    margin-bottom: 0 !important;
}

.dsfr-stepper .q-stepper__tab {
    min-height: 50px;
}

.dsfr-stepper .q-stepper__tab.col-grow {
    flex: 10000 1 0 !important;
    padding: 4px 4px;
}

.dsfr-stepper .q-stepper__dot::after, .dsfr-stepper .q-stepper__dot::before {
    content: unset;
}

.dsfr-stepper .q-stepper__label {
    align-self: start;
    text-align: start;
}

.dsfr-stepper .q-stepper__dot {
    width: 100%;
    width: -moz-available; /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
    width: stretch;
    min-width: unset;
    height: 6px;
    border-radius: unset;
}

.dsfr-stepper .text-grey .q-stepper__dot, .dsfr-stepper .q-stepper__tab:not([class*="text-"]) .q-stepper__dot {
    color: var(--background-contrast-grey);
}

.dsfr-stepper .text-primary .q-stepper__label {
    color: var(--q-color-dark);
}

.dsfr-stepper .q-stepper__tab--active .q-stepper__label {
    text-shadow: none;
}

.dsfr-stepper .text-warning .q-stepper__label {
    color: var(--q-color-dark);
}

.q-td .fr-stepper {
    margin-bottom: unset;
}

.no-shadow > .q-card {
    box-shadow: none !important;
}

.q-mx-n-md {
    margin-left: -16px;
    margin-right: -16px;
}

.fr-btn .q-btn__wrapper {
    min-height: unset !important;
    padding: unset !important;
}

.hide-stepper-content .q-stepper__content {
    display: none;
}

.q-item--active::before {
    --idle: transparent;
    --hover: var(--q-color-primary);
    --active: var(--q-color-primary);
    background-color: var(--q-color-primary);
    bottom: .75rem;
    content: "";
    left: 0;
    position: absolute;
    top: .75rem;
    width: 2px;
}

.q-table .q-tr--mini .q-field__bottom {
    display: none;
}

.q-table .q-tr--mini .q-field__control {
    min-height: 56px;
}

.q-table .q-tr .q-td {
    line-height: normal;
}

.q-tr.q-tr--mini td, .q-tr.q-tr--mini td:last-child {
    padding: 0;
}

.q-tr.q-tr--mini td.q-pl-none {
    padding-left: 0 !important;
}

.q-table .q-field__marginal {
    height: unset;
}

.q-select.self-center-arrow .q-field__append.q-field__marginal {
    align-self: center;
}

.fr-breadcrumb .fr-breadcrumb__list:empty:after {
    content: " ";
}

.q-tab {
    text-transform: none;
}

.q-layout__shadow::after {
    box-shadow: none;
}

.q-layout__section--marginal {
    color: inherit;
    background: white;
}

input.no-outline,
a.no-outline,
button.no-outline,
.q-table__control .q-field--highlighted {
    outline-color: #0a76f6 !important;
    outline-offset: 2px !important;
    outline-width: 2px !important;
}

input:focus-visible,
a:focus-visible,
button:focus-visible,
.q-table__control .q-field--highlighted {
    outline-style: solid !important;
}

.q-field__label {
    font-weight: 300;
}

.q-field.q-field--readonly span {
    font-weight: 300;
}

.q-field__inner {
    border-radius: .25rem .25rem 0 0;
}

.q-uploader .q-item--dense, .q-list--dense > .q-item {
    padding-left: 4px;
    padding-right: 4px;
}

.q-btn-group .q-btn--dense .q-btn__wrapper {
    padding: 0.285em 0.45em;
}

.enable-pointer-events .q-tree__node--disabled {
    pointer-events: auto;
}

/* Hide header and footer in iframe */
body.within-iframe.error header {
    display: none;
}

body.within-iframe.error footer {
    display: none;
}

.q-expansion-item .q-item__section--side {
    padding-right: 0;
}

/******** CSS SPECIFIQUE A CERTAINES PAGES *******/

.sv-callout {
    box-shadow: inset .25rem 0 0 0 var(--border-default-blue-france) !important;
    background: var(--background-contrast-grey);
}

.custom-question-badge {
    position: absolute;
    right: -10px;
    top: -7px;
}

.authz--locked-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 72px;
    background-image: url("../images/authz-locked.png");
    opacity: .7;
    background-position: center;
}

.authz--locked {
    background-size: 72px;
    background-image: url("../images/authz-locked.png") !important;
    opacity: .7;
    background-position: center;
}

.q-card .mon-annonce.q-card__section {
    border: solid var(--orange-terre-battue-main-645);
    border-width: 2px
}

.mon-annonce-encart {
    background-color: var(--yellow-moutarde-925-125);
}

.mon-annonce-encart::before {
    color: var(--orange-terre-battue-main-645);
}

/* A mettre sur une vu:table pour aggrandir la taille du filtre de recherche du top_left_slot */
.table-search-width-lg .q-table-control {
    width: 50%;
}

/** Menu */

nav .q-list, .nav .q-list {
    padding: 0;
}

nav a, .nav a {
    text-decoration: none;
}

.q-list-link .q-item:hover {
    background: lightgrey;
}

nav a.q-item, .nav a.q_item {
    color: grey;
}

.nav {
    cursor: pointer;
}

nav .q-list .q-item.active {
    background-color: #f6f6f6; /** grey-1 */
    color: var(--q-color-primary);
    border-right: 3px var(--q-color-primary) solid;
}

nav .q-list .q-item.active .q-item__section--main {
    font-weight: bold;
}

/** Actions columns */


.table-primary .q-btn, .table-secondary .q-btn {
    background: none;
}

/*fix cursor on <a> without href in q-editor*/
.q-editor a.q-btn {
    cursor: pointer;
}


.header-content {
    height: 55px;
    position: relative;
    z-index: 10;
}

.header-content.header-with-tabs {
    height: 100px;
}

.modal-header-content {
    height: 55px;
}

@media (min-width: 1500px) {
    .header-content.header-with-tabs {
        height: 100px;
    }
}

.mini .header-content {
    height: 43px;
}

.header-content > div, .modal-header-content > div {
    height: 100%;
}

.header-tabs a.active .q-btn__content {
    border-bottom: 3px solid white;
    padding-bottom: 0px;
}

.header-tabs a .q-btn__content {
    padding-bottom: 3px;
}

.header-tabs {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/** Planning **/
.calendar-container {
    position: relative
}

.my-event {
    width: 98%;
    position: absolute;
    font-size: 12px;
    align-items: flex-start
}

.orphan-event {
    width: 90px;
    position: absolute;
    margin-top: 0px;
    margin-left: 6px;
}

.full-width {
    left: 1%;
    width: 98% !important;
}

.left-side {
    left: 0;
    width: 49.75%
}

.right-side {
    left: 50.25%;
    width: 49.75%
}

.actions-event {
    position: absolute;
    top: 5px;
    right: 5px;
}

.bg-trh-nonPublie {
    background-color: #fcc63a !important;
}

.bg-trh-blocked {
    background-color: #b8b8b8 !important; /** grey */
}

.bg-trh-none {
    background-color: #fafafa !important; /** grey-1 */
}

.bg-trh-publie {
    background-color: #66a838 !important; /** green */
}

.bg-trh-planifie {
    background-color: #b2d39b !important; /** light-green */
}

.text-trh-nonPublie {
    color: #fcc63a !important;
}

.text-trh-blocked {
    color: #b8b8b8 !important; /** grey */
}

.text-trh-none {
    color: #fafafa !important; /** grey-1 */
}

.text-trh-publie {
    color: #66a838 !important; /** green */
}

.text-trh-planifie {
    color: #b2d39b !important; /** light-green */
}

.bg-ere-EN_COURS {
    background-color: #fcc63a !important;
}

.bg-ere-CONFIRME {
    background-color: #66a838 !important; /** green */
}

.bg-ere-RESERVE {
    background-color: #b2d39b !important; /** light-green */
}

.text-ere-EN_COURS {
    color: #fcc63a !important;
}

.text-ere-CONFIRME {
    color: #66a838 !important; /** green */
}

.text-ere-RESERVE {
    color: #b2d39b !important; /** light-green */
}


.publish-tabs {
    width: 883px;
}

.publish-tabs-panel {
    min-height: 110px;
}

.plage-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--q-color-dark);
}


/** tableaux */
table.auto-ellipsis tr:hover td, .q-table tr:hover th {
    overflow: visible;
    white-space: normal;
    /*height:auto;  /* just added this line */
}

table.auto-ellipsis td, .q-table th {
    max-width: 200px;
    overflow: visible;
    white-space: normal;
}

.q-table td:empty::after {
    content: '-' !important;
    background-color: inherit;
    position: inherit;
}

/** email editor **/

.mailTemplate input, .mailTemplate textarea, .convocationTemplate input, .convocationTemplate textarea {
    font-size: 16px;
}

.editMode .mailTemplate input, .editMode .mailTemplate textarea, .editMode .convocationTemplate input, .editMode .convocationTemplate textarea {
    outline: dashed 3px #DDD !important;
}

.mailTemplate label, .convocationTemplate label {
    padding: 0px;
}


.convocationTemplate .titre {
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
}

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

.convocationTemplate .titre input, .convocationTemplate .corpsMiddleBold input {
    font-weight: bold;
}

.convocationTemplate .titre input, .convocationTemplate .titre textarea,
.convocationTemplate .sousTitre input, .convocationTemplate .sousTitre textarea,
.convocationTemplate .piedDePage input, .convocationTemplate .piedDePage textarea {
    text-align: center;
}

.convocationTemplate .sousTitre {
    padding: 10px;
    text-align: center;
}

.convocationTemplate .signatureDroite input, .convocationTemplate .signatureDroite textarea,
.convocationTemplate .enteteDroite input, .convocationTemplate .enteteDroite textarea {
    text-align: right;
}

.convocationTemplate .sousTitreMariane img {
    height: 100px;
}

.mailTemplate .titre {
    background-color: #6a6af4;
    color: #ffffff;
    padding: 10px;
    text-align: center;
}

.mailTemplate .titre input {
    color: #ffffff;
    text-align: center;
}

.mailTemplate .annulerLibelle {
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    color: #000091;
    background-color: transparent;
    box-shadow: inset 0 0 0 1px #000091;
    padding: 10px;
}

.mailTemplate .annulerLibelle input {
    color: #000091;
    text-align: center;
}

.mailTemplate .confirmerLibelle {
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    color: #ffffff;
    background-color: #000091;
    padding: 10px;
}

.mailTemplate .confirmerLibelle input {
    color: #ffffff;
    text-align: center;
}

.mailTemplate .piedDePage, .convocationTemplate .piedDePage {
    text-align: center;
}


.champFusionHelp {
    font-size: 12px;
    line-height: 12px;
}

.champFusionHelp .q-list--dense li {
    min-height: 24px;
}

.champFusionHelp h6 {
    font-size: 14px;
    line-height: 14px;
    margin: 2px;
}

.q-editor--error {
    border-color: var(--q-color-negative) !important
}

.texte-riche h5 {
    margin: 1.2rem 0px 0.6rem 0px;
}

.texte-riche h6 {
    margin: 1rem 0px 0.5rem 0px;
}

.texte-riche blockquote, .texte-riche .blockquote {
    border-left: 4px solid #6b6af4;
    padding: 25px;
    margin: 0px;
    background-color: #eeeeee;
    font-family: "Century Gothic";
}

.vertical-align-top {
    vertical-align: top;
}

/*  Couleurs DSFR */

.red-marianne-main-472 {
    color: rgb(225, 0, 15);
}

.warning-main-525 {
    color: rgb(214, 77, 0);
}

.info-975 {
    color: rgb(244, 246, 255);
}

.info-main-525 {
    color: rgb(0, 120, 243);
}

.bg-info-975 {
    background-color: rgb(244, 246, 255);
}

.bg-grey-975 {
    background-color: #f6f6f6 !important;
}

.border-radius-15 {
    border-radius: 15px;
}

.no-touch .showButtonOnHover > .q-btn {
    opacity: 1 !important;
}

/* Css pour le plan du site */
#planDuSite ul {
    display: block;
}

#planDuSite .fr-menu {
    position: inherit;
    visibility: visible;
}

#planDuSite .fr-collapse {
    --collapse-max-height: 99999px;
    --collapse: 0;
}

#planDuSite .fr-nav__btn {
    cursor: inherit;
    background-color: transparent;
    color: var(--text-action-high-grey);
}

#planDuSite .fr-nav__btn[aria-expanded="true"]::after {
    transform: rotate(0deg);
}

#planDuSite .fr-nav__item {
    margin-left: 1.25rem;
}

.icon-navbar {
    margin-top: -2px;
    margin-left: -11px;
    margin-right: 1px;
}

.q-notification__progress {
    opacity: 0.5;
}

.overflow-break-anywhere {
    overflow-wrap: anywhere;
}

.h-100 {
    height: 100%;
}

th.circle_notifications {
    background-image: url('../images/icons/important.svg');
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    padding: 0;
}
td.circle_notifications {
    text-align: center;
}
td.circle_notifications .material-icons-outlined {
    font-size: 24px;
    color:var(--rm500);
}

.sm-icon {
    font-size: 24px;
}

[href] {
    background-image: none;
}