/* Global */

.lib-display-none {
    display: none;
}

/* Lien */

a.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

/* Form */

form .required::after {
    content: " *";
    color: red;
}

form input[type="radio"]+label.required::after,
form input[type="checkbox"]+label.required::after {
    content: "";
}

.lib-form-input-xs {
    width: 10%;
}

.lib-form-input-sm {
    width: 25%;
}

.lib-form-input-md {
    width: 50%;
}

.lib-form-input-lg {
    width: 75%;
}

.lib-form-input-xl {
    width: 90%;
}

.lib-form-input-xxl {
    width: 100%;
}

.lib-form-input-date {
    width: 11em;
}

.lib-form-group-ml {
    margin-left: 2em;
}

.fr-fieldset .inline {
    display: flex;
    flex-wrap: wrap;
}

/* Table */

.lib-table-action-buttons {
    white-space: nowrap;
}

.lib-table-log-activity {
    margin: 0px;
    padding: 0px;
}

/* Exceptions */

.fr-breadcrumb {
    margin-bottom: 0rem;
}

.custom-lg-100 .fr-container,
.custom-lg-100 .fr-container-lg,
.custom-lg-100 .fr-container-md,
.custom-lg-100 .fr-container-sm {
    max-width: 100%;
}

/* Print */

.page-break {
    display: none;
    border: 1px dashed green;
    margin: 1rem 0;
    padding: 1rem;
    text-align: center;
    color: green;
    font-size: 0.9rem;
}

.page-break::before {
    content: "Saut de page";
}

@media print {
    .page-break {
        display: block;
        border: none;
        margin: 0;
        padding: 0;
        color: transparent;
        font-size: 0;
        page-break-after: always;
        /* ancienne syntaxe */
        break-after: page;
        /* syntaxe moderne */
    }
}

@media print {
    .no-print {
        display: none !important;
    }
}

/* Dropdown */

.lib-dropdown-div {
    position: relative;
}

.lib-dropdown-menu {
    position: absolute;
    top: calc(100% - 0.0rem);
    right: 0;
    min-width: 300px;
    text-align: left;
}

.lib-dropdown-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .25rem 1rem;
    font-weight: 700;
}

.lib-dropdown-text {
    display: block;
    padding: 0.8rem;
}

.lib-dropdown-button {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: left;
    margin: auto;
    padding: .5rem 1rem;
    border-top: 1px solid var(--background-contrast-grey);
    --text-decoration: underline;
}

/* Flex elements */

.lib-flex-column {
    display: flex !important;
    flex-direction: row !important;
    align-items: start !important;
    justify-content: start !important;
    column-gap: 2rem;
}

.lib-flex-column.lib-flex-wrap {
    flex-wrap: wrap;
}

.lib-flex-column .lib-flex-basis {
    flex-basis: 100%;
}

.lib-flex-column .lib-flex-1 {
    flex: 1;
}

.lib-flex-column .lib-flex-2 {
    flex: 2;
}

.lib-flex-column .lib-flex-3 {
    flex: 3;
}

.lib-flex-column .lib-flex-4 {
    flex: 4;
}

.lib-flex-column .lib-flex-5 {
    flex: 5;
}

.lib-flex-column .lib-flex-auto {
    flex: auto;
}
