/* ═══════════════════════════════════════════════════════════
   V5.10.e — Acquittement de masse (bouton sidebar + modale)
   ═══════════════════════════════════════════════════════════ */

/* ─── Bouton dans la sidebar : ambre clair (avertissement doux) ─── */
.riders-sidebar .btn-warning-soft {
    background: #fff3cd !important;
    color: #b56b00 !important;
    border-color: #f5d99a !important;
}
.riders-sidebar .btn-warning-soft:hover {
    background: #ffe69c !important;
    border-color: #e6a932 !important;
    color: #8a5200 !important;
}

/* ─── Modale (utilise un layer modal "léger" indépendant) ─── */
.ack-all-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ack-all-modal.hidden {
    display: none;
}

.ack-all-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    animation: ack-all-fade-in 0.15s ease-out;
}

@keyframes ack-all-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ack-all-modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.30);
    width: 90%;
    max-width: 520px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    animation: ack-all-zoom-in 0.18s ease-out;
}

@keyframes ack-all-zoom-in {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ack-all-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eef1f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ack-all-modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
}

.ack-all-modal-header h4 .fa {
    color: #f39c12;
    font-size: 18px;
}

.ack-all-modal-close {
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #95a5a6;
    padding: 0 4px;
    transition: color 0.15s;
}
.ack-all-modal-close:hover {
    color: #2c3e50;
}

.ack-all-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
}

/* Bannière d'avertissement en tête de body */
.ack-all-warning {
    background: #fff8eb;
    color: #8a5200;
    border: 1px solid #f5d99a;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.ack-all-warning .fa {
    color: #f39c12;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Résumé : grand chiffre + scope */
.ack-all-summary {
    text-align: center;
    margin: 8px 0 18px;
}
.ack-all-total {
    display: inline-block;
    font-size: 42px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
}
.ack-all-total-label {
    font-size: 14px;
    color: #555;
    margin-left: 6px;
}
.ack-all-scope {
    font-size: 12px;
    color: #7b8794;
    margin-top: 6px;
}
.ack-all-over-limit {
    color: #c0392b;
    font-size: 15px;
    display: block;
    padding: 12px;
    background: #fdecea;
    border-radius: 6px;
}

/* Détail by-week + by-label */
.ack-all-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 4px;
}
.ack-all-detail-section {
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    padding: 10px 12px;
}
.ack-all-detail-section strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7785;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.ack-all-detail-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ack-all-detail-section li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
    color: #2c3e50;
    border-bottom: 1px dashed #eef1f4;
}
.ack-all-detail-section li:last-child {
    border-bottom: none;
}
.ack-all-key {
    font-weight: 500;
}
.ack-all-val {
    color: #7b8794;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Status (succès/erreur/warning) */
.ack-all-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 12.5px;
    min-height: 0;
}
.ack-all-status:empty {
    display: none;
}
.ack-all-status.error {
    background: #fdecea;
    color: #b94545;
    border: 1px solid #f5c2bc;
}
.ack-all-status.warning {
    background: #fff8eb;
    color: #8a5200;
    border: 1px solid #f5d99a;
}
.ack-all-status.success {
    background: #e8f8f0;
    color: #186a3b;
    border: 1px solid #b6e0c8;
}

/* Footer avec boutons */
.ack-all-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #eef1f4;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.ack-all-modal-footer .btn {
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.ack-all-modal-footer .btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .ack-all-detail {
        grid-template-columns: 1fr;
    }
    .ack-all-modal-content {
        max-width: 95%;
        max-height: 92vh;
    }
}