/* Estilos Responsivos para o Painel de Recompensas */
.wcr-user-panel {
    font-family: sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.wcr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.wcr-header-info {
    flex: 1;
    min-width: 280px;
}

.wcr-header-balance {
    text-align: right;
    min-width: 200px;
}

.wcr-balance-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #28a745;
    line-height: 1;
}

.wcr-balance-label {
    font-size: 0.9em;
    color: #666;
}

.wcr-balance-info {
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    max-width: 250px;
    margin-left: auto;
}

.wcr-coupon-item {
    background: #e7f3ff;
    border: 1px dashed #007bff;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.wcr-admin-quick-add {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wcr-admin-quick-add form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: end;
}

/* Tabela Responsiva */
.wcr-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wcr-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wcr-table th, .wcr-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wcr-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Media Queries */
@media (max-width: 600px) {
    .wcr-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .wcr-header-balance {
        text-align: center;
        width: 100%;
    }
    
    .wcr-balance-info {
        margin-left: auto;
        margin-right: auto;
    }
    
    .wcr-coupon-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Transformar tabela em cards no mobile */
    .wcr-table thead {
        display: none;
    }
    
    .wcr-table, .wcr-table tbody, .wcr-table tr, .wcr-table td {
        display: block;
        width: 100%;
    }
    
    .wcr-table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .wcr-table td {
        text-align: right;
        padding: 8px 10px;
        border-bottom: 1px solid #f9f9f9;
        position: relative;
        padding-left: 50%;
    }
    
    .wcr-table td:last-child {
        border-bottom: none;
    }
    
    .wcr-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #666;
    }
    
    .wcr-table td.text-right, .wcr-table td.text-center {
        text-align: right;
    }
}
