/* =======================
   DASHBOARD GLOBALS (BASE)
   ======================= */
:root {
    --primary-bg: #f4f7fa;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #eaf1f8;
    --sidebar-active: #e3efea;
    --sidebar-text: #5a6a85;
    --sidebar-active-text: #1b8a51;
    --topbar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #8898aa;
    --color-success: #1b8a51;
    --color-danger: #ea4335;
    --color-warning: #fbc02d;
    --color-info: #0056b3;
    --color-purple: #8e24aa;
    --border-color: #e9ecef;
    --shadow-sm: 0 0.125rem 0.25rem rgb(0 0 0 / 2%);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --dark-theme-bg: #1a1a27;
    --dark-theme-border-bt: #474b55;
    --dark-theme-sidebar-text: #bebcbc;
    --dark-theme-sidebar-link-bg: #141420;
    --dark-panel-bg: #2a2b2f;
    --dark-panel-haeder-border: #606164;
    --dark-main-content: #1b1a1a;
    --dark-chart-container: #21212c;
    --dark-chart-container-border: #333343;
    --dark-table-border-bottom: #606164;
    --dark-table-thead-bg: #21212c;
    --datatable-wrapper-bg: #2a2b2f;
    --datatable-wrapper-border: #2a2b2f;
    --dark-btn-border: #606164;
    --dark-metric-card-bg: #21212c;
    --dark-metric-card-border: #333343;
    --dark-btn-bg: #2a2b2f;
    --dark-filter-btn-bg: #0056b31a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* =======================
   AUTH STYLES 
   ======================= */
.auth-body {
    font-family: Arial, sans-serif;
    /* background-color: var(--primary-bg); */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.auth-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    width: 100%;
    max-width: 400px;
}

.perm-card-header span {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-container p {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1.65rem;
}

.auth-container input:focus-visible {
    outline: none;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    background: none;
}

.auth-container .btn-primary {
    width: 100%;
}

.btn-primary {
    padding: 0.75rem;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #004494;
}

.messages {
    color: #e11203;
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
    text-align: center;
    font-size: 0.89rem;
    font-weight: 500;
}

.links {
    margin-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links a {
    color: #0056b3;
    text-decoration: none;
}

.dashboard-body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
    transition: 0.3s;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.sidebar-brand {
    padding: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--sidebar-bg);
    z-index: 11;
}

.sidebar-brand h2 {
    color: var(--color-success);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.6rem;
    text-align: center;
    line-height: 21px;
}

.sidebar-brand h2 span {
    color: #333;
    font-weight: 400;
    font-size: 1rem;
}

.sidebar-nav {
    padding: 0.5rem 0;
    flex: 1;
}

.nav-item {
    list-style: none;
    /* margin: 0.2rem 1rem 0 0; */
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-link i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 10px;
    text-align: center;
}

.nav-link:hover {
    background-color: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 600;
    /* transform: translateX(3px); */
}

.nav-link.active {
    background-color: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.nav-badge {
    margin-left: auto;
    background-color: var(--color-danger);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Submenu Styling */
.has-submenu .nav-link {
    justify-content: space-between;
    cursor: pointer;
}

.has-submenu .nav-link>div {
    display: flex;
    align-items: center;
}

.has-submenu .nav-link .toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
    margin-left: auto;
    width: auto;
}

.has-submenu.open .nav-link .toggle-icon {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding-left: 1rem;
    display: none;
    margin-top: 2px;
    margin-bottom: 8px;
}

.submenu.open {
    display: block;
}

.submenu-item {
    margin: 2px 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #5a6a85;
    background-color: transparent;
    font-weight: 500;
}

.submenu-link .dot {
    font-size: 0.35rem;
    margin-right: 12px;
    color: #5a6a85;
    width: auto;
}

.submenu-link:hover {
    background-color: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.submenu-link:hover .dot {
    color: var(--sidebar-active-text);
}

.submenu-link.active {
    background-color: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.submenu-link.active .dot {
    color: var(--sidebar-active-text);
}

/* Main Content wrapper */
.main-wrapper {
    flex: 1;
    /* overflow: hidden; */
    overflow-y: auto;
    height: 100%;
    /* align-items: stretch; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Topbar Setup */
.topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    overflow-x: hidden;
    background-color: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 1rem 1rem 1rem;
}

.topbar-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 0.2rem 0.8rem;
    border: 1px solid #82838f80 !important;
    border: none;
    border-radius: 6px;
    outline: none;
    font-size: 0.85rem;
    color: #999;
    /* background: #f8fafc; */
}

#globalModuleSelect,
#globalFieldSelect {
    border: none !important;
}

.search-box {
    display: flex;
    align-items: center;
    /* background: #f8fafc; */
    /* border: 1px solid var(--border-color);*/
    border-radius: 6px;
    padding: 0;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    font-size: 0.85rem;
    width: 200px;
}

.search-box button {
    background: #0056b3;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    border-radius: 6px;
    padding: 10px;
    align-items: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-info {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info span {
    color: var(--text-muted);
    font-weight: 400;
}

.content {
    flex: 1 !important;
    padding: 1rem;
    width: 100%;
    background-color: var(--primary-bg);
}

.g-10 {
    gap: 10px;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.page-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    /* margin-left: 10px; */
}

/* =======================
   DASHBOARD INDEX SPECIFIC
   ======================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.panel {
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    /* border: 1px solid var(--border-color); */
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.align-items-baseline {
    align-items: baseline;
}

/* #mediaFileTable_info,
#mediaFileTable_paginate {
    margin-top: 1rem;
} */

.viewedtext {
    margin-top: 7px;
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid #0056b3;
    background: #ffffff;
    cursor: pointer;
    color: #0056b3;
    transition: 0.2s;
    padding: 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.header-actions {
    flex-wrap: wrap;
}

.cls-reset {
    margin-bottom: 40px;
}

.filter-btn.active {
    background: var(--color-info);
    color: white;
    border-color: var(--color-info);
}

.filter-btn:hover:not(.active) {
    background: #e2e8f0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-card {
    background: #fafbfc;
    border: 1px solid #f0f2f5;
    border-radius: 6px;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-card .title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.metric-card .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.metric-card .stat {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    display: inline-block;
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
}

.icon-box {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.9rem;
}

/* Colors for distinct metric cards */
.mc-total .title {
    color: var(--color-purple);
}

.mc-total .icon-box {
    background: var(--color-purple);
}

.mc-success .title {
    color: var(--color-success);
}

.mc-success .icon-box {
    background: var(--color-success);
}

.mc-success .stat {
    background: #dcfce7;
    color: var(--color-success);
}

.mc-fraud .title {
    color: var(--color-danger);
}

.mc-fraud .icon-box {
    background: var(--color-danger);
}

.mc-pending .title {
    color: var(--color-warning);
}

.mc-pending .icon-box {
    background: var(--color-warning);
}

.mc-pending .stat {
    background: #dcfce7;
    color: var(--color-success);
}

.mc-failed .title {
    color: var(--color-danger);
}

.mc-failed .icon-box {
    background: var(--color-danger);
}

.mc-failed .stat {
    background: #dcfce7;
    color: var(--color-success);
}

.mc-timeout .title {
    color: var(--color-warning);
}

.mc-timeout .icon-box {
    background: var(--color-warning);
}

/* Chart Area */
.chart-container {
    flex: 1;
    min-height: 250px;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
}

/* Tables below */
.table-section {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
}


/* =======================
   DATATABLES GLOBALS
   ======================= */
.data-table-wrapper {
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

table.dataTable thead th {
    border-bottom: 2px solid #e2e8f0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: capitalize;
}

table.dataTable tbody td {
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #334155;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    /* background-color: #FFF4DE; */
}

.badge-warning-light {
    color: #FFA800;
    background-color: #FFF4DE;
    border-color: transparent;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-used-light {
    background-color: #e6f0f9;
    color: #558cda;
}

.badge-grey-light {
    background-color: #dad9d975;
    color: #8d8b8b;
}

.badge-user {
    background: #f4f7fa;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-ip {
    background: #f4f7fa;
    color: #64748b;
}

/* Custom DataTables Pagination Styling */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--color-info) !important;
    color: #ffffff !important;
    border-color: var(--color-info) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: not-allowed;
    color: #cbd5e1 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_info {
    margin-top: 0;
    padding-top: 0 !important;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    line-height: 29px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0 !important;
    margin-top: 0;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

#currencyTable_length,
#payinCommercialTable_length,
#routingTable_length,
#ipsTable_length,
#balanceTable_length {
    margin-bottom: 0 !important;
}

.dataTables_wrapper .dataTables_length select {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    outline: none;
    background: #f8fafc;
    margin: 0 5px;
}

/* Override datatables bottom border */
/* table.dataTable.no-footer {
    border-bottom: 1px solid #f0f2f5 !important;
} */

/* Utility Classes for Activity Log Details & Acquirers */
.stat-badge {
    font-size: 0.8rem;
    background: #f4f7fa;
    padding: 6px 10px;
    font-weight: 500;
    color: #64748b;
    border-radius: 6px;
    display: inline-flex;
}

.detail-grid-container {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.detail-grid-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #f0f2f5;
    padding: 10px 0;
}

.detail-label {
    color: #64748b;
}

.detail-value-bold {
    font-weight: 500;
}

.detail-pre-container {
    margin-top: 20px;
}

.detail-pre-label {
    color: #64748b;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
}

.detail-pre-block {
    padding: 12px 15px;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    max-width: 100%;
}

/* Common Utility Classes */
.font-w-500 {
    font-weight: 500;
}

.text-nodecoration {
    text-decoration: none;
}

.table-wrapper-scroll {
    overflow-x: hidden;
}

/* =======================
   ACQUIRER CREATE FORM
   ======================= */
/* Select2 UI Tweaks */
.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.form-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #212529;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 0.6rem;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}


/* MDR Table Styles */
.mdr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mdr-table th {
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    padding: 12px 10px;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid #dee2e6;
}

.mdr-table td {
    padding: 10px;
    vertical-align: top;
    border-bottom: 1px solid #f1f3f5;
}



.btn-remove-row {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-remove-row:hover {
    background: #fecaca;
}

.btn-add-row {
    background: #e0f2fe;
    color: #0284c7;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-row:hover {
    background: #bae6fd;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: column;
}

/* Badge Styles */
.badge-success-light {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary-light {
    background-color: #f2f2f2;
    color: #7d7d7d;
    padding: 4px 8px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.d-flex {
    display: flex;
}

.badge-danger-light {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border: none;
    font-size: 0.75rem;
}

/* .dataTables_filter input {
    margin-bottom: 13px !important;
} */


/* Toggle Buttons */
.btn-toggle-block {
    background: #f0363624;
    color: #e30a0a;
    padding: 4px 8px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.justify-content-between {
    justify-content: space-between;
}

.btn-toggle-block:hover {
    background: #fecaca;
}

.btn-toggle-active {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-toggle-active:hover {
    background: #bbf7d0;
}

.nav-link-logout i {
    font-size: 1.1rem;
    width: 24px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background: #e2e8f08c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.dashboard-title-box {
    display: flex;
    align-items: center;
}

.dashboard-title-highlight {
    font-weight: 600;
    color: var(--text-muted);
}

.stat-amount {
    font-size: 0.8rem;
}

.stat-title-accepted {
    color: #2196f3;
}

.stat-icon-accepted {
    background: #2196f3;
    color: white;
}

.dashboard-grid-container {
    margin-top: 1rem;
}

.dashboard-flex-row {
    display: flex;
    gap: 10px;
}

.dashboard-flex-panel {
    flex: 1;
}

.dashboard-panel-title-container {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-panel-title {
    font-size: 1rem;
    font-weight: 600;
}

.btn-view-all {
    color: var(--color-info);
}

.text-right {
    text-align: right;
}

.table-wrapper {
    overflow-x: auto;
}

.text-warning {
    color: var(--color-warning);
}

.text-muted-dark {
    color: #888;
}

.float-right-dark {
    float: right;
    color: #333;
}

.empty-data-box {
    padding: 1rem;
    color: #888;
    text-align: center;
    font-size: 0.9rem;
}

/* Form Wrapper Classes */
.form-row {
    flex-wrap: wrap;
}

.form-col-1by3 {
    flex: 1 1 30%;
    padding-bottom: 7px;
}

/* 1/4 column */
.form-col-1by4 {
    flex: 1 1 22%;
    padding-bottom: 15px;
}

.form-col-half {
    flex: 1 1 45%;
    padding-bottom: 10px;
}

.mt-4 {
    margin-top: 1rem;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.form-col-full {
    flex: 1 1 100%;
    padding-bottom: 10px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-weight: 500;
    text-transform: capitalize;
}

.text-danger {
    color: #dc2626;
    /* background: #dc26260f;
    border: 1px solid #dc262640; */
}

.form-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-help-text {
    color: #94a3b8;
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    margin-left: 10px;
}

.form-actions {
    text-align: right;
    flex-wrap: wrap;
    display: flex;
    gap: 10px;
}

.form-messages {
    margin-bottom: 20px;
}

.form-message-item {
    padding: 10px;
    display: block;
}

.form-label.required:after {
    content: " *";
    color: red;
}

.btn-primary {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background: none !important;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: white;
}

.btn-primary i {
    margin-right: 2px;
}

.section-title {
    font-size: 1rem;
    color: var(--text-main);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
    margin-top: 1rem;
    margin-bottom: 20px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* Base styling for form elements */
.form-wrapper {
    background-color: var(--card-bg, #fff);
    padding: 1rem;
    border-radius: var(--border-radius-lg, 8px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
    width: 100%;
    margin: 0 auto;
}

.form-select,
.form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.8rem;
    color: #999;
    transition: border-color 0.2s;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 33.6px;
}

.form-select:focus,
.form-control:focus {
    outline: none;
    border-color: #c4c5c7 !important;
    background-color: #fff;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    /* border-top-left-radius: 0;
    border-bottom-left-radius: 0; */
}

/* .select2-container--default .select2-selection--multiple {
    padding-bottom: 13px !important;
} */

.input-group .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-left: 0;
    background-color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.input-group .btn:hover {
    background-color: #e2e8f0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    background: none;
    color: #a0a1a2;
    white-space: nowrap;
    border-left: 0;
}

/* left side radius */
.input-group-text:first-child {
    border-radius: 6px 0 0 6px;
    height: 33.6px;
}

/* right side radius */
.input-group-text:last-child {
    border-radius: 0 6px 6px 0;
    height: 33.6px;
}

/* Select2 Custom Styles */
.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #495057;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #333 transparent transparent transparent;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--focus .select2-selection--single {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
}

/* .select2-container {
    width: 100% !important;
} */

/* Nav Tabs (Custom) - Pill Style */
.nav-tabs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.nav-tabs .nav-link {
    display: block;
    padding: 0.7rem 1rem;
    color: #64748b;
    background-color: transparent;
    border-radius: 6px 6px 0 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
}

/* .nav-tabs .nav-link:hover {
    background-color: #f1f5f9;
} */

.nav-tabs .nav-link.active {
    color: #0d6efd;
    /* background-color: #66a1f914; */
    font-size: 15px;
    /* border: 1px solid #333; */
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px 3px 0 0;
}

/** perm-card Start*/
.perm-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.perm-card-header {
    background: #f8fafc99;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: capitalize;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.perm-card-header span {
    font-size: 1rem;
    color: #64748b;
}

.perm-card-body {
    padding: 20px;
}

.model-group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.model-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.model-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
    text-transform: capitalize;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.perm-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.perm-checkbox label {
    margin: 0;
    cursor: pointer;
}

/** Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-content.active {
    display: block;
}

/* Modern Professional UI for Acquirers */
.acquirer-page-wrapper {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Top controls & Main Toggle */
.top-controls-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.top-new-controls {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.modern-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: #f1f3f5;
    border-radius: 32px;
    padding: 4px;
    border: 1px solid #e9ecef;
}

.modern-switch-label {
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 600;
    color: #868e96;
    z-index: 1;
    transition: all 0.3s ease;
}

.modern-switch input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.modern-switch-bg {
    position: absolute;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    left: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-switch input:checked~.modern-switch-bg {
    left: calc(50%);
}

.modern-switch input:not(:checked)~.label-payout {
    color: #495057;
}

.modern-switch input:checked~.label-payin {
    color: #495057;
}

/* Status Toggle (Inline) */
.toggle-switch-sm {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    vertical-align: middle;
    margin: 0 8px;
}

.toggle-switch-sm input {
    display: none;
}

.slider-sm {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9ecef;
    transition: .4s;
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.slider-sm:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch-sm input:checked+.slider-sm {
    background-color: #0d6efd;
}

.toggle-switch-sm input:checked+.slider-sm:before {
    transform: translateX(16px);
}

/* Parent Acquirer Level Tabs */
.acq-main-tabs-modern {
    display: flex;
    gap: 30px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    /* padding: 0 10px; */
}

.switch-control {
    margin-bottom: 1rem;
    gap: 15px;
}

.acq-tab-modern {
    padding: 10px 5px;
    font-weight: 600;
    font-size: 15px;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.acq-tab-modern:hover {
    color: #495057;
}

.acq-tab-modern.active-tab {
    color: #0d6efd;
}

.acq-tab-modern.active-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px 3px 0 0;
}

/* Acquirer Cards */
.acquirer-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
    display: none;
}

.acquirer-card.show-acq {
    display: block;
}

.acquirer-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.acquirer-header {
    padding: 1rem;
    display: flex;
    border-radius: 6px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
}

.acquirer-header:hover {
    background: #f8f9fa;
}

.acquirer-card.open .acquirer-header {
    border-bottom-color: #e9ecef;
    background: #fcfcfc;
    border-radius: 6px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.acquirer-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.drag-handle {
    color: #adb5bd;
    cursor: grab;
    padding: 5px;
}

.acquirer-title-wrap h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    text-transform: capitalize;
}

.acquirer-status-wrap {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #adb5bd;
}

/* Nested Profile Body */
.acquirer-body {
    display: none;
    padding: 1rem;
    border-radius: 0 0 6px 6px;
}

.acquirer-card.open .acquirer-body {
    display: block;
    overflow: hidden;
    overflow-x: auto;
}

.ml-0 {
    margin-left: 0;
}

/* Sub Tabs */
.profile-tabs-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.profile-tab-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    background: #fff;
    color: #6c757d;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.profile-tab-btn:hover {
    background: #f8f9fa;
}

.profile-tab-btn.enabled.active-tab,
.profile-tab-btn.disabled.active-tab,
.profile-tab-btn.blocked.active-tab {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.g-2 {
    gap: 4px;
}

/* Profile Table */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    overflow: hidden;
    border: 1px solid #e9ecef;
    overflow-x: auto;
}

.w-100 {
    width: 100%;
}

.custom-table th {
    background: #f8f9fa;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #868e96;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    text-align: left;
}

.custom-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr {
    transition: background 0.15s;
}

.custom-table tbody tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge-status {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-enabled {
    background: min(rgba(25, 135, 84, 0.1), #E6F4EA);
    color: #198754;
}

.badge-disabled {
    background: min(rgba(220, 53, 69, 0.1), #FDECEA);
    color: #dc3545;
}

/* Actions */
.action-icons-modern {
    display: flex;
    gap: 6px;
}

.action-icons-modern a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f1f3f5;
    color: #6c757d;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 12px;
}

.action-icons-modern a:hover {
    background: #e9ecef;
    color: #212529;
}

.action-icons-modern a.action-warn:hover {
    color: #fd7e14;
}

.action-icons-modern a.action-danger:hover {
    color: #dc3545;
}

.profile-row {
    display: none;
}

.profile-row.show-row {
    display: table-row !important;
}

.profile-row.show-row td {
    cursor: move;
}

.status-dropdown {
    border-radius: 6px;
    padding: 2px 8px;
    border: 1px solid #ced4da;
    font-size: 13px;
    width: auto;
}

/* Dashboard Specific Overrides */
input[type="date"]::-webkit-clear-button,
input[type="date"]::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
}

input[type="time"]::-webkit-clear-button,
input[type="time"]::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
}

.cll-up {
    display: flex;
    gap: 5px;
}

.text-decoration-none {
    text-decoration: none;
    color: #334155;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important;
}

/* .bottom {
    margin-top: 1rem !important;
} */

.width-full {
    display: flex;
    gap: 5px;
}

.filter-select-new {
    display: flex;
    gap: 10px;
    border-radius: 6px;
    height: 36px;
    /* background-color: #f8fafc; */
    border: 1px solid #ddddddcf !important;
}

.filter-select:active {
    border-bottom: 2px solid #007bff !important;
    color: #007bff;
}

.filter-select:hover {
    border-bottom: 2px solid #007bff !important;
    color: #007bff !important;
    border-radius: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    top: 67% !important;
}

.search-box:active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.search-box:hover {
    border-bottom: 2px solid #007bff;
    color: #007bff;
    border-radius: 0;
    border-bottom-right-radius: 6px;
}

.search-box:hover input {
    color: #007bff;
}

.text-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filters-wrappers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.paginate_button.current {
    color: #fff !important;
}

.matrix-tab {
    display: flex;
    gap: 9px;
    align-items: center;
}

.d-none {
    display: none !important;
}

.odd td b,
.even td b {
    text-transform: capitalize;
    font-weight: 400 !important;
}

.text-center {
    text-align: center;
}

#globalSearchInput::placeholder {
    color: #999 !important;
}



#downloadTable_filter {
    margin-bottom: 1rem;
}

footer {
    padding: 1rem;
    background-color: var(--topbar-bg);
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.9rem;
    color: var(--sidebar-text);
}

footer p a {
    color: var(--sidebar-text);
    font-weight: 600;
    text-decoration: none;
}

footer p a:hover {
    color: var(--color-info);
}

#select2-globalCurrencySelect-container {
    font-size: 0.85rem;
}

.sidebar-nav .nav-item {
    list-style: none;
    margin: 0.2rem 0.6rem;
}

.select2-container--default .select2-selection--single {
    /* background-color: #f8fafc !important; */
    border: 1px solid #ddd !important;
}

.btn-info-light,
.btn-primary-light,
.btn-warning-light,
.btn-success-light {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border: 1px solid #64748b;
    border-radius: 6px;
    color: #64748b;
    padding: 3px 4px;
    font-size: 12px;
    text-decoration: none;
    background-color: #fff;
    margin: 1px 1px 3px 1px;
}

.pass-- {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
}

.user-mains {
    display: flex;
    align-items: center;
    gap: 25px;
}

.separator-filter {
    color: #ddd;
    display: flex;
    align-items: center;
}

.text-danger.delete-- {
    color: #dc2626;
    background-color: #dc26260f;
    border: 1px solid #dc262642;
    font-size: 0.75rem;
    padding: 4px 8px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border-radius: 6px;
}

.text-danger.delete--:hover {
    background-color: #dc26262e;
}

.badge-new {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* dark theme code */
.theme-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 25px;
    background: #e2e8f08c;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.theme-btn-new .icon-one {
    width: 18px;
    height: 18px;
    stroke: #64748b;
}

/* .dataTables_wrapper .dataTables_scroll {
    padding-top: 15px;
} */

.badge-info-light {
    color: #08bde1 !important;
    background-color: #97e6f645 !important;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.up-- {
    padding-bottom: 20px !important;
}

.assign-btn {
    border: none;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    padding: 10px 3px 10px 3px;
}

.assign-container {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.assign-btn:hover {
    color: #0d6efd !important;
    border-bottom: 3px solid #0d6efd;
}

.fn-0 {
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    padding: 8px 0;
}

.assign-btn:active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
}

.assign-btn.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
}

.select2-container--default .select2-selection--multiple {
    /* background-color: #f8fafc !important; */
    border: 1px solid #cbd5e1 !important;
}

.select2-container--default .select2-selection--multiple {
    border-radius: 6px !important;
}

thead tr th {
    vertical-align: middle;
}

.modal-close {
    color: #64748b !important;
    border: 1px solid #64748bc2 !important;
    border-radius: 50% !important;
    height: 32px !important;
    width: 32px !important;
}

.modal-close i {
    font-size: 18px;
}

.hr {
    margin: 24px 0;
    border-bottom: 1px dashed var(--border-color);
}


.modal-title.main-- {
    margin-bottom: 15px;
}

.justify-content-end {
    justify-content: end;
}

.container-payin {
    background-color: #fff;
    border-radius: 1rem;
    padding: 20px;
}

.filter-small {
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid #ddd;
    background: #f8fafc;
    cursor: pointer;
    color: #555;
    transition: 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    text-decoration: none;
}

.gap-2 {
    gap: 6px !important;
}

.panel.profile-view-section {
    margin-top: 1rem;
}

.ids {
    background-color: #fff;
    padding: 4px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fw-line {
    margin-bottom: 1rem;
}

.dataTables_filter {
    position: relative;
}

.dataTables_filter input {
    padding-left: 13px !important;
    height: 30px;
    border-radius: 6px;
}

.dataTables_filter::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    transform: translateY(60%);
    color: #aaaaaa;
    font-size: 13px;
    pointer-events: none;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_filter input:focus-visible {
    outline: none !important;
    box-shadow: none;
}

table th,
table td {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.25s ease;
}

table td:hover .copy-btn,
table th:hover .copy-btn {
    opacity: 1;
    transform: translateY(0);
}

.copy-btn:hover {
    background: #0d6efd;
}

.copy-btn:active {
    transform: scale(0.9);
}

table td:hover .copy-btn,
table th:hover .copy-btn {
    opacity: 1;
}

.copy-btn {
    width: 25px;
    height: 25px;
    padding: 0;
    font-size: 13px;
    border-radius: 50%;
}

.base-text {
    color: var(--sidebar-text) !important;
    font-weight: 500 !important;
}

.log-base-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 6px;
    background: #e2e8f08c;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.theme-btn-new:hover {
    background-color: var(--sidebar-active);
    color: var(--sidebar-active-text);
}

.log-base-main:hover {
    background-color: var(--sidebar-active);
    color: var(--sidebar-active-text);
}

.base-logout {
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
}

.log-base-main:hover .base-logout {
    color: var(--sidebar-active-text);
}

.profile-avatar:hover {
    color: var(--sidebar-active-text);
}

.theme-btn-new .icon-one:hover {
    color: var(--sidebar-active-text);
}

.base-logout i {
    font-size: 15px;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    /* background-color: #66a1f914; */
    font-size: 15px;
    /* border: 1px solid #333; */
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.nav-tabs .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px 3px 0 0;
}

.detail-container {
    background: #f4f7f6;
}

.back-nav {
    margin-bottom: 1rem;
}

.card-modern {
    background: #fff;
    border: none;
    border-radius: 8px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); */
}

.card-header-modern {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    /* border-top: 4px solid #6366f1;  */
    padding: 1rem 1rem;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.card-title-modern {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

/* Striped Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* .info-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #edf2f9;
    vertical-align: middle;
} */

/* .info-label {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 500;
    width: 180px;
} */

.info-value {
    color: #1e293b;
    word-break: break-all;
}

/* Vertical Timeline */
.timeline-sidebar {
    position: relative;
    /* padding: 1rem 2.5rem 1rem 2.5rem */
}

/* .timeline-sidebar::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
} */

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #94a3b8;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #f1f5f9;
}

.timeline-dot.success {
    background: #10b981;
}

.timeline-dot.pending {
    background: #f59e0b;
}

.timeline-dot.failed {
    background: #ef4444;
}

.timeline-content {
    font-size: 0.85rem;
}

.timeline-date {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.timeline-status {
    font-weight: 600;
    color: #334155;
}

/* Detailed Log Entry */
.log-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 6px;
}

.log-item.success {
    border-left-color: #10b981;
}

.log-item.failed {
    border-left-color: #ef4444;
}

.log-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}


.detail-container {
    background: #f4f7f6;
}

.back-nav {
    margin-bottom: 1rem;
}

.card-modern {
    background: #fff;
    border: none;
    border-radius: 8px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); */
}

/* .log-header .text-muted {
    padding: 8px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.08);
} */

.card-header-modern {
    padding: 1rem 1rem;
    background: #fff;
    /* border-bottom: 3px solid #6366f1;  */
    border-radius: 8px 8px 0 0;
}

.card-title-modern {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

/* Striped Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.info-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #edf2f9;
    vertical-align: middle;
}

.info-label {
    /* background-color: #f8fafc; */
    color: #64748b;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    word-break: break-all;
}

/* Vertical Timeline */
.timeline-sidebar {
    position: relative;
    /* padding: 1rem 2.5rem 1rem 2.5rem */
}

/* .timeline-sidebar::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
} */

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #94a3b8;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #f1f5f9;
}

.timeline-dot.success {
    background: #10b981;
}

.timeline-dot.pending {
    background: #f59e0b;
}

.timeline-dot.failed {
    background: #ef4444;
}

.timeline-content {
    font-size: 0.85rem;
}

.timeline-date {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.timeline-status {
    font-weight: 600;
    color: #334155;
}





.log-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.dataTables_empty {
    text-align: center !important;
    vertical-align: middle !important;
}

.select2-container--default .select2-selection--single {
    border-radius: 6px !important;
}

.no-data-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
}

.no-data-img {
    height: 100%;
    width: auto;
}

.no-matching-record {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.filter-btn.new-day {
    font-size: 14px;
    padding: 8px;
}

.truncate-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-status h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.dataTables_filter::before:focus {
    display: none;
}

.dataTables_filter::before:hover {
    display: none;
}

.mt-3 {
    margin-top: 1rem;
}

div.dataTables_wrapper div.dataTables_paginate a.paginate_button:hover {
    color: #000 !important;
}

div.dataTables_wrapper div.dataTables_paginate span .paginate_button.current {
    color: #fff !important;
}

.add-button {
    height: 36px;
    width: 46px;
}

.width-300 {
    min-width: 300px;
}

.width-200 {
    min-width: 200px;
}

.width-190 {
    min-width: 190px;
}

.width-150 {
    min-width: 150px;
}

.width-130 {
    min-width: 130px;
}

.width-120 {
    min-width: 120px;
}

.width-110 {
    min-width: 110px;
}

.width-100 {
    min-width: 100px;
}

.width-90 {
    min-width: 90px;
}

.width-85 {
    min-width: 85px;
}

.width-80 {
    min-width: 80px;
}

.width-65 {
    min-width: 65px;
}

.user-icon-tables {
    color: #3341558c;
    font-size: 13px;
    margin-right: 5px;
    border-radius: 50%;
    border: 1px solid #3341558c;
    padding: 8px;
    width: 29px;
    height: 29px;
}

.merchant-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.merchant-text {
    text-transform: capitalize;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.perm-assign-text {
    margin: 1rem 0 1rem 0;
}

.select2.select2-container.select2-container--default {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 33.6px !important;
}

.select2-container .select2-selection--multiple {
    min-height: 33.6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-selection__rendered {
    width: 80px !important;
}

.dataTables_wrapper .dataTables_filter input:focus .dataTables_filter::before {
    content: "" !important;
}

.sidebar {
    width: 260px;
    transition: all 0.3s ease;
    /* overflow: hidden; */
}

.sidebar.collapsed {
    width: 95px;
}

.sidebar.collapsed .nav-link span,
.sidebar.collapsed .submenu-link span {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #64748bcc;
    /* box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.08); */
    font-size: 15px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    flex-direction: column;
}

.sidebar.collapsed .sidebar-brand h2 {
    font-size: 16px;
    line-height: 16px;
    margin-bottom: 8px;
}

.sidebar.collapsed .sidebar-brand h2 span {
    font-size: 12px;
}

.header-btns {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.back-nav-2 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.switch-control {
    display: flex;
}

.filter-- {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filters-new {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.tickets-view-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-flex {
    display: flex;
    align-items: baseline;
}

/* table.dataTable.no-footer {
    margin-bottom: 1rem;
} */

.table-box {
    overflow: hidden;
    overflow-x: auto;
    padding: 1rem !important;
}

.admin-gap {
    display: flex;
    align-items: end;
    gap: 20px;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: none !important;
}

.btn-space {
    display: flex;
    justify-content: end;
    gap: 15px;
}

.mt-1 {
    margin-top: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_length select {
    border-radius: 6px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    text-overflow: initial !important;
    overflow: visible !important;
}

.form-control::placeholder,
.select2-selection__placeholder,
.select2-selection__rendered {
    font-size: 0.8rem !important;
    color: #999 !important;
}

.form-select option:first-child {
    font-size: 0.8rem !important;
    color: #999 !important;
}

table thead {
    background-color: #f8fafc !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #999 !important;
}

.action-menu {
    position: relative;
    display: inline-block;
}

.action-dots {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: none;
    color: #334155;
}

.action-items {
    position: absolute;
    top: -1px;
    left: 0;
    background: #fff;
    width: auto;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 5px 25px rgb(0 0 0 / 9%);
    display: none;
    z-index: 9999;
}

.actions- {
    display: inline;
    flex-direction: column;
}

.action-menu.active .action-items {
    display: block;
}

.action-items .action-btn,
.action-items button,
.action-items a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    white-space: nowrap;
}

.action-items button:last-child,
.action-items a:last-child {
    margin-bottom: 0;
}

.flex-column {
    flex-direction: column;
}

.action-icons-modern.acquirers-only a {
    padding: 8px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-internal-autofill-selected {
    background-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: #999 !important;
}

table.dataTable>thead>tr>th {
    border-bottom: 1px solid #e2e8f0 !important;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 1rem !important;
}

#otpTimerBox {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #68778e;
}

#otpTimer {
    font-weight: 600;
}

.card-modern.status-history {
    position: sticky;
    top: 0;
    height: auto;
    border: 1px solid #eee;
}

.info-table tbody tr:nth-child(odd) {
    background-color: #f8fafc;
}

/* .detail-container .card-modern.new-modern {
    max-height: 505px;
    overflow: hidden;
    overflow-y: scroll;
} */

.card-modern.status-history .card-body {
    padding-left: 17px;
}



.detail-container {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
}

.card-modern {
    background: #fff;
    border: none;
    border-radius: 6px;
}

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

.card-modern .card-body {
    padding: 1rem;
}

.card-header-modern {
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 6px 6px 0 0;
}

.card-title-modern {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

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

.info-table td {
    padding: 0.75rem;
    border: 1px solid #edf2f9;
    vertical-align: middle;
}

.info-label {
    /* background-color: #f8fafc; */
    color: #64748b;
    font-weight: 600;
}

.info-value {
    color: #64748b;
    word-break: break-all;
}

/* .timeline-sidebar {
    position: relative;
    padding-left: 1rem;
}

.timeline-sidebar::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e2e8f0;
} */

.timeline-item {
    position: relative;
    margin-bottom: 0;
}

/* .timeline-dot {
    position: absolute;
    left: -30px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(100 116 139 / 10%);
} */

.timeline-dot.success {
    background: #10b981;
}

.timeline-dot.failed {
    background: #ef4444;
}

.timeline-dot.pending {
    background: #64748b;
}

.align-items-center {
    align-items: center;
}

.timeline-content {
    font-size: 0.85rem;
}

.timeline-date {
    border-radius: 6px;
    color: #6b7280;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
    margin-top: 8px;
}

.timeline-content .text-muted.small {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    margin-left: 4px;
}

.timeline-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: #64748b36;
    color: #64748b;
    border: 1px solid #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.log-payload {
    background: #fff;
    color: #64748b;
    padding: 18px 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, Monaco, monospace;
    border: 1px solid #edf2f9;
    /* max-height: 300px; */
    overflow-y: auto;
}

.data-log {
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 5px;
}

.card-modern::-webkit-scrollbar,
.log-payload::-webkit-scrollbar {
    width: 10px;
}

.card-modern::-webkit-scrollbar-track,
.log-payload::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-modern::-webkit-scrollbar-thumb,
.log-payload::-webkit-scrollbar-thumb {
    background: #9e9e9e;
    border-radius: 10px;
}

.card-modern,
.log-payload {
    scrollbar-width: thin;
    scrollbar-color: #9e9e9ed6 #f1f1f1;
}

.log-header .id-card {
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    color: #758398;
    font-weight: 500;
}

.toggle-password {
    position: absolute;
    top: 51.5%;
    left: 92.5%;
    font-size: 0.9rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
}

#id_password,
#id_confirm_password {
    padding-right: 45px;
}

.position-relative {
    position: relative;
}

.login-back {
    padding: 8px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #0056b3;
    counter-reset: #0056b3;
    background-color: #fff;
    width: 100%;
}

.login-back:hover {
    background: #e2e8f0;
}

.auth-container.login-- h2 {
    margin-bottom: 1.45rem;
}

.forgot-text {
    font-size: 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.forgot-text a {
    text-decoration: none;
    color: #0056b3;
}

.or-divider {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 1.2rem 0;
}

.or-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.2px;
    background: #ddd;
    transform: translateY(-50%);
}

.or-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
}







.matrix-tabs {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: #f1f3f5;
    border-radius: 32px;
    padding: 4px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

/* ===== Single Tab ===== */
.matrix-tab {
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 600;
    color: #868e96;
    z-index: 1;
    border-radius: 32px;
    transition: all 0.3s ease;
}

.matrix-tab i {
    font-size: 14px;
}

/* ===== Active Tab ===== */
.matrix-tab.active {
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Hover ===== */
.matrix-tab:hover {
    color: #2f4864;
}

.selector-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.selector-row label {
    font-weight: 600;
    white-space: nowrap;
    min-width: 140px;
    color: #64748b;
}

.selector-row .select2-container {
    flex: 1;
}

.drag-handle {
    cursor: grab;
    color: #64748b;
    font-size: 16px;
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background: #eef2ff !important;
}

.sortable-drag {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.priority-badge {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.save-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #16a34a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.modern-switch-label.label-payout i,
.modern-switch-label.label-payin i,
.profile-tab-btn i {
    margin-right: 4px;
}

.select2-selection__clear {
    display: none !important;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 8px !important;
    font-size: 0.85rem !important;
    color: #999 !important;
    font-family: inherit !important;
}

.open-file-btn {
    font-weight: 500;
    font-size: 0.75rem;
    background-color: #56a1f221;
    cursor: pointer;
    color: #0056b3;
    transition: 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    text-decoration: none;
}

.jsonViewer {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
    overflow-x: auto;
}

.viewedtext {
    position: relative;
    /* padding: 1rem;
    background: #f8fafc; */
    border-radius: 6px;
    color: #374151;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.ticket-history-item b {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ticket-history-item {
    position: relative;
    padding: 0 0 17px 25px;
    border-left: 1px solid #64748b4d !important;
    margin-left: 10px;
}

.ticket-history-date i,
.message-time span i,
.ticket-message-name i {
    margin-right: 2px;
}

.ml-0 {
    margin-left: 0;
}

.ticket-history-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: #64748b;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(100 116 139 / 10%);
}

.ticket-history-date {
    /* border-radius: 6px; */
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
    background: #fff;
    /* padding: 2px 12px; */
    font-size: 12px;
    /* width: fit-content; */
}

.ticket-message-name span {
    font-weight: 400;
    color: #6b7280;
    font-size: 12px;
}

.ticket-history-item:last-child {
    border-left: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.view-status {
    height: auto;
    border-radius: 6px;
    width: 650px;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .viewedtext {
        padding: 12px;
        font-size: 13px;
    }

    .ticket-history-item {
        padding-left: 22px;
    }
}

.fa-solid.fa-eye {
    color: #999;
}

.message-sender span i {
    color: #64748b;
    border-radius: 50%;
    border: 1px solid #64748b;
    padding: 8px;
    height: 32px;
    width: 31px;
    margin-right: 5px;
}

.bd-div {
    margin-top: 10px;
}

.history-- {
    padding: 1rem;
}

.bd-div i,
.timeline-date i {
    margin-right: 2px;
}

.view-status-custom {
    border: 1px solid #eee;
    border-radius: 6px;
}

.badge {
    width: max-content;
}

.dataTables_scrollBody {
    scrollbar-width: thin;
    scrollbar-color: #b5b5b5 #f1f1f1;
}

.dataTables_scrollBody::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b8b8b8, #8f8f8f);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    transition: all 0.3s ease;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8f8f8f, #6f6f6f);
}

.dataTables_scrollBody::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

.status-created,
.status-viewed,
.status-assigned,
.status-picked,
.status-escalated,
.status-reopened,
.status-status-changed {
    padding: 5px 11px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ticket-history-item b i {
    margin-right: 3px;
}

.status-viewed {
    background: #cff4fc8f !important;
    color: #0dcaf0 !important;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #a4eefd !important;
    letter-spacing: 0.3px;
}

.fa-solid.fa-eye.ticket {
    color: #0dcaf0 !important;

}

.status-assigned {
    color: #fd7e14;
    background-color: #fd7e1433;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #fdb36d;
}

.status-picked {
    background: #f8d7daa6;
    color: #dc3545;
    border: 1px solid #f6969f;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ticket-history-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 18px !important;

}

.ticket-history-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ticket-history-item:has(.status-created)::before {
    background: #198754;
}

.ticket-history-item:has(.status-viewed)::before {
    background: #0dcaf0;
}

.ticket-history-item:has(.status-assigned)::before {
    background: #ff9800;
}

.ticket-history-item:has(.status-picked)::before {
    background: #dc3545;
}

.status-escalated {
    background: #fde7f3;
    color: #c2185b;
    border: 1px solid #ed8fb4;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-reopened {
    background: #ede7f6;
    color: #673ab7;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-status-changed {
    background: #e5e8ea;
    color: #475569;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ticket-history-item:has(.status-escalated)::before {
    background: #c2185b;
}

.ticket-history-item:has(.status-reopened)::before {
    background: #673ab7;
    ;
}

.ticket-history-item:has(.status-status-changed)::before {
    background: #475569;
}

.logo-login h2 {
    color: var(--color-success);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.6rem;
    text-align: center;
    line-height: 21px;
    margin-bottom: 15px !important;
}

.logo-login h2 span {
    color: #333;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-link.active {
    background-color: var(--sidebar-active) !important;
    color: var(--sidebar-active-text) !important;
}

.nav-tabs .nav-link.active {
    background: none !important;
    color: #0d6efd !important;
}

.login-headline {
    font-size: 1.2rem !important;
    font-weight: 500;
}

textarea.form-control.bg-light {
    min-height: 150px;
    /* resize: none; */
}

textarea {
    min-height: 120px;
    /* resize: none; */
}

.acquirer-body {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #b5b5b5 #f1f1f1 !important;
}

.acquirer-body::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.acquirer-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mb-4 {
    margin-bottom: 1rem;
}

textarea.form-control {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b5b5b5 #f1f1f1 !important;
}

textarea.form-control::-webkit-scrollbar {
    width: 8px;
}

.select2-selection.select2-selection--multiple {
    height: 33.6px !important;
}

#select2-id_business_type-container {
    position: relative;
    top: -103px;
    right: -3px;
}

.page-subtitle.ref-subtitle {
    margin-left: 10px;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.form-select.form-select-sm.status-dropdown {
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid #ddd;
    background: #f8fafc;
    cursor: pointer;
    color: #555;
    transition: 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    text-decoration: none;
    height: 24.8px;
    width: 120px !important;
}

.ChevronIcon {
    color: #64748b;
    font-size: 14px;
}

.mb-3 {
    margin-bottom: 1rem;
}

.search-wrapper {
    position: relative;
    width: fit-content;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 52%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
    font-size: 0.7rem;
}

.search-input {
    padding-left: 38px;
}

.search-wrapper .search-input {
    padding-left: 34px;
}

.d-lock a {
    margin-bottom: 6px;
}

.action-items button,
.action-items a {
    margin-bottom: 6px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 12px !important;
}

#select2-currencies_select-container {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    top: 3px;
    left: 7px;
    width: auto !important;
}

.card-title-activity {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.panel-2 {
    background-color: #fff;
    border-radius: 6px;
    padding: 1rem;
}

.timeline.timeline-5 {
    padding: 1rem;
}

.timeline-content.times-- .timeat {
    margin-bottom: 7px;
}

.timetext {
    color: #6b7280;
    font-weight: 400;
    background: #fff;
    font-size: 12px;
    margin-left: 8px;
}

.border-main {
    border: 1px solid #eee;
    border-radius: 6px;
}

.card-body-inner {
    padding: 1rem;
}

.timetext i {
    margin-right: 3px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #1b8a51;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.avt-1 {
    color: #333;
    font-size: 0.93rem;
    font-weight: 600;
}

.msg-time {
    color: #6b7280;
    font-weight: 400;
    background: #fff;
    font-size: 14px;
    line-height: 27px;
}

.pan-head {
    flex: 1;
    min-width: 280px;
    position: sticky;
    top: 85px;
}

#comments-list {
    max-height: 379px;
    overflow-y: auto;
}

#comments-list::-webkit-scrollbar {
    width: 6px;
}

#comments-list {
    scrollbar-width: thin;
    scrollbar-color: #b5b5b5 #f1f1f1 !important;
}

#comments-list {
    max-height: 143px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
}

#remarkModel,
#commentModel {
    display: flex;
}

.large {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.small {
    color: #64748b;
    font-weight: 400;
    font-size: 12px;
}

main {
    padding: 1rem;
}

.no-comments {
    font-size: 0.8rem;
    color: #999;
}

.d-set {
    display: flex;
    justify-content: center;
}

.no-callbacks {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.topbar .topbar-filters .filter-select {
    border: 1px solid #ddddddcf !important;
    height: 36.6px !important;
}

.topbar .topbar-filter .select2-container .select2-selection--single {
    height: 36.6px !important;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.logo-login {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.logo-login img {
    height: 45px;
    width: auto;
}

.sidebar.collapsed .sidebar-logo img {
    height: 29px;
    width: auto;
    margin-bottom: 10px;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

.enab-- {
    color: #198754;
}

.acq-tab-modern:hover {
    color: #0d6efd;
}

.acq-tab-modern:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px 3px 0 0;
}

.panel-header {
    border-bottom: 1px dashed var(--border-color, #e5e7eb);
    margin-bottom: 1rem;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, #111827);
}

.form-col-full {
    width: 100%;
    padding: 0 0.5rem;
}

.media-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.media-thumb {
    height: 40px;
    padding: 24px;
    width: auto;
    margin-bottom: 7px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    padding: 6px;
}

.media-label {
    font-size: 0.75rem;
    color: #999;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(60%);
    opacity: 1;
    cursor: pointer;
}

.modal-title i {
    margin-right: 5px;
}

.pay-t-plus input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.pay-t-plus span {
    border-right: 0;
    border-left: 1px solid #cbd5e1;
}

.pay-t-plus .new {
    border-left: 0;
    border-right: 1px solid #cbd5e1;
}

#statusModelNew {
    display: flex;
}

#id_pay_mode::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.ticket-card-flex,
.dashboard-flex-row-view {
    display: flex;
}

.form-group input:focus-visible {
    outline: 0;
}

.card-body-inner-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-created {
    color: #28a745;
    background-color: #28a74533;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #89d39a;
}

.status-updated {
    color: #0d6efd;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-chargebacked {
    color: #fd7e14;
    background-color: #fd7e1433;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #fdb36d;
}

.status-reversed {
    color: #0d6efd;
    background-color: #0d6efd33;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #7db2ff;
}

.status-timeout {
    color: #6c757d;
    background-color: #6c757d33;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #adb5bd;
}

.status-changed {
    color: #fd7e14;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ticket-history-item.opportunity::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-ticket-bg-div {
    position: sticky;
    top: 86px;
    background-color: #fff;
    padding: 1rem;
    border-radius: 6px;
}

.input-icon-login {
    position: relative;
    width: 100%;
}

.input-icon-login i {
    position: absolute;
    left: 15px;
    top: 51%;
    transform: translateY(-50%);
    color: #c7c4c4 !important;
    font-size: 13px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999;
}

.input-icon-login input {
    width: 100%;
    padding-left: 45px !important;
}

#loginForm .input-icon-login input {
    width: 100%;
    padding-left: 37px !important;
}

.password-wrapper-login {
    position: relative;
}

.password-icon {
    position: absolute;
    left: 15px;
    font-size: 13px !important;
    top: 50%;
    transform: translateY(-50%);
    color: #c7c4c4 !important;
    z-index: 10;
}

.toggle-password-log {
    position: absolute;
    right: 15px;
    font-size: 13px !important;
    top: 50%;
    transform: translateY(-50%);
    color: #c7c4c4 !important;
    cursor: pointer;
    z-index: 10;
}

.otp-p {
    font-size: 13px;
    margin-bottom: 10px;
}

#id_password {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

#merchantTabs {
    margin-bottom: 1.3rem;
}

.bulk-payout-detail {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 1rem;
}

.btn-primary.resend-otp {
    font-size: 13px;
}

#otpTimerBox {
    font-size: 13px;
    color: #6c757d;
}

/** Password Policy Information Box */
.policy-box {
    background: #eef4ff;
    color: #3a5fc8;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.panel-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0 1.25rem;
}
.panel-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color, #e5e7eb);
}
.panel-divider-label {
    position: relative;
    background: var(--panel-bg, #fff);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6b7280);
}
.media-thumb-sm {
    height: 32px;
    max-width: 48px;
}