/* Historique des envois */
.history-list-wrapper {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.history-list-wrapper::-webkit-scrollbar { width: 6px; }
.history-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
}

.history-entry {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.history-entry:hover {
    border-color: var(--color-primary);
    background: rgba(15, 23, 42, 0.5);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-date {
    font-weight: 600;
    font-size: 0.95rem;
}

.history-total {
    color: var(--color-primary);
    font-weight: 700;
}

.history-details {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.history-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

/* Carte de batch */
.batch-history-card {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.batch-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(var(--color-primary-rgb), 0.05);
}

.batch-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.batch-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.batch-header-right {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
}

.batch-total {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.toggle-batch-icon {
    transition: transform 0.3s;
    opacity: 0.5;
}

.batch-details {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 0;
}

.batch-details.hidden {
    display: none;
}

.batch-clients-list {
    max-height: 250px;
    overflow-y: auto;
}

.batch-client-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.batch-client-name {
    color: #fff;
    font-weight: 500;
}

.batch-client-name i {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-right: 5px;
}

.batch-client-total {
    color: var(--color-text-muted);
    font-family: monospace;
}

.batch-footer-actions {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.batch-footer-left {
    display: flex;
    gap: 8px;
}

.batch-status-sent {
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
