/**
 * SDEO Admin Payments Styles
 * Dedicated responsive stylesheet for the payment dashboard view.
 */

/* Default Desktop constraints to keep cards hidden */
.sdeo-mobile-payments-cards-container {
    display: none !important;
}

.sdeo-desktop-payments-table-wrapper {
    display: block !important;
}

/* ========================================================= */
/* == MOBILE RESPONSIVE LAYOUT FOR ADMIN PAYMENTS VIEW ===== */
/* ========================================================= */
@media (max-width: 768px) {
    /* Prevent parent container collapses on mobile and force footer down */
    .sdeo-admin-dashboard-content {
        display: block !important;
        clear: both !important;
        float: none !important;
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 120px !important; /* Spacing gap to force footer downward */
    }

    .sdeo-admin-list-table-wrapper {
        margin-bottom: 30px !important;
        clear: both !important;
        float: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Hide wide desktop tables entirely */
    .sdeo-desktop-payments-table-wrapper {
        display: none !important;
    }

    /* Display cards wrapper */
    .sdeo-mobile-payments-cards-container {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px !important;
        background-color: #fafbfe;
        margin-bottom: 30px !important;
        clear: both !important;
    }

    /* Card Item Structuring */
    .sdeo-mobile-payment-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-sizing: border-box;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    /* Header Grid inside Card */
    .sdeo-mobile-payment-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
        margin-bottom: 12px;
        box-sizing: border-box !important;
    }

    .sdeo-mobile-payment-title-group {
        flex: 1;
        text-align: left;
    }

    .sdeo-mobile-payment-order-id a {
        font-size: 16px;
        font-weight: 700;
        color: #7047eb;
        text-decoration: none;
    }

    .sdeo-mobile-payment-vendor {
        font-size: 13px;
        color: #64748b;
        margin-top: 3px;
        font-weight: 500;
    }

    .sdeo-mobile-payment-status {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Card Details Row Styling */
    .sdeo-mobile-payment-card-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .sdeo-mobile-payment-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    .sdeo-mobile-payment-row .label {
        font-weight: 600;
        color: #64748b;
    }

    .sdeo-mobile-payment-row .value {
        font-weight: 500;
        color: #1e293b;
    }

    .sdeo-mobile-payment-row .sdeo-card-amount {
        font-weight: 600;
    }

    .sdeo-mobile-payment-row .sdeo-profit-amount {
        color: #3dcc8a !important; /* Standout Profit indicator */
        font-weight: 700;
    }

    .sdeo-mobile-payment-row .sdeo-total-amount {
        font-weight: 700 !important;
        color: #0f172a !important;
        font-size: 14px !important;
    }

    .sdeo-no-results-card {
        padding: 20px;
        text-align: center;
        color: #64748b;
        background: #fff;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
}