:root {
    --fa-blue: #007bff;
    --fa-blue-dark: #0056b3;
    --fa-blue-soft: #eaf3ff;

    --fa-bg: #f0f2f5;
    --fa-surface: rgba(255, 255, 255, .94);
    --fa-surface-solid: #ffffff;

    --fa-text: #1f2937;
    --fa-muted: #6b7280;
    --fa-border: rgba(15, 23, 42, .09);

    --fa-green: #198754;
    --fa-green-soft: #e8f7ee;

    --fa-red: #dc3545;
    --fa-red-soft: #feecec;

    --fa-orange: #f59e0b;
    --fa-orange-soft: #fff4d6;

    --fa-purple: #7c3aed;
    --fa-purple-soft: #f0eaff;

    --fa-shadow:
        0 8px 28px rgba(15, 23, 42, .08);

    --fa-shadow-soft:
        0 5px 18px rgba(15, 23, 42, .06);

    --fa-radius-xl: 20px;
    --fa-radius-lg: 16px;
    --fa-radius-md: 11px;
    --fa-radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    padding: 20px;

    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(0, 123, 255, .08),
            transparent 24%
        ),
        radial-gradient(
            circle at 90% 92%,
            rgba(0, 86, 179, .05),
            transparent 24%
        ),
        var(--fa-bg);

    color: var(--fa-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Text",
        "Helvetica Neue",
        Arial,
        sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 123, 255, .23);
    outline-offset: 2px;
}

/*
|--------------------------------------------------------------------------
| Blocage initial par authentification
|--------------------------------------------------------------------------
*/

html.auth-locked body {
    overflow: hidden;
}

html.auth-locked .fa-header,
html.auth-locked .fa-main {
    opacity: .42;
    filter: blur(2px);
    pointer-events: none;
    user-select: none;

    transition:
        opacity .2s ease,
        filter .2s ease;
}

html.denied .fa-header,
html.denied .fa-main {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.fa-header {
    width: min(100%, 1380px);
    margin: 0 auto 22px;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--fa-radius-xl);

    background: var(--fa-surface);

    box-shadow: var(--fa-shadow);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fa-header-left {
    min-width: 0;
}

.fa-header-left h1 {
    margin: 0;

    color: var(--fa-text);

    font-size: clamp(25px, 4vw, 36px);
    font-weight: 850;
    letter-spacing: -.03em;
}

.fa-header-sub {
    margin: 6px 0 0;

    color: var(--fa-muted);

    font-size: 14px;
    font-weight: 550;
    line-height: 1.45;
}

.fa-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-header {
    min-height: 42px;
    padding: 10px 15px;

    border: 1px solid rgba(0, 123, 255, .13);
    border-radius: 11px;

    background: var(--fa-blue-soft);
    color: var(--fa-blue-dark);

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.btn-header:hover {
    background: #dcecff;

    box-shadow:
        0 5px 14px rgba(0, 123, 255, .12);
}

.btn-header:active {
    transform: scale(.98);
}

/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.fa-main {
    width: min(100%, 1380px);
    margin: 0 auto;

    display: grid;
    gap: 20px;
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.fa-card {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: var(--fa-radius-xl);

    background: var(--fa-surface);

    box-shadow: var(--fa-shadow);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fa-card-header {
    min-height: 72px;
    padding: 17px 20px;

    display: flex;
    align-items: center;
    gap: 14px;

    border-bottom: 1px solid var(--fa-border);

    background:
        linear-gradient(
            180deg,
            rgba(250, 251, 253, .96),
            rgba(246, 248, 251, .88)
        );
}

.fa-card-header h2 {
    margin: 0;

    color: var(--fa-text);

    font-size: 19px;
    font-weight: 850;
}

.fa-card-subtitle {
    margin: 4px 0 0;

    color: var(--fa-muted);

    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
}

.fa-card-body {
    padding: 20px;
}

.fa-step-badge {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex: 0 0 36px;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            #1686ff 0%,
            var(--fa-blue) 100%
        );

    color: #fff;

    font-size: 15px;
    font-weight: 900;

    box-shadow:
        0 7px 18px rgba(0, 123, 255, .20),
        inset 0 1px 0 rgba(255, 255, 255, .30);
}

/*
|--------------------------------------------------------------------------
| Formulaires et filtres
|--------------------------------------------------------------------------
*/

.fa-filters {
    display: grid;
    gap: 14px;
}

.horaires-filters {
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(160px, .8fr)
        minmax(160px, .8fr)
        minmax(220px, 1.2fr)
        auto;

    align-items: end;
}

.fa-form-field {
    min-width: 0;
}

.fa-form-field label {
    display: block;
    margin-bottom: 7px;

    color: #475467;

    font-size: 13px;
    font-weight: 800;
}

.fa-form-field input,
.fa-form-field select,
.fa-form-field textarea {
    width: 100%;

    border: 1px solid #d7dde5;
    border-radius: var(--fa-radius-md);

    background: rgba(255, 255, 255, .97);
    color: var(--fa-text);

    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, .03);

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.fa-form-field input,
.fa-form-field select {
    min-height: 46px;
    padding: 10px 12px;
}

.fa-form-field textarea {
    min-height: 105px;
    padding: 12px 13px;

    resize: vertical;
    line-height: 1.45;
}

.fa-form-field input:hover,
.fa-form-field select:hover,
.fa-form-field textarea:hover {
    border-color: #bdc6d3;
}

.fa-form-field input:focus,
.fa-form-field select:focus,
.fa-form-field textarea:focus {
    border-color: var(--fa-blue);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(0, 123, 255, .09);
}

.fa-form-actions {
    display: flex;
    align-items: flex-end;
}

.fa-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 15px;
}

/*
|--------------------------------------------------------------------------
| Boutons
|--------------------------------------------------------------------------
*/

.btn-primary,
.btn-secondary,
.btn-warning {
    min-height: 44px;
    padding: 10px 17px;

    border: 0;
    border-radius: var(--fa-radius-md);

    font-size: 14px;
    font-weight: 850;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease,
        opacity .15s ease;
}

.btn-primary {
    background:
        linear-gradient(
            180deg,
            #1686ff 0%,
            var(--fa-blue) 100%
        );

    color: #fff;

    box-shadow:
        0 7px 18px rgba(0, 123, 255, .18),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-primary:hover:not(:disabled) {
    background:
        linear-gradient(
            180deg,
            #0875eb 0%,
            var(--fa-blue-dark) 100%
        );

    box-shadow:
        0 9px 22px rgba(0, 86, 179, .23);
}

.btn-secondary {
    border: 1px solid #d8dee7;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f3f5f8 100%
        );

    color: #374151;

    box-shadow: var(--fa-shadow-soft);
}

.btn-secondary:hover {
    background: #fff;

    border-color: #c8d0dc;
}

.btn-warning {
    background:
        linear-gradient(
            180deg,
            #f9b42b 0%,
            var(--fa-orange) 100%
        );

    color: #fff;

    box-shadow:
        0 7px 18px rgba(245, 158, 11, .20);
}

.btn-warning:hover {
    background: #e89100;
}

.btn-primary:active,
.btn-secondary:active,
.btn-warning:active {
    transform: scale(.98);
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

/*
|--------------------------------------------------------------------------
| Pauses globales
|--------------------------------------------------------------------------
*/

.pauses-globales {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pause-card {
    padding: 16px;

    border: 1px solid var(--fa-border);
    border-radius: var(--fa-radius-lg);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .98),
            rgba(247, 249, 252, .94)
        );

    box-shadow: var(--fa-shadow-soft);
}

.pause-card-title {
    margin-bottom: 11px;

    color: #344054;

    font-size: 15px;
    font-weight: 850;
}

.segmented-control {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    padding: 4px;

    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 12px;

    background: #e9edf2;
}

.segment-btn {
    min-height: 40px;
    padding: 8px 12px;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: #5c6573;

    font-size: 13px;
    font-weight: 850;

    cursor: pointer;

    transition:
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.segment-btn:hover {
    color: #313843;
}

.segment-btn:active {
    transform: scale(.985);
}

.segment-btn.selected {
    background: #fff;
    color: var(--fa-blue-dark);

    box-shadow:
        0 3px 10px rgba(15, 23, 42, .10),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.pause-information {
    margin-top: 14px;
    padding: 13px 15px;

    border: 1px solid rgba(0, 123, 255, .10);
    border-radius: 12px;

    background: var(--fa-blue-soft);
    color: #315b89;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Rapport header
|--------------------------------------------------------------------------
*/

.rapport-header {
    justify-content: space-between;
    gap: 18px;
}

.rapport-header-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rapport-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

/*
|--------------------------------------------------------------------------
| Rapport vide / statut
|--------------------------------------------------------------------------
*/

.rapport-statut,
.rapport-vide {
    min-height: 190px;
    padding: 30px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    border: 1px dashed #ccd3dd;
    border-radius: var(--fa-radius-lg);

    background:
        rgba(247, 249, 252, .84);

    color: #596273;

    text-align: left;
}

.rapport-statut-icone,
.rapport-vide-icone {
    font-size: 40px;
}

.rapport-statut strong {
    color: #344054;
    font-size: 17px;
}

.rapport-statut p,
.rapport-vide p {
    margin: 6px 0 0;

    color: var(--fa-muted);

    font-size: 14px;
    line-height: 1.45;
}

.rapport-vide {
    flex-direction: column;
    text-align: center;
}

.rapport-vide h3 {
    margin: 5px 0 0;

    color: #344054;
}

/*
|--------------------------------------------------------------------------
| Résumé
|--------------------------------------------------------------------------
*/

.resume-rapport {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 13px;

    margin-bottom: 18px;
}

.resume-card {
    min-height: 112px;
    padding: 15px;

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

    border: 1px solid var(--fa-border);
    border-radius: var(--fa-radius-lg);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .98),
            rgba(247, 249, 252, .93)
        );

    box-shadow: var(--fa-shadow-soft);
}

.resume-label {
    color: var(--fa-muted);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.resume-valeur {
    margin-top: 6px;

    color: #202733;

    font-size: 28px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
}

.resume-decimal {
    margin-top: 2px;

    color: var(--fa-blue-dark);

    font-size: 13px;
    font-weight: 800;
}

.resume-anomalies {
    border-color: rgba(220, 53, 69, .14);

    background:
        linear-gradient(
            180deg,
            #fffafa,
            var(--fa-red-soft)
        );
}

.resume-anomalies .resume-valeur {
    color: #b42318;
}

/*
|--------------------------------------------------------------------------
| Alerte anomalies
|--------------------------------------------------------------------------
*/
.alerte-anomalies[hidden],
.rapport-statut[hidden],
.rapport-vide[hidden],
.resume-rapport[hidden],
.fa-table-wrap[hidden] {
    display: none !important;
}

.alerte-anomalies {
    margin-bottom: 18px;
    padding: 15px 16px;

    display: grid;
    grid-template-columns:
        auto 1fr auto;
    align-items: center;
    gap: 14px;

    border: 1px solid rgba(245, 158, 11, .22);
    border-radius: var(--fa-radius-lg);

    background:
        linear-gradient(
            180deg,
            #fffaf0,
            var(--fa-orange-soft)
        );

    box-shadow:
        0 6px 18px rgba(245, 158, 11, .08);
}

.alerte-anomalies-icone {
    font-size: 30px;
}

.alerte-anomalies-contenu strong {
    color: #8b5b00;

    font-size: 15px;
}

.alerte-anomalies-contenu p {
    margin: 4px 0 0;

    color: #8b6b2a;

    font-size: 13px;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| Tableau
|--------------------------------------------------------------------------
*/

.fa-table-wrap {
    width: 100%;
    overflow-x: auto;

    border: 1px solid var(--fa-border);
    border-radius: var(--fa-radius-lg);

    background: #fff;
}

#tableRapport {
    width: 100%;
    min-width: 1180px;

    border-collapse: collapse;
}

#tableRapport th,
#tableRapport td {
    padding: 12px 13px;

    border-bottom: 1px solid #edf0f4;

    text-align: left;
    vertical-align: middle;
}

#tableRapport th {
    position: sticky;
    top: 0;
    z-index: 2;

    background: #f6f8fa;
    color: var(--fa-muted);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

#tableRapport tbody tr {
    transition:
        background .14s ease;
}

#tableRapport tbody tr:hover {
    background: #f9fbfd;
}

#tableRapport tbody tr:last-child td {
    border-bottom: 0;
}

#tableRapport td {
    color: #344054;

    font-size: 13px;
}

.cell-employe {
    min-width: 170px;

    color: #202733;

    font-weight: 850;
}

.cell-date,
.cell-heure,
.cell-total,
.cell-decimal {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cell-heure {
    font-weight: 750;
}

.cell-total {
    color: #202733;

    font-size: 15px;
    font-weight: 900;
}

.cell-decimal {
    color: var(--fa-blue-dark);

    font-weight: 850;
}

.pause-detail {
    display: grid;
    gap: 3px;
}

.pause-detail-time {
    font-weight: 750;
    white-space: nowrap;
}

.pause-detail-duree {
    color: var(--fa-muted);

    font-size: 11px;
    font-weight: 700;
}

.heures-supplementaires {
    color: #8a3ffc;

    font-weight: 900;
}

.badge-statut {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.badge-ok {
    background: var(--fa-green-soft);
    color: #13713c;
}

.badge-anomalie {
    background: var(--fa-red-soft);
    color: #b42318;
}

.badge-incomplet {
    background: var(--fa-orange-soft);
    color: #9a6700;
}

.actions-ligne {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action {
    min-width: 36px;
    min-height: 34px;

    display: inline-grid;
    place-items: center;

    border: 0;
    border-radius: 9px;

    background: var(--fa-blue-soft);
    color: var(--fa-blue-dark);

    font-size: 15px;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.btn-action:hover {
    background: #dcecff;
}

.btn-action:active {
    transform: scale(.96);
}

/*
|--------------------------------------------------------------------------
| Modales
|--------------------------------------------------------------------------
*/

.fa-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, .50);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fa-modal[hidden] {
    display: none !important;
}

.fa-modal-dialog {
    width: min(100%, 620px);
    max-height: 92vh;
    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 20px;

    background: rgba(255, 255, 255, .97);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .28);

    animation: modalAppear .22s ease;
}

.modal-large {
    width: min(100%, 900px);
}

.fa-modal-header,
.fa-modal-footer {
    padding: 16px 18px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.fa-modal-header {
    justify-content: space-between;

    border-bottom: 1px solid var(--fa-border);
}

.fa-modal-footer {
    justify-content: flex-end;
    flex-wrap: wrap;

    border-top: 1px solid var(--fa-border);

    background: #f8fafc;
}

.fa-modal-header h3 {
    margin: 0;

    color: #202733;

    font-size: 20px;
    font-weight: 850;
}

.fa-modal-body {
    padding: 18px;
}

.fa-modal-close {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #3c4450;

    font-size: 18px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.fa-modal-close:hover {
    background: #e2e6ec;
}

.fa-modal-close:active {
    transform: scale(.95);
}

/*
|--------------------------------------------------------------------------
| Liste anomalies
|--------------------------------------------------------------------------
*/

.liste-anomalies {
    display: grid;
    gap: 11px;
}

.anomalie-item {
    padding: 14px;

    display: grid;
    grid-template-columns:
        auto 1fr auto;
    align-items: center;
    gap: 12px;

    border: 1px solid rgba(220, 53, 69, .13);
    border-radius: 13px;

    background: #fff8f8;
}

.anomalie-item-icone {
    font-size: 25px;
}

.anomalie-item-titre {
    color: #8f1d29;

    font-size: 14px;
    font-weight: 850;
}

.anomalie-item-detail {
    margin-top: 3px;

    color: #7a555a;

    font-size: 12px;
    line-height: 1.4;
}

.anomalie-item-action {
    color: var(--fa-blue-dark);

    font-size: 12px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Pointage manuel
|--------------------------------------------------------------------------
*/

.info-manuel {
    margin-top: 15px;
    padding: 13px 14px;

    border: 1px solid rgba(0, 123, 255, .11);
    border-radius: 12px;

    background: var(--fa-blue-soft);
    color: #315b89;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}
/*
|--------------------------------------------------------------------------
| Importation dactylaire
|--------------------------------------------------------------------------
*/

.fa-help-text {
    display: block;
    margin-top: 6px;

    color: var(--fa-muted);

    font-size: 12px;
    line-height: 1.4;
}

.import-dactilar-selection {
    margin-bottom: 18px;
}

.import-dactilar-preview {
    margin-top: 18px;
}

.import-dactilar-preview[hidden] {
    display: none !important;
}

.import-dactilar-groupes {
    display: grid;
    gap: 12px;

    margin-top: 14px;
}

.import-dactilar-groupe {
    padding: 14px;

    border: 1px solid var(--fa-border);
    border-radius: var(--fa-radius-lg);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );

    box-shadow: var(--fa-shadow-soft);
}

.import-dactilar-groupe-anomalie {
    border-color:
        rgba(220, 53, 69, .18);

    background:
        linear-gradient(
            180deg,
            #fffafa,
            var(--fa-red-soft)
        );
}

.import-dactilar-groupe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 11px;
}

.import-dactilar-groupe-header > div {
    min-width: 0;

    display: grid;
    gap: 3px;
}

.import-dactilar-groupe-header strong {
    color: var(--fa-text);

    font-size: 14px;
    font-weight: 850;
}

.import-dactilar-groupe-header span {
    color: var(--fa-muted);

    font-size: 12px;
    font-weight: 650;
}

.import-dactilar-anomalie {
    margin-bottom: 11px;
    padding: 9px 11px;

    border-radius: 9px;

    background:
        rgba(220, 53, 69, .08);

    color: #a72b37;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.import-dactilar-pointages {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(130px, 1fr)
        );

    gap: 8px;
}

.import-dactilar-pointage {
    min-width: 0;
    padding: 10px;

    display: grid;
    gap: 3px;

    border: 1px solid #dde3eb;
    border-radius: 10px;

    background: #fff;
}

.import-dactilar-pointage strong {
    color: #202733;

    font-size: 16px;
    font-weight: 900;
    font-variant-numeric:
        tabular-nums;
}

.import-dactilar-pointage span {
    color: #475467;

    font-size: 12px;
    font-weight: 750;
}

.import-dactilar-pointage small {
    color: var(--fa-green);

    font-size: 11px;
    font-weight: 800;
}

.import-dactilar-pointage[
    data-statut="deja_importe"
] small,
.import-dactilar-pointage[
    data-statut="doublon_pointage"
] small {
    color: var(--fa-muted);
}

.import-dactilar-pointage[
    data-statut="deja_importe"
],
.import-dactilar-pointage[
    data-statut="doublon_pointage"
] {
    opacity: .62;
    background: #f6f7f9;
}

/*
|--------------------------------------------------------------------------
| Toast
|--------------------------------------------------------------------------
*/

.fa-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 3000;

    min-width: 230px;
    max-width: min(90vw, 500px);

    padding: 13px 17px;

    transform: translateX(-50%);

    border-radius: 13px;

    background: #1f2937;
    color: #fff;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, .25);

    font-size: 14px;
    font-weight: 750;
    text-align: center;
}

.fa-toast[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Animations
|--------------------------------------------------------------------------
*/

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*
|--------------------------------------------------------------------------
| Tablette
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {
    .horaires-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .fa-form-actions {
        align-items: stretch;
    }

    .fa-form-actions .btn-primary {
        width: 100%;
    }

    .resume-rapport {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    body {
        padding: 12px;
    }

    .fa-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .fa-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-header {
        flex: 1;
    }

    .pauses-globales {
        grid-template-columns: 1fr;
    }

    .rapport-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rapport-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rapport-actions button {
        flex: 1;
    }

    .alerte-anomalies {
        grid-template-columns:
            auto 1fr;
    }

    .alerte-anomalies .btn-warning {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 620px) {
    body {
        padding: 8px;
    }

    .fa-header,
    .fa-card {
        border-radius: 15px;
    }

    .fa-header {
        padding: 16px;
    }

    .fa-header-right {
        flex-direction: column;
    }

    .btn-header {
        width: 100%;
    }

    .fa-card-header,
    .fa-card-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .horaires-filters,
    .fa-form-grid,
    .resume-rapport {
        grid-template-columns: 1fr;
    }

    .rapport-header-title {
        align-items: flex-start;
    }

    .rapport-actions {
        flex-direction: column;
    }

    .rapport-actions button {
        width: 100%;
    }

    .alerte-anomalies {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .alerte-anomalies-icone {
        margin: 0 auto;
    }

    .rapport-statut {
        flex-direction: column;
        text-align: center;
    }

    .fa-modal {
        padding: 8px;
    }

    .fa-modal-dialog {
        max-height: 96vh;
        border-radius: 16px;
    }

    .fa-modal-footer {
        flex-direction: column;
    }

    .fa-modal-footer button {
        width: 100%;
    }

    .anomalie-item {
        grid-template-columns:
            auto 1fr;
    }

    .anomalie-item-action {
        grid-column: 1 / -1;
        padding-left: 37px;
    }

        .import-dactilar-groupe-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .import-dactilar-pointages {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Accessibilité
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/* =========================================================
   Traitement individuel des pauses
   ========================================================= */

.pause-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

button.pause-detail {
    width: 100%;
    margin: 0;
    padding: 8px 10px;

    border: 1px solid transparent;
    border-radius: 10px;

    font: inherit;
    text-align: left;

    transition:
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.pause-cliquable {
    cursor: pointer;
}

.pause-cliquable:hover {
    transform: translateY(-1px);
    box-shadow:
        0 3px 10px rgba(15, 23, 42, .08);
}

.pause-detail-time {
    font-weight: 750;
}

.pause-detail-duree {
    color: #6b7280;
    font-size: 12px;
}


/* Règle habituelle */

.pause-heritee {
    background: #f5f6f8;
    border-color: #e5e7eb;
}

.pause-heritee.pause-payee {
    background: #f1f8f4;
    border-color: #d9eadf;
}

.pause-heritee.pause-non-payee {
    background: #f4f4f5;
    border-color: #dedfe2;
}


/* Exception RH */

.pause-override {
    border-width: 2px;
}

.pause-override.pause-payee {
    background: #e8f7ee;
    border-color: #75bf91;
}

.pause-override.pause-non-payee {
    background: #fff0f0;
    border-color: #e5a3a3;
}


/* Libellé */

.pause-traitement {
    margin-top: 2px;

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.pause-payee .pause-traitement {
    color: #13713c;
}

.pause-non-payee .pause-traitement {
    color: #9b2c2c;
}

.pause-traitement-source {
    color: #8a9099;
    font-size: 10px;
    font-weight: 650;
}

.pause-override .pause-traitement-source {
    color: #5f6670;
    font-weight: 800;
}