/* ==========================================================
   MyRJ Vendor Reports & Payouts - Main Stylesheet
   Mobile Responsive & App-like UI
   ========================================================== */

/* Universal Box Sizing taaki design screen se bahar na bhage */
.myrj-rep-wrap *, .myrj-rep-wrap *:before, .myrj-rep-wrap *:after {
    box-sizing: border-box;
}

/* Grid Layout (Auto-fit for Laptop/Tablets) */
.rep-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
    margin-bottom: 30px; 
}

/* Report Box Styling */
.rep-box { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0; 
    text-align: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}
.rep-box h4 { 
    margin: 0 0 10px 0; 
    color: #64748b; 
    font-size: 13px; 
    text-transform: uppercase; 
}
.rep-box .val { 
    font-size: 24px; 
    font-weight: bold; 
    color: #0f172a; 
}

/* Text Colors */
.val-red { color: #dc3545 !important; } 
.val-green { color: #28a745 !important; } 
.val-blue { color: #007bff !important; } 
.val-orange { color: #fd7e14 !important; }

/* Payout Action Buttons Box */
.payout-action-box {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.payout-action-box button {
    font-size: 16px; 
    padding: 12px 25px; 
    height: auto; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer;
    font-weight: bold;
}
.btn-wallet { background: #007bff; color: #fff; }
.btn-bank { background: #17a2b8; color: #fff; }
.btn-disabled { background: #ccc !important; color: #fff !important; cursor: not-allowed !important; }

/* Responsive Table Wrapper (For Admin Side) */
.myrj-table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}
.myrj-table-responsive-wrapper table {
    width: 100% !important;
    min-width: 600px;
}

/* ==========================================================
   MOBILE RESPONSIVE RULES (Screens smaller than 768px)
   ========================================================== */
@media screen and (max-width: 768px) {
    .rep-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .rep-box {
        padding: 15px;
    }
    
    .rep-box .val {
        font-size: 20px;
    }

    .payout-action-box {
        flex-direction: column;
        gap: 10px;
    }
    .payout-action-box button {
        width: 100% !important;
        margin: 0 !important;
    }

    .final-payout-amount {
        font-size: 36px !important;
    }
}
