 :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --success-gradient: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            --warning-gradient: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
            --danger-gradient: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
            --processing-gradient: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
            --info-gradient: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
        }

/* Table styling */
#ordersTable {
  font-family: Arial, sans-serif;
  border-collapse: separate;
  width: 100%;
}

#ordersTable thead th {
  background-color: #f8f9fa;
  color: #343a40;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 2px solid #dee2e6;
  padding: 10px;
}

#ordersTable tbody tr {
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s;
}

#ordersTable tbody tr:hover {
  background-color: #f2f2f2;
}

#ordersTable tbody td {
  padding: 8px 10px;
  font-size: 0.9rem;
  
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  color: #fff;
}

.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #17a2b8; }
.badge-danger { background-color: #dc3545; }
.badge-secondary { background-color: #6c757d; }
.badge-dark { background-color: #343a40; }
.badge-light { background-color: #f8f9fa; color: #212529; }

/* Custom network badge colors */
.badge-mtn { background-color: #fcd116; color: #000; } /* example MTN gold */
.badge-telecel { background-color: #cc0000; color: #fff; }
.badge-airtel { background-color: #1b1294; color: #fff; }

/* Dropdown styling (if using Bootstrap) */
.dropdown-menu .active > .dropdown-item, .dropdown-item.active {
  font-weight: 700;
  background-color: #f1f1f1;
}

/* Button dropdown toggle */
.btn-outline-primary.dropdown-toggle {
  font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #ordersTable thead th,
  #ordersTable tbody td {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

.form-control-border 
{border-radius: 50px;
}




  .network-badge {
  padding: 4px 8px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}



   .network-mtn { background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%); color: #000; }
        .network-airtel { background: linear-gradient(135deg, #1b1294 0%, #22096c 100%); color: white; }
        .network-telecel { background: linear-gradient(135deg, #cc0000 0%, #dc1111 100%); color: white; }





          .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
  }

        .status-completed {
            background: var(--success-gradient);
            color: white;
           
        }


        .status-cancelled {
            background: var(--danger-gradient);
            color: white;
           
        }

        .status-refunded {
            background: var(--info-gradient);
            color: white;
           
        }

        .status-pending {
            background: var(--warning-gradient);
            color: white;
            animation: pulseOrange 2s infinite;
        }

        .status-processing {
            background: var(--processing-gradient);
            color: white;
            position: relative;
        }

        .status-processing::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 1.5s infinite;
        }

        .status-failed {
            background: var(--danger-gradient);
            color: white;
            animation: shake 0.5s ease-in-out;
        }



        td.amount {
            font-weight: bold;
            color: #0266fc;
        }



        /* html, body, .main-content {
  overflow-x: hidden !important;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
} */

.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: max-content; /* table can be wider than screen */
  min-width: 100%;    /* but won’t shrink below container */
}

table th, table td {
  white-space: nowrap;  /* prevents text from breaking layout */
}



/* * {
  outline: 1px solid red;
} */


/* * {
  background: rgba(255, 0, 0, 0.1) !important;
}

*:not(html):not(body) {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body::after {
  content: "OVERFLOW DETECTED";
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: red;
  color: white;
  padding: 5px 10px;
  display: none;
}

*:has(> *:not(html):not(body):not(script):not(style):hover) {
  outline: 3px solid blue !important;
} */
