﻿.emails {
    padding: 18px;
}

.emails-head {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.emails-search {
    max-width: 380px;
}

.emails-table-wrap {
    overflow: auto;
    border: var(--border);
    border-radius: 12px;
    background: var(--backgroundBoutonMenuDashboard);
}

.emails-inline {
    display: inline;
    margin: 0;
}

.emails-toolbar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.emails-stats {
    border: var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--backgroundBoutonMenuDashboard);
    display: grid;
    gap: 6px;
}

.emails-form .form-row {
    margin-bottom: 14px;
}

.emails-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.emails-hint {
    margin-top: 6px;
    color: var(--footer);
    font-size: 13px;
}

.emails-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .emails-head {
        flex-direction: column;
        align-items: stretch;
    }

    .emails-search {
        max-width: 100%;
        width: 100%;
    }

    .emails-grid {
        grid-template-columns: 1fr;
    }
}

.emails-error {
    max-width: 420px;
}

.emails-error-details summary {
    cursor: pointer;
}

.emails-error-details pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--bg);
    border: var(--border);
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
}

.muted {
    color: var(--footer);
}

/* Petit repère visuel selon status */
tr.log-failed td:first-child code {
    border-bottom: 1px solid var(--color1);
}

tr.log-sent td:first-child code {
    border-bottom: 1px solid var(--color2);
}

.emails-actions-col {
    width: 260px;
    text-align: left;
}

.emails-actions-cell {
    text-align: right;
    white-space: nowrap;
}
