/**
 * Styles frontend pour les reçus fiscaux
 */

/* ===== TABLEAU REÇUS FISCAUX ===== */
.unsa-fiscal-receipts-list {
    margin: 20px 0;
    padding: 0;
}

.unsa-fiscal-receipts-list h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.unsa-receipts-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    table-layout: fixed;
}

.unsa-receipts-table thead {
    background: linear-gradient(135deg, #8e2f89 0%, #ea5199 100%);
}

.unsa-receipts-table thead th {
    color: #fff !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 10px;
    text-align: center;
    border: none;
    vertical-align: middle;
}

/* Largeurs des colonnes */
.unsa-receipts-table th:nth-child(1),
.unsa-receipts-table td:nth-child(1) {
    width: 18%;
}

.unsa-receipts-table th:nth-child(2),
.unsa-receipts-table td:nth-child(2) {
    width: 22%;
}

.unsa-receipts-table th:nth-child(3),
.unsa-receipts-table td:nth-child(3) {
    width: 15%;
}

.unsa-receipts-table th:nth-child(4),
.unsa-receipts-table td:nth-child(4) {
    width: 15%;
}

.unsa-receipts-table th:nth-child(5),
.unsa-receipts-table td:nth-child(5) {
    width: 30%;
}

.unsa-receipts-table tbody tr {
    background: #fff;
    transition: background 0.2s ease;
}

.unsa-receipts-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.unsa-receipts-table tbody tr:hover {
    background: #fce4ec;
}

.unsa-receipts-table tbody td {
    padding: 14px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

/* Bouton Générer */
.unsa-receipt-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #8e2f89 0%, #ea5199 100%);
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(142, 47, 137, 0.3);
    white-space: nowrap;
}

.unsa-receipt-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 47, 137, 0.4);
}

.unsa-receipt-generate-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Bouton Télécharger */
.unsa-receipt-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
    white-space: nowrap;
}

.unsa-receipt-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
    color: #fff !important;
    text-decoration: none;
}

.unsa-receipt-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Info message */
.unsa-receipts-info {
    background: linear-gradient(135deg, #fee5e6 0%, #fee5e6 100%);
    border-left: 4px solid #ea5199;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 15px 0 0 0;
}

.unsa-receipts-info small {
    color: #0093DA;
    font-size: 13px;
    line-height: 1.5;
    display: block;
}

/* Statut en attente */
.unsa-receipt-pending {
    color: #f57c00;
    font-weight: 500;
    font-style: italic;
    display: block;
    text-align: center;
}

/* Statut bloqué */
.unsa-receipt-locked {
    color: #757575;
    font-style: italic;
    font-size: 13px;
    display: block;
    text-align: center;
}

/* Message "Aucune adhésion" */
.unsa-no-receipts {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Message connexion requise */
.unsa-login-required {
    color: #c62828;
    padding: 15px;
    background: #ffebee;
    border-radius: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .unsa-receipts-table {
        table-layout: auto;
    }

    .unsa-receipts-table thead {
        display: none;
    }

    .unsa-receipts-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .unsa-receipts-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        width: 100% !important;
    }

    .unsa-receipts-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #ea5199;
        text-align: left;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .unsa-receipts-table tbody td:last-child {
        justify-content: center;
        border-bottom: none;
        padding: 15px;
    }

    .unsa-receipts-table tbody td:last-child:before {
        display: none;
    }
}