/* ============================================================
   OWL Commissions — Styles
   ============================================================ */

/* ── Earnings Page Wrap ──────────────────────────────────── */
.owl-earnings-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Balance Summary ─────────────────────────────────────── */
.owl-earnings-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.owl-earn-stat {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.owl-earn-stat-pending {
    border-color: #b45309;
}

.owl-earn-stat-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #00c853;
    line-height: 1;
    margin-bottom: 8px;
}

.owl-earn-stat-pending .owl-earn-stat-amount {
    color: #f59e0b;
}

.owl-earn-stat-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Section ─────────────────────────────────────────────── */
.owl-earnings-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 24px;
}

.owl-earnings-section h3 {
    color: #00c853 !important;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

/* ── Form Rows ───────────────────────────────────────────── */
.owl-form-row {
    margin-bottom: 16px;
}

.owl-form-row label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.owl-form-row input,
.owl-form-row select {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
}

.owl-form-row input:focus,
.owl-form-row select:focus {
    outline: none;
    border-color: #00c853;
}

.owl-form-row small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ── Table ───────────────────────────────────────────────── */
.owl-table-wrap {
    overflow-x: auto;
}

.owl-earnings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.owl-earnings-table th {
    text-align: left;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 12px;
    border-bottom: 1px solid #2a2a2a;
}

.owl-earnings-table td {
    padding: 10px 12px;
    color: #ccc;
    border-bottom: 1px solid #1f1f1f;
}

.owl-earnings-table tr:last-child td {
    border-bottom: none;
}

/* ── Status Badges ───────────────────────────────────────── */
.owl-comm-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.owl-comm-status-available { background: rgba(0,200,83,0.15); color: #00c853; }
.owl-comm-status-pending   { background: rgba(245,158,11,0.15); color: #f59e0b; }
.owl-comm-status-paid      { background: rgba(59,130,246,0.15); color: #60a5fa; }
.owl-comm-status-cancelled { background: rgba(100,100,100,0.15); color: #666; }
.owl-comm-status-requested { background: rgba(245,158,11,0.15); color: #f59e0b; }
.owl-comm-status-processing{ background: rgba(139,92,246,0.15); color: #a78bfa; }
.owl-comm-status-rejected  { background: rgba(239,68,68,0.15); color: #f87171; }

/* ── Notices ─────────────────────────────────────────────── */
.owl-notice-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid #b45309;
    border-radius: 6px;
    padding: 12px 16px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.owl-text-dim {
    color: #555;
    font-style: italic;
}

/* ── Pending badge on dashboard ──────────────────────────── */
.owl-comm-pending {
    color: #f59e0b !important;
    font-size: 0.75rem;
}

/* ── Admin withdrawal status colors ─────────────────────── */
.owl-status-requested  { color: #b45309; font-weight: 700; }
.owl-status-processing { color: #7c3aed; font-weight: 700; }
.owl-status-paid       { color: #1a7f3c; font-weight: 700; }
.owl-status-rejected   { color: #c00; font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .owl-earnings-summary {
        grid-template-columns: 1fr;
    }
    .owl-earn-stat-amount {
        font-size: 1.6rem;
    }
}
