/* ACT Administration — Player Portal Styles
   Used on the WooCommerce My Account ACT Account tab. */

.act-portal {
    max-width: 800px;
}
.act-portal-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
}
.act-portal-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}
.act-portal-balance-card {
    text-align: center;
}
.act-portal-balance {
    font-size: 36px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.act-portal-negative { color: #d63638; }
.act-portal-positive { color: #00a32a; }

.act-portal-session-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 14px;
}

.act-portal-table {
    width: 100%;
    border-collapse: collapse;
}
.act-portal-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 2px solid #dcdcde;
    background: #f6f7f7;
}
.act-portal-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
}
.act-portal-num { text-align: right; font-variant-numeric: tabular-nums; }

.act-portal-badge-green {
    display: inline-block;
    padding: 2px 8px;
    background: #edfaef;
    color: #006b1f;
    border: 1px solid #4ab866;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.act-portal-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.act-portal-filter-label {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    color: #50575e;
    line-height: 1.2;
    gap: 2px;
}
.act-portal-filters input {
    padding: 3px 6px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 12px;
    width: 130px;
    box-sizing: border-box;
}
.act-portal-btn-filter {
    padding: 4px 14px;
    font-size: 12px;
    line-height: 1.4;
    height: 26px;
    margin-top: 0;
}

.act-portal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 13px;
}
.act-portal-pagination button {
    padding: 4px 12px;
    border: 1px solid #c3c4c7;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}
.act-portal-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.act-portal-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.act-portal-form-row label {
    min-width: 100px;
    font-weight: 500;
    font-size: 14px;
}
.act-portal-form-row input,
.act-portal-form-row select,
.act-portal-form-row textarea {
    flex: 1;
    max-width: 300px;
    padding: 6px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
}

.act-portal-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}
.act-portal-btn:hover { background: #135e96; }
.act-portal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.act-portal-success {
    margin-top: 12px;
    padding: 10px 14px;
    background: #edfaef;
    border: 1px solid #4ab866;
    border-radius: 4px;
    color: #006b1f;
    font-size: 14px;
}

.act-portal-help {
    font-size: 13px;
    color: #646970;
    margin-bottom: 12px;
}

.act-portal-skeleton {
    height: 32px;
    background: linear-gradient(90deg, #f0f0f1 25%, #e8e8e8 50%, #f0f0f1 75%);
    background-size: 200% 100%;
    animation: actPortalShimmer 1.5s infinite;
    border-radius: 3px;
}
@keyframes actPortalShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 600px) {
    .act-portal-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .act-portal-form-row label { min-width: 0; }
    .act-portal-form-row input,
    .act-portal-form-row select,
    .act-portal-form-row textarea { max-width: 100%; width: 100%; }
}
