﻿/*=====================================
  Root variables - lighter button colors
=====================================*/
:root {
    /* brand blues */
    --brand-primary: #0078d7;
    --brand-dark: #2c3e50;
    /* section-button gradients */
    --section-bg: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    --section-hover-bg: linear-gradient(135deg, #005fa3, #1f2d3d);
    /* Lightened version of account button states */
    --btn-positive: #A4D3C1; /* Lighter green */
    --btn-positive-hover: #80C7A1; /* Slightly darker green on hover */
    --btn-negative: #F5B7B1; /* Lighter red */
    --btn-negative-hover: #F1A7A2; /* Slightly darker red on hover */
    /* unified grid border color */
    --grid-border: #d6e4f0;
}

/*=====================================
  Base Layout
=====================================*/
* {
    font-family: 'Tajawal','Segoe UI',Tahoma,Verdana,sans-serif !important;
}

html, body {
    direction: rtl;
    background-color: #f2f4f6;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
    font-size: 16px;
}

form {
    margin: 0;
    padding: 0;
}

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

/*=====================================
  Page Wrapper
=====================================*/
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content wrapper */
.content-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/*=====================================
  Login Page
=====================================*/
.login-container {
    width: 360px;
    max-width: 95%;
    margin: 80px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        margin: 40px auto;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-family: 'Segoe UI','Helvetica Neue',sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    letter-spacing: 1px;
    margin: 0;
}

    .login-title span {
        color: var(--brand-primary);
        font-weight: 700;
    }

.login-control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

    .login-control label,
    .login-control .dx-field-label,
    .login-control .dx-field {
        font-weight: bold;
    }

.login-input {
    width: 100% !important;
    padding: 6px 10px;
    font-size: 15px;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.login-btn {
    width: 100% !important;
    display: block !important;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--brand-primary);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background-color .3s ease;
}

    .login-btn:hover {
        background-color: #005fa3;
    }

.login-check-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 4px;
}

/*=====================================
  Main Container (cards / inputs area)
=====================================*/
.main-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px 10px;
        gap: 16px;
    }
}

/*=====================================
  Page Titles
=====================================*/
.page-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

/*=====================================
  Section Buttons
=====================================*/
.section-button {
    width: 100% !important;
    height: 60px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--section-bg) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    transition: transform .2s ease, box-shadow .2s ease, background .3s ease !important;
}

    .section-button:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 14px rgba(0,0,0,0.2) !important;
        background: var(--section-hover-bg) !important;
    }

/*=====================================
  ASPxMenu (top nav)
=====================================*/
.top-nav {
    background-color: var(--brand-dark) !important;
    height: 45px;
    line-height: 45px;
    display: flex;
    align-items: center;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 16px;
    width: 100%;
}

    .top-nav .dxm-item:nth-child(2) {
        font-family: 'Segoe UI','Tajawal',sans-serif;
        font-size: 24px;
        font-weight: 700;
        color: var(--brand-primary);
        letter-spacing: 1px;
    }

.dxmControl {
    background-color: transparent !important;
    border: none !important;
}

.dxm-content, .dxm-item {
    color: #fff !important;
    padding: 0 16px !important;
    line-height: 45px !important;
    font-weight: 500;
    font-size: 15px !important;
    display: inline-block;
}

    .dxm-item:hover, .dxm-item.dxm-hovered {
        background-color: #1abc9c !important;
        color: #fff !important;
        transition: background-color .3s ease;
    }

/* Custom main menu */
.top-nav.custom-main-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--brand-dark);
    height: 60px;
    padding: 0;
    direction: rtl;
    width: 100%;
    z-index: 100;
}

.menu-link {
    flex: 1 1 0;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 0 20px;
    transition: background .3s;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .menu-link:hover {
        background: #1abc9c;
        color: #fff;
    }

.menu-login-header {
    flex: 1.3 1 0;
    min-width: 190px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    height: 44px;
    margin: 0 14px;
    text-decoration: none;
    padding: 0 28px;
    transition: box-shadow .2s, background .2s;
    direction: rtl;
}

    .menu-login-header:hover {
        box-shadow: 0 6px 24px rgba(0,120,215,0.13);
        background: #f8faff;
    }

.menu-shaykha {
    font-family: 'Segoe UI','Tajawal',sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
}

.menu-management {
    font-family: 'Poppins','Segoe UI',sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 1px;
}

.menu-icon {
    height: 2.3em;
    width: auto;
    max-width: 36px;
    min-width: 20px;
    transition: height .2s;
    display: block;
    vertical-align: middle;
}

@media (max-width: 700px) {
    .top-nav {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 10px;
    }

    .dxm-item {
        font-size: 14px !important;
        line-height: 36px !important;
        padding: 6px 12px !important;
        width: 100%;
    }

    .menu-link, .menu-login-header {
        font-size: 16px;
        height: 40px;
        border-radius: 8px;
        padding: 0 10px;
        min-width: unset;
    }

    .menu-shaykha, .menu-management {
        font-size: 16px;
    }

    .menu-icon {
        height: 2em;
        max-width: 28px;
    }
}

@media (max-width: 480px) {
    .menu-icon {
        height: 1.6em;
        max-width: 22px;
    }
}

/*=====================================
  Account DataView (always flex)
=====================================*/
.dxDataView .dxDataView-ItemsTable {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
    width: auto !important;
}

    .dxDataView .dxDataView-ItemsTable tr,
    .dxDataView .dxDataView-ItemsTable td {
        display: block !important;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
    }

/* Ensure account buttons have space on the right */
.account-wrapper {
    padding: 10px 5px;
    margin-right: 10px;
}

/* Account buttons */
.account-button {
    width: 180px !important;
    height: 120px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 600;
    color: #333 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .3s ease !important;
    border-radius: 12px !important;
}

    .account-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }

    .account-button.positive {
        background-color: var(--btn-positive) !important;
    }

        .account-button.positive:hover {
            background-color: var(--btn-positive-hover) !important;
        }

    .account-button.negative {
        background-color: var(--btn-negative) !important;
    }

        .account-button.negative:hover {
            background-color: var(--btn-negative-hover) !important;
        }

/* Dimmer baby-blue special account button */
.account-button-special {
    width: 180px !important;
    height: 120px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Tajawal','Segoe UI',sans-serif !important;
    font-size: 1.22rem !important;
    font-weight: 700 !important;
    color: #133055 !important;
    background: linear-gradient(145deg,#b9d7ef,#a7cdea 40%,#c4def2) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06) !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    .account-button-special:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(0,0,0,0.14), 0 4px 10px rgba(0,0,0,0.08) !important;
    }

    .account-button-special:active {
        transform: translateY(-1px) scale(0.99);
    }

    .account-button-special:focus-visible {
        outline: 3px solid rgba(19,48,85,.25);
        outline-offset: 2px;
    }

@media (max-width: 480px) {
    .account-wrapper {
        margin-right: 15px;
        margin-left: 15px;
    }

    .account-button {
        width: 100% !important;
        height: auto;
    }

    .account-button-special {
        width: 100% !important;
        min-height: 96px !important;
        font-size: 1.08rem !important;
        border-radius: 12px !important;
    }
}

/*=====================================
  Buttons group + action buttons
=====================================*/
.button-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

    .button-group .dxButton {
        padding: 5px 15px;
        font-size: 14px;
        min-width: 100px;
    }

.rtl-action-button {
    min-width: 100px;
    font-size: .9rem;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    transition: background-color .3s ease, transform .3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    .rtl-action-button:hover {
        background-color: #005fa3;
        transform: translateY(-2px);
    }

@media (max-width: 768px) {
    .button-group {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end;
    }

    .rtl-action-button {
        min-width: 100px;
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

    .rtl-action-button {
        min-width: 70%;
        font-size: .85rem;
        padding: 6px 15px;
    }
}

/*=====================================
  Clean, Modern GridView (generic table)
=====================================*/
.rtl-grid {
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 8px;
}

    .rtl-grid .dxgvHeaderRow td {
        background: linear-gradient(90deg,var(--brand-primary),#2698e8);
        color: #fff;
        font-weight: 700;
        font-size: 1.04rem;
        border-bottom: 1px solid var(--grid-border);
        text-align: center;
    }

    .rtl-grid .dxgvDataRow td, .rtl-grid .dxgvAlternatingRow td {
        background: #fafcff;
        border-bottom: 1px solid var(--grid-border);
        font-size: 1.01rem;
        padding: 12px;
        text-align: center;
        vertical-align: middle;
    }

    .rtl-grid .dxgvDataRow:hover {
        background-color: #f7faff;
    }

    .rtl-grid .dxgvPager {
        text-align: center;
        margin: 1rem 0;
    }

/*=====================================
  AccountDetails layout + header row
=====================================*/
.account-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1024px;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .account-details {
        grid-template-columns: 1fr;
    }
}

.details-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grid-panel {
    width: 100%;
    margin-top: 30px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.account-label-container {
    flex: 1;
    text-align: center;
}

.account-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.balance-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-primary);
    background-color: #eef7ff;
    padding: 15px;
    border-radius: 8px;
    width: auto;
    text-align: center;
}

/* balance shown under the account title */
.account-details-page .account-label {
    margin-bottom: 4px;
}

.account-details-page {
    display: inline-block;
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: transparent;
    padding: 0;
}

    .account-details-page .balance-center {
        text-align: center;
        margin: 8px 0 10px;
    }

    .account-details-page .balance-label {
        font-size: 1rem;
        font-weight: 700;
        padding: 2px 8px;
        line-height: 1.2;
        color: var(--brand-primary);
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        display: inline-block;
        margin: 4px 0;
    }

@media (max-width:480px) {
    .account-details-page .balance-label {
        font-size: .95rem;
        padding: 1px 6px;
    }
}

/*=====================================
  Soft ASPxGridView (desktop baseline & mobile-safe)
=====================================*/
.custom-soft-grid {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    position: relative;
}
    /* Keep a single table layout; allow uniform shrink */
    .custom-soft-grid .dxgvTable,
    .custom-soft-grid .dxgvTable_MaterialCompact {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: separate;
        border-spacing: 0;
    }
    /* Tight but readable cells */
    .custom-soft-grid .dxgvHeaderRow td,
    .custom-soft-grid .dxgvDataRow td,
    .custom-soft-grid .dxgvAlternatingRow td,
    .custom-soft-grid .dxgvFooter td {
        padding: 8px 10px !important;
        box-sizing: border-box;
    }
    /* Header style */
    .custom-soft-grid .dxgvHeaderRow td {
        background: linear-gradient(90deg,var(--brand-primary),#2698e8);
        color: #fff;
        font-weight: 700;
    }
    /* Wrapping policy */
    .custom-soft-grid .dxgvDataRow td:not(.allow-wrap),
    .custom-soft-grid .dxgvFooter td:not(.allow-wrap) {
        white-space: nowrap;
    }

    .custom-soft-grid .dxgvDataRow td.allow-wrap {
        white-space: normal;
        word-break: break-word;
    }

/* Slight compression on phones */
@media (max-width: 480px) {
    .custom-soft-grid .dxgvHeaderRow td,
    .custom-soft-grid .dxgvDataRow td,
    .custom-soft-grid .dxgvAlternatingRow td,
    .custom-soft-grid .dxgvFooter td {
        padding: 6px 8px !important;
        font-size: 13px;
    }
}

/* Number utilities + color accents */
.number-cell {
    direction: ltr;
    text-align: right;
    padding-right: 15px;
    font-family: 'Segoe UI','Cairo',Arial,sans-serif !important;
}

.debit-cell {
    color: #e74c3c !important;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(231,76,60,0.07);
    text-align: right;
    padding-right: 15px;
}

.credit-cell {
    color: #1abc9c !important;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(26,188,156,0.07);
    text-align: right;
    padding-right: 15px;
}

.balance-cell, .balance-footer {
    color: var(--brand-primary) !important;
    background: #eef7ff !important;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 1px 8px rgba(0,120,215,0.07);
    text-shadow: 0 2px 8px #cce7ff66;
    text-align: right;
    font-weight: bold;
    padding-right: 15px;
}

/*=====================================
  Payment Requests page — helpers (base)
=====================================*/
.payment-requests-page .page-header-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 8px 0;
    font-family: 'Tajawal',sans-serif;
}

    .payment-requests-page .page-header-row.center {
        justify-content: center;
    }

    .payment-requests-page .page-header-row.left {
        justify-content: flex-start;
    }

/* Title chip */
.payment-requests-page .title-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    color: #1b2a41;
    white-space: nowrap;
}

.payment-requests-page .title-chip--blue {
    background: linear-gradient(135deg,#e8f2ff,#cfe4ff);
}

.payment-requests-page .title-chip--emerald {
    background: linear-gradient(135deg,#e7f7f0,#c7eddc);
}

.payment-requests-page .title-chip--gold {
    background: linear-gradient(135deg,#fff4d6,#ffe5a3);
    color: #2a1f00;
}

/* Input row + cells */
.payment-requests-page .input-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 10px;
    font-family: 'Tajawal',sans-serif;
    align-items: flex-end;
}

    .payment-requests-page .input-row > * {
        min-width: 0;
    }

.payment-requests-page .input-cell {
    flex: 1 1 220px;
    min-width: 160px;
}

.payment-requests-page .input-cell--wide {
    flex: 1 1 320px;
    min-width: 160px;
}

.payment-requests-page .input-cell--narrow {
    flex: 0 0 140px;
    min-width: 120px;
}

.payment-requests-page .input-cell--tiny {
    flex: 0 1 120px;
    min-width: 75px;
}

/* Button cell */
.payment-requests-page .input-cell--btn {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

/* RoundPanel content */
.payment-requests-page .new-payment-panel .dxrpcontent,
.payment-requests-page {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

    /* DevExpress inline error font match */
    .payment-requests-page .dxvdEr {
        font-family: 'Tajawal',sans-serif;
    }

/* Phones stacking for inputs */
@media (max-width:480px) {
    .payment-requests-page .input-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .payment-requests-page .input-cell,
    .payment-requests-page .input-cell--wide,
    .payment-requests-page .input-cell--narrow,
    .payment-requests-page .input-cell--tiny,
    .payment-requests-page .input-cell--btn {
        flex: 1 1 100%;
        min-width: 0;
    }

    .payment-requests-page .rtl-action-button {
        width: 100%;
        min-width: unset;
    }
}

/*=====================================
  Payment Requests page — SCOPED overrides
  (moved from inline <style> in .aspx)
=====================================*/
/* Center header cells in this page's grid */
.payment-requests-page .custom-soft-grid .dxgvHeaderRow td {
    text-align: center;
}

/* Compact “fit” columns (e.g., checkbox/status) */
.payment-requests-page .custom-soft-grid .col-fit {
    width: auto !important;
    min-width: 0;
    white-space: nowrap;
    padding-inline: 8px !important;
    text-align: center;
}

/* Ensure header/data cells with col-fit stay centered */
.payment-requests-page .custom-soft-grid .dxgvHeaderRow td.col-fit,
.payment-requests-page .custom-soft-grid .dxgvDataRow td.col-fit {
    text-align: center;
}

/* Page-local button bar alignment */
.payment-requests-page .button-container {
    text-align: left;
    margin-bottom: 10px;
}

/* Responsive tweaks for col-fit */
/* Small smartphones (≤360px) */
@media (max-width: 360px) {
    .payment-requests-page .custom-soft-grid .col-fit {
        padding-inline: 4px !important;
        white-space: nowrap;
    }
}
/* Big smartphones (361px–480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .payment-requests-page .custom-soft-grid .col-fit {
        padding-inline: 6px !important;
        white-space: nowrap;
    }
}

/*=====================================
  Grid row colorization & interaction (Payment Requests)
=====================================*/
/* Base row transitions and special color rows */
.payment-requests-page .custom-soft-grid tr.pr-row > td {
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    border-top: 1px solid var(--grid-border);
    border-bottom: 1px solid var(--grid-border);
}

.payment-requests-page .custom-soft-grid tr.pr-paid-pending > td {
    background: #FFF9C4 !important;
    color: #0B3C5D !important;
}

.payment-requests-page .custom-soft-grid tr.pr-paid-transfered > td {
    background: #D6D6D6 !important;
    color: #124227 !important;
}

/* Remove theme selection/focus fills except for special rows */
.payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"]:not(.pr-paid-pending):not(.pr-paid-transfered),
.payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ]:not(.pr-paid-pending):not(.pr-paid-transfered) {
    background: transparent !important;
    background-color: transparent !important;
}
    /* Remove theme fills on <td>s */
    .payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"]:not(.pr-paid-pending):not(.pr-paid-transfered) > td,
    .payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ]:not(.pr-paid-pending):not(.pr-paid-transfered) > td {
        background: transparent !important;
        background-color: transparent !important;
    }
/* Avoid theme white text; inherit normal colors */
.payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"]:not(.pr-paid-pending):not(.pr-paid-transfered),
.payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ]:not(.pr-paid-pending):not(.pr-paid-transfered) {
    color: inherit !important;
}

    .payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"]:not(.pr-paid-pending):not(.pr-paid-transfered) > td:not(.debit-cell):not(.credit-cell),
    .payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ]:not(.pr-paid-pending):not(.pr-paid-transfered) > td:not(.debit-cell):not(.credit-cell) {
        color: inherit !important;
        -webkit-text-fill-color: inherit !important;
    }

/* Border-only highlight */
.payment-requests-page .custom-soft-grid tr.dxgvSelectedRow > td,
.payment-requests-page .custom-soft-grid tr.dxgvFocusedRow > td,
.payment-requests-page .custom-soft-grid tr.row-focused > td {
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
}

    .payment-requests-page .custom-soft-grid tr.dxgvSelectedRow > td:first-child,
    .payment-requests-page .custom-soft-grid tr.dxgvFocusedRow > td:first-child,
    .payment-requests-page .custom-soft-grid tr.row-focused > td:first-child {
        border-inline-start: 2px solid #000 !important;
    }

    .payment-requests-page .custom-soft-grid tr.dxgvSelectedRow > td:last-child,
    .payment-requests-page .custom-soft-grid tr.dxgvFocusedRow > td:last-child,
    .payment-requests-page .custom-soft-grid tr.row-focused > td:last-child {
        border-inline-end: 2px solid #000 !important;
    }

/* Keep checkboxes visible & consistent in selected/focused rows */
.payment-requests-page .custom-soft-grid .dxICheckBox,
.payment-requests-page .custom-soft-grid [class*="CheckBox"],
.payment-requests-page .custom-soft-grid [class*="checkbox"],
.payment-requests-page .custom-soft-grid [class*="edtCheckBox"],
.payment-requests-page .custom-soft-grid input[type="checkbox"] {
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}
/* Invert white glyphs when selected/focused */
.payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"] .dxICheckBox,
.payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ] .dxICheckBox,
.payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"] [class*="edtCheckBox"],
.payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ] [class*="edtCheckBox"],
.payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"] [class*="CheckBox"],
.payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ] [class*="CheckBox"] {
    filter: invert(1) grayscale(1) !important;
}
    /* For inline SVG ticks */
    .payment-requests-page .custom-soft-grid tr[class*="dxgvSelectedRow"] .dxICheckBox svg,
    .payment-requests-page .custom-soft-grid tr[class*="dxgvFocusedRow" ] .dxICheckBox svg {
        filter: invert(1) grayscale(1) !important;
    }
/* Native checkbox accent color */
.payment-requests-page .custom-soft-grid input[type="checkbox"] {
    accent-color: #333 !important;
}

/*=====================================
  Grid container utilities (Payment Requests)
=====================================*/
.grid-fluid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.grid-scroll-panel {
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    width: 100% !important;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

    .grid-scroll-panel .dxpc-content,
    .grid-scroll-panel .dxpnl-content {
        margin: 0 !important;
        padding: 0 !important;
    }

/* Fluid font sizes for the grid */
.custom-soft-grid {
    font-size: clamp(12px, 0.9vw + 0.2rem, 16px);
}

    .custom-soft-grid .dxgvHeaderRow td {
        font-size: clamp(13px, 1vw + 0.25rem, 18px);
    }

    .custom-soft-grid .dxgvHeaderRow td,
    .custom-soft-grid .dxgvDataRow td,
    .custom-soft-grid .dxgvAlternatingRow td {
        padding-block: clamp(4px, 0.6vw, 12px);
        padding-inline: clamp(6px, 1vw, 12px);
    }
