body {
    background-color: var(--app-surface-page);
}

.app-header {
    border-bottom: 1px solid var(--app-border-app-header);
}

#navbarNav {
    /* max-width: 200px; */
}

.container-fluid {
    max-width: 100% !important;
}

.browser-states {
    height: 100%;
}

.filter-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.filter-select {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.select2 {
    width: 100% !important;
}

.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
}
/* 
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    background-color: var(--color-white);
    border: 1px solid var(--border-color);
    -webkit-border-radius: 4px;
    border-radius: 4px;
    height: 48px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
} */

.select2-container--default .select2-selection--multiple {
    background-color: var(--app-surface-white);
    border: 1px solid var(--app-border-soft-gray);
    border-radius: 44px;
    cursor: text;
}

.select2-container .select2-selection--multiple {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 32px;
    user-select: none;
    -webkit-user-select: none;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered {
    padding: 0 20px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0 5px;
    width: 100%;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: inline-block;
    overflow: hidden;
    padding-left: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered
    li {
    list-style: none;
}

.select2-container .select2-search--inline {
    float: left;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0;
}

.select2-container--default .select2-search--inline .select2-search__field {
    background: 0 0;
    border: none;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: textfield;
}

.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 100%;
    margin-top: 5px;
    padding: 0;
}

.input-with-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--app-border-form);
    border-radius: 0.375rem;
}

.badge {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
}

.input-with-badges input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 0;
    min-width: 100px;
}

.session-wrap.session-wrap--2 {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0 15px;
    min-height: 76px;
    background: var(--app-surface-session-wrap);
    -webkit-border-radius: 8px;
    border-radius: 8px;
    margin-bottom: 0;
}

.session-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 18px 0;
}

.session-wrap .session-single {
    text-align: center;
    padding: 5px 15px;
}

.session-wrap.session-wrap--2 .session-single strong {
    font-weight: 600;
}

.userDatatable thead th {
    text-transform: uppercase;
}

input[name="daterange"] {
    min-width: 240px !important;
}

@media (min-width: 1200px) {
    .session-wrap .session-single strong {
        font-size: 18px;
    }
}

.breadcrumb-main {
    line-height: 1.8571428571;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.ap-tab {
}

.ap-tab-header {
    /*box-shadow: 0 5px 20px rgba(146, 153, 184, 0.031372549);*/
    /*background: #fff;*/
    border: 1px groove var(--app-border-groove);
    border-radius: 10px;
}

.ap-tab-main .nav-link {
    position: relative;
    /*padding: 0;*/
    font-size: 15px;
    line-height: 1.4666666667;
    font-weight: 400;
    /*padding: 19px 0;*/
    cursor: pointer;
    color: var(--app-text-tab-muted);
    display: block;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}

.isBankAcActiveParent {
    /* display: none; */
}

.admin-dash i.fs-6 {
    font-size: 2.25rem !important;
}

.access-disabled {
    pointer-events: none;
}

/* Add New CSS */
.table-responsive {
    overflow-x: auto;
}

.footable-details.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}
.footable.table,
.footable.table *,
.footable-details.table,
.footable-details.table * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.footable-details.table,
.footable.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.table-borderless tr:last-child {
    border-bottom: 0px !important;
}

table.footable,
table.footable-details {
    position: relative;
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.merchant-table table thead tr {
    background: var(--app-surface-table-header);
}
tbody,
td,
tfoot,
th,
thead,
tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

.merchant-table table .footable-header {
    border-radius: 25px !important;
    /* background: #000; */
}
.merchant-table .selling-table-wrap .table--default tr th:first-child {
    padding-left: 15px;
    /* border-radius: 15px !important; */
}

.footable.table > thead > tr > th,
.footable.table > thead > tr > td,
.footable-details.table > thead > tr > th,
.footable-details.table > thead > tr > td {
    vertical-align: bottom;
    /* border-bottom: 2px solid #ddd; */
}

.footable.table > thead > tr > th,
.footable.table > tbody > tr > th,
.footable.table > tfoot > tr > th,
.footable.table > thead > tr > td,
.footable.table > tbody > tr > td,
.footable.table > tfoot > tr > td,
.footable-details.table > thead > tr > th,
.footable-details.table > tbody > tr > th,
.footable-details.table > tfoot > tr > th,
.footable-details.table > thead > tr > td,
.footable-details.table > tbody > tr > td,
.footable-details.table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    /* border-top: 1px solid #ddd; */
}
.selling-table-wrap table tr th:first-child {
    -webkit-border-radius: 6px 0 0 6px;
    border-radius: 6px 0 0 6px;
}
.table--default tr td:first-child,
.table--default tr th:first-child {
    border-left: 0;
}
.table--default tr td:first-child,
.table--default tr th:first-child {
    border-left: 0;
}
.footable.table {
    box-sizing: border-box;
}
.footable.table th,
.footable-details.table th {
    text-align: left;
}

.footable-header th:nth-child(2),
.footable-header th:nth-child(3),
.footable-header th:nth-child(4),
.footable-header th:nth-child(5),
.footable-header th:nth-child(6) {
    text-align: right;
}

#collapse-merchant-data {
    width: 98% !important;
}

#show-balance {
    /* padding: 50px; */
    display: none;
}
#merchant-editable .editable-input .form-control {
    padding: 6px 12px !important;
}

.footable-toggle {
    margin: 15px 5px 0 0;
}

#merchantSetBankModal-show-1 {
    display: none !important;
}

/* Merchants-page pagination */
.dm-pagination__link {
    min-height: 32px;
    font-size: 14px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 4.5px 11.75px;
    border-width: 1px;
    border-style: solid;
    background-color: var(--app-surface-white);
    margin: 2.5px;
    border: 1px solid var(--border-color);
    /* color: var(--color-gray); */
    line-height: normal;
}
.dm-pagination__link a:hover {
    background-color: var(--app-brand-primary-hover) !important;
    border-color: var(--app-brand-primary-hover) !important;
    color: var(--app-text-on-primary) !important;
}

/* transaction > date picker  */
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n + 3),
.input-group:not(.has-validation)
    > .form-floating:not(:last-child)
    > .form-control,
.input-group:not(.has-validation)
    > .form-floating:not(:last-child)
    > .form-select,
.input-group:not(.has-validation)
    > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(
        .form-floating
    ) {
    font-size: 15px !important;
}

/* transaction > main table header  */
.footable.table > thead > tr > th,
.footable.table > tbody > tr > th,
.footable.table > tfoot > tr > th,
.footable.table > thead > tr > td,
.footable.table > tbody > tr > td,
.footable.table > tfoot > tr > td,
.footable-details.table > thead > tr > th,
.footable-details.table > tbody > tr > th,
.footable-details.table > tfoot > tr > th,
.footable-details.table > thead > tr > td,
.footable-details.table > tbody > tr > td,
.footable-details.table > tfoot > tr > td {
    padding: 9px;
    line-height: 1.42857143;
    /* vertical-align: top; */
    /* border-top: 1px solid #ddd; */
}

.txn-checkout-type {
    position: relative;
    /* padding-left: 20px !important; */
}

#transactionData .spn-txn-type {
    position: absolute;
    top: 25%;
    transform: rotate(-90deg);
    left: -20px;
    padding: 0 10px;
    font-size: 10px;
}
.txn-checkout-type {
    padding: 15px 15px 0px 20px !important;
}
.transaction-info {
    overflow-x: hidden;
}



.multi-select-container {
    position: relative;
    min-width: 100px !important;
}

.multi-select-box {
    display: flex;
    flex-wrap: wrap;
    min-height: 38px;
    border: 1px solid var(--app-border-form);
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    background: var(--app-surface-white);
}

.multi-select-box input {
    border: none;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.selected-item {
    background: var(--app-surface-selected-chips);
    color: var(--app-text-chip);
    padding: 2px;
    margin: 2px;
    font-size: smaller;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--app-surface-white);
    border: 1px solid var(--app-border-form);
    border-radius: 5px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.multi-select-dropdown li {
    padding: 8px;
    cursor: pointer;
    list-style: none;
}

.multi-select-dropdown li:hover {
    background-color: var(--app-surface-hover-light);
}

.selected-item span {
    margin: 3px;
    cursor: pointer;
    font-size: 9px;
}

.multi-select-box {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    min-height: 38px;
    max-width: 100%;
    /* Set max width */
    border: 1px solid var(--app-border-form);
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    background: var(--app-surface-white);
    overflow-x: auto;
    /* Enable horizontal scrolling */
    white-space: nowrap;
    /* Prevent text from wrapping */
}

/* Style the scrollbar (optional) */
.multi-select-box::-webkit-scrollbar {
    height: 6px;
}

.multi-select-box::-webkit-scrollbar-thumb {
    background: var(--app-scrollbar-thumb);
    border-radius: 3px;
}

.selected-items {
    display: flex;
    gap: 5px;
}


/* transaction data scroll in horizontaly */
.table-container {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.table-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari, and Opera */
}

.table tr {
    white-space: nowrap;
    /* Prevent text wrapping */
}


    /* Custom Style for Right-Side Modal */
    .modal.right .modal-dialog {
        position: fixed;
        right: 0;
        margin: 0;
        width: 750px;
        /* Adjust width as needed */
        height: 100%;
    }

    .modal.right .modal-content {
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal.right .modal-header {
        border-bottom: 1px solid var(--app-border-modal);
    }


    #resendwebhookModal .modal-header {
        border-bottom: 1px solid var(--app-border-modal);
    }

    #resendwebhookModal {
        z-index: 1060;
    }


    #addNewRefundModal .modal-header {
        border-bottom: 1px solid var(--app-border-modal);
    }

    #addNewRefundModal {
        z-index: 1060;
    }

    #markSuccessModal .modal-header {
        border-bottom: 1px solid var(--app-border-modal);
    }

    #markSuccessModal {
        z-index: 1060;
    }

    .modal-backdrop {
        z-index: 1050 !important;
    }

    .small-popup {
        width: 400px !important;
        padding: 1rem;
      }
      
    .small-title {
        font-size: 18px !important;
    }
    
/* ................. */

.input-errors{
    color: var(--app-text-validation-error);
    font-size: 12px;
    font-weight: 400;
}

.swal2-container.swal2-top.swal2-backdrop-show{
    width: 440px !important;
}

/* .body.swal2-toast-shown .swal2-container{
    width: 450px !important;
} */

.swal-toast-title {
    white-space: nowrap;  /* Force the text on one line */
    font-size: 14px;      /* Adjust font size as needed */
}

/* Override for the success icon */
.swal2-icon.swal2-success {
    border-color: var(--app-text-on-primary) !important;
    color: var(--app-text-on-primary) !important;
  }
  
  /* Optionally adjust the inner parts */
  .swal2-icon.swal2-success .swal2-success-ring {
    border-color: var(--app-text-on-primary) !important;
  }

  /* Override for the error icon */
.swal2-icon.swal2-error {
    border-color: var(--app-text-on-primary) !important;
    color: var(--app-text-on-primary) !important;
  }
  

  /* ......... Reports .......... */
  .file-card {
    background: var(--app-surface-subtle);
    padding: 30px;
    border-radius: 8px;
    /* width: 320px; */
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--app-shadow-elevation);
    position: relative;
}

.file-icon img {
    width: 40px;
    height: 40px;
}

.file-name {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
}

.file-size {
    font-size: 12px;
    color: gray;
}

.file-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.dropdown-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: var(--app-surface-white);
    box-shadow: var(--app-shadow-elevation);
    border-radius: 5px;
    padding: 5px 0;
}

.dropdown-menu a {
    text-decoration: none;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    color: var(--app-text-body-strong);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--app-surface-dropdown-hover);
}

/* ............ Model width ............ */
.modal-credential {
    --bs-modal-width: 700px;
}

/* ............. Sidebar content-icon ............ */
.sidebar-item span img{
    width: 32px !important;
}

/* Header */
#logout-form a{
    display: inline-block;
}
@media (max-width: 400px) {
    .app-header .navbar .navbar-nav .nav-item .nav-link {
        line-height: 22px;
        font-size: 14px;
    }
}
.blockUI.blockMsg.blockElement{
    top: 50%  !important;
    left: 45% !important;
}
.loader-wrapper{
    display: flex;
}
.loader-wrapper > .spinner-border{
    width: 17px;
    height: 17px;
}

.loader-wrapper > .loader-text{
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}


/* Responsive layout tweaks for smaller screens */
@media (max-width: 768px) {

    .mt-mobile {
        margin-top: 1.5rem !important;
    }
    .mt-5-mobile {
        margin-top: 5rem !important;
    }

    .ml-mobile {
        margin-left: 1.5rem !important;
    }

    .mlt-mobile {
        margin-top: 1.5rem !important;
        margin-left: 1.5rem !important;
    }

    .mr-mobile {
        margin-right: 1.5rem !important;
    }

    .mb-mobile {
        margin-bottom: 1.5rem !important;
    }

    .mrb-mobile {
        margin-right: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .m-0-mobile {
        margin: 0px !important;
    }

    .pr-mobile {
        padding-right: 1.5rem !important;
    }

    .pl-mobile {
        padding-left: 1.5rem !important;
    }

    .p-0-mobile {
        padding: 0px !important;
    }


    .fs-mobile {
        font-size: 15px !important;
    }

    .session-single {
        flex: 1;
        /* On larger screens, show side-by-side */
        margin-bottom: 0;
    }

    .d-block-mobile {
        display: block !important;
    }
   

    .d-none-mobile {
        display: none;
    }

    /* modal box shadow */
    .box-shadow-mobile {
        box-shadow: var(--app-shadow-modal-mobile) !important;

        }

    /* transaction header data */
    .session-wrap {
        display: flex;
        flex-wrap: nowrap;
        /* Keep items in one row */
        overflow-x: auto;
        /* Enable horizontal scroll */
        width: 100%;
        padding: 1rem;
        gap: 1rem;
        /* Optional: adds spacing between items */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .modal.right .modal-dialog.modal-fullscreen {
        width: 90%;
        max-width: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* height: auto; */
        bottom: auto;
    }

    .card-body {
        padding: 1rem; /* Slightly reduced padding on mobile */
    }

    .icon-circle {
        width: 35px;
        height: 35px;
    }

    .row.align-items-center {
        gap: 0.5rem; /* Add gap between columns on mobile */
    }

}

.spinner {
    border: 2px solid var(--app-border-spinner-track);       /* Light grey */
    border-top: 2px solid var(--app-brand-primary);   /* Brand */
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
  }
  
  @keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

.btn-clear{
    background-color: var(--app-overlay-scrim-light);
}

.btn-clear:hover{
    background-color: var(--app-overlay-scrim-hover);
}

.can-update-permision {
pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.brand-logo {
    justify-self: center;
}

/* Text wordmark (replaces image logo) */
.app-wordmark {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--app-text-wordmark);
    text-decoration: none !important;
    line-height: 1.15;
    border-left: 4px solid var(--app-brand-primary);
    padding-left: 0.55rem;
    font-variant-numeric: tabular-nums;
}

a:hover .app-wordmark {
    color: var(--app-text-wordmark-hover);
    border-left-color: var(--app-brand-primary);
}

.app-wordmark--login {
    font-size: 2rem;
    letter-spacing: 0.14em;
}

.app-wordmark--sidebar {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
}

/* Adjust --bs-dropdown-item-height if you’ve changed Bootstrap defaults */
:root {
    --dropdown-item-height: 2.5rem;
}

/* Limit to ~3 items, then scroll */
.dropdown-menu.scrollable-menu {
    max-height: calc(var(--dropdown-item-height) * 10);
    overflow-y: auto;
}

.usdt-fields, .bank-fields{
    display: none;
}
