.paiements-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.paiements-header {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.paiements-header h2 {
    color: #85AB76;
    font-size: 1.75rem;
    margin: 0;
    font-weight: 600;
}

.paiements-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-label {
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.summary-value {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.paiements-date-filter {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-filter-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #4a5568;
}

.date-filter-group input[type="date"] {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.date-filter-group input[type="date"]:focus {
    border-color: #85AB76;
    outline: none;
}

#filter-paiements {
    margin-left: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    background-color: #85AB76;
    color: #fff;
    transition: all 0.2s ease;
}

#filter-paiements:hover {
    background-color: #749565;
    transform: translateY(-1px);
}

#filter-paiements:active {
    transform: translateY(0);
}

.stripe-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.stripe-paiements-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

.stripe-paiements-table th,
.stripe-paiements-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(175, 111, 71, 0.2);
}

.stripe-paiements-table th {
    background-color: #85AB76;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stripe-paiements-table th:first-child {
    border-top-left-radius: 12px;
}

.stripe-paiements-table th:last-child {
    border-top-right-radius: 12px;
}

.stripe-paiements-table td {
    color: #2d3748;
    background: #fff;
    font-size: 0.875rem;
}

.stripe-paiements-table tr:last-child td {
    border-bottom: none;
}

.stripe-paiements-table tr:hover td {
    background-color: #f8fafc;
}

.stripe-paiements-table td:nth-child(4),
.stripe-paiements-table td:nth-child(5),
.stripe-paiements-table td:nth-child(6),
.stripe-paiements-table td:nth-child(7) {
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
}

.loading,
.error,
.no-data {
    text-align: center;
    padding: 3rem !important;
    color: #718096;
    font-style: italic;
}

.error {
    color: #A50C0C;
    font-style: normal;
    font-weight: 500;
}

.totals-row th {
    font-weight: 700;
    background-color: #AF6F47 !important;
    color: #fff;
    border-bottom: none;
    text-align: right;
}

.totals-row th:first-child {
    border-radius: 0;
}

.totals-row th:last-child {
    border-radius: 0;
}

@media (max-width: 1024px) {
    .paiements-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .paiements-summary {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .paiements-date-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    #filter-paiements {
        margin-left: 0;
        width: 100%;
    }

    .stripe-table-container {
        border-radius: 0;
        margin: 0 -1rem;
    }

    .stripe-paiements-table {
        font-size: 0.75rem;
    }

    .stripe-paiements-table th,
    .stripe-paiements-table td {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .paiements-container {
        padding: 0 0.5rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-value {
        font-size: 1.25rem;
    }
}