/**
 * Bouton pour retirer une ligne du tableau
 * + bouton pour restaurer toutes les lignes
 */
.fe-rea .fe-rea-delete {
    background: transparent;
    border: 1px solid #dcdcde;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #a00;
    border-radius: 2px;
    cursor: pointer;
}

.fe-rea .fe-rea-delete:hover {
    background: #fbeaea;
}

.fe-rea .fe-rea-restore-all {
    background: transparent;
    border: 1px solid #dcdcde;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #065f46;
    border-radius: 2px;
    cursor: pointer;
}

/**
 * Headings
 */
.fe-rea h4 {
    color: #123257;
    font-size: 20px;
}

/**
 * Utils
 */
.fe-rea .col-number {
    text-align: right;
}

.fe-rea input[type=number] {
    max-width: 80px;
}

/**
 * Notices
 */
.fe-rea-notice {
    padding: 8px;
    max-width: 600px;
    margin: 10px auto;
}

.fe-rea-notice.fe-rea-notice-success {
    border: 1px solid #c3e6cb;
    background: #d4edda;
    color: #155724;
}

.fe-rea-notice.fe-rea-notice-error {
    border: 1px solid #f5c6cb;
    background: #f8d7da;
    color: #721c24;
}

/**
 * Upload
 */
.fe-rea-upload-container {
    padding: 20px 0;
    margin: 10px auto;
    border: 1px dashed #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 500px;
}

.fe-rea-upload-container > .loader-container {
    text-align: center;
}

.fe-rea-upload-container > .loader-container > .loader {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 20px auto;
    border-top: 4px solid #65c1be;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.fe-rea-upload-container > .loader-container > .loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border-bottom: 4px solid #123257;
    border-left: 4px solid transparent;
}

.fe-rea-upload-container > .upload-container {
    text-align: center;
    padding-top: 10px;
}

.fe-rea-upload-container > .upload-container .fe-rea-hint {
    font-size: 14px;
    color: #666;
    margin: 6px 0;
}


@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/**
 * Table results
 */
.fe-rea-table-wrapper {
    display: none;
    margin-top: 10px;
    overflow: auto;
}

.fe-rea-table-wrapper > table {
    font-size: 13px;
    line-height: 1.3;
    width: 100%;
}

.fe-rea-table-wrapper > table th,
.fe-rea-table-wrapper > table td {
    padding: 6px 8px;
    vertical-align: middle;
}

.fe-rea-table-wrapper > table th {
    font-weight: 600;
    background-color: #f0f0f1;
}

.fe-rea-table-wrapper > table tfoot th {
    background-color: #fafafa;
    font-weight: 600;
}

.fe-rea-table-wrapper > table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

.fe-rea-calculated-container {
    text-align: right;
}

th[data-code="dateVente"] {
    min-width: 70px;
}

th[data-code="removeAction"] {
    min-width: 52px;
}

/**
 * Filters form
 */
.fe-rea-filters-wrapper {
    margin: 10px 0 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 13px;
}

.fe-rea-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    background-color: rgba(101, 193, 190, .1);
    padding: 5px;
}

.fe-rea-filters-form {
    font-size: 0.7rem;
    line-height: 2rem;
    padding: 10px;
}

.fe-rea-filter {
    margin-bottom: 10px;
}

.fe-rea-choices label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: .15rem .6rem .15rem 0;
    white-space: nowrap;
}

.fe-rea-filters-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 1rem;
}
