@media (min-width:681px) {
  .floating-notification-btn {
    position: fixed;
    right: 180px;
    top: 13px;
    background-color: #007bff;
    color: #fff;
    padding: 7px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 16px; */
  }

  .notification-box {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    width: 300px;
    max-height: 530px;
    min-height: 400px;
    overflow-y: auto;
    border: 2px solid #007bff;
  }
}

.notification-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.notification-box {
  position: fixed;
  top: 60px;
  right: 20px;
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  width: 300px;
  max-height: 530px;
  min-height: 400px;
  overflow-y: auto;
  border: 2px solid #007bff;
}

.notification-box h4 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-item {
  padding: 10px;
  background: #f9f9f9;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 5px;
}

.notification-item p {
  margin: 0;
  font-weight: bold;
}

.notification-item span {
  font-size: 12px;
  color: #777;
}

/* .notification-details {
    background: #e9e9e9;
    padding: 5px;
    margin-top: 5px;
    border-radius: 5px;
  } */

.notification-details {
  max-height: 100px;
  /* Limit the height */
  overflow-y: auto;
  /* Add vertical scrolling */
  padding: 10px;
  /* Optional: add padding for readability */
  background-color: #f9f9f9;
  /* Optional: light background for details */
  border: 1px solid #ccc;
  /* Optional: border to visually separate details */
  margin-top: 5px;
  /* Space between the main content and details */
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.tabs {
  display: flex;
  margin-bottom: 15px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: #f0f0f0;
  cursor: pointer;
  border: none;
  text-align: center;
  font-size: 14px;
  margin: 4px;
  border-radius: 5px;
}

.tab.active {
  background: #007bff;
  color: #fff;
}

.notification-item.read {
  opacity: 0.6;
  /* Lower opacity for read notifications */
}

.notification-item.read:hover {
  opacity: 0.8;
  /* Slightly increase opacity on hover */
}

@media (max-width:680px) {
  .floating-notification-btn {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background-color: #007bff;
    color: #fff;
    padding: 7px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 16px; */
  }

  .notification-box {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    width: 300px;
    max-height: 530px;
    min-height: 400px;
    overflow-y: auto;
    border: 2px solid #007bff;
  }

  .custom-search {
    position: relative !important;
    right: 0 !important;
    margin-bottom: 20px;
  }


}

@keyframes redBlinking {
  0% {
    background-color: #b6c0f8;
  }

  50% {
    background-color: transparent;
  }

  100% {
    background-color: rgba(178, 186, 245, 0.563);
  }
}


.red-blinking {
  animation: redBlinking 1s infinite;
}



.custom-search {
  position: absolute;
  right: 21px;
  width: 250px;
}
:root{
  --bg:#f6f8fb; --card:#fff; --border:#e9eef5; --text:#0f172a; --muted:#65738b;
  --primary:#1d4ed8; --primary-soft:#eef2ff; --success:#16a34a; --danger:#ef4444;
}

/* page */
.page-content.dashboard-v2 { background: var(--bg); }
.dashboard-v2 .dashbord_man{ row-gap:11px; }
.dashboard-v2 .card-space{ margin-bottom:14px; }

/* tiles */
.dashboard-v2 .card.card-animate{
  background:var(--card); border:1px solid var(--border); border-radius:18px;
  box-shadow:0 6px 18px rgba(20,28,45,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-v2 .card.card-animate:hover{
  transform:translateY(-2px); box-shadow:0 10px 26px rgba(20,28,45,.10);
}

/* small label */
.dashboard-v2 .card.card-animate .card-body p.fw-medium.mb-0{
  margin-bottom:.35rem!important; font-size:13.5px; letter-spacing:.2px; color:var(--muted);
}

/* big number */
.dashboard-v2 .card.card-animate h2 .counter-value{
  font-size:32px; line-height:1.1; font-weight:700; color:var(--text);
}

/* right icon bubble */
.dashboard-v2 .avatar-sm{ width:48px; height:48px; }
.dashboard-v2 .avatar-title{
  display:flex; align-items:center; justify-content:center;
  width:48px; height:48px; background:var(--primary-soft); color:var(--primary);
  border-radius:50%; border:1px solid var(--border);
}
.dashboard-v2 .avatar-title .mdi,
.dashboard-v2 .avatar-title i{ font-size:22px; }

/* variants */
.dashboard-v2 .avatar-title.currency{ background:#ecfdf5; color:var(--success); }
.dashboard-v2 .avatar-title.alert{ background:#fff1f2; color:var(--danger); }

/* gentle blink for pending tiles */
@keyframes softBlink{
  0%,100%{ box-shadow:0 0 0 rgba(239,68,68,0); border-color:var(--border);}
  50%{ box-shadow:0 0 0 6px rgba(239,68,68,.08); border-color:#ffd2d7;}
}
.dashboard-v2 .red-blinking{ animation:redBlinking 1.4s infinite; }

/* table polish (ReactDatatable) */
.dashboard-v2 .fees_list_page .rdt_Table{ border:1px solid var(--border); border-radius:14px; overflow:hidden; background:#fff; }
.dashboard-v2 .fees_list_page .rdt_TableHead{ background:#f2f6ff; border-bottom:1px solid var(--border); }
.dashboard-v2 .fees_list_page .rdt_TableHead .rdt_TableCol{ color:#44506a; font-weight:600; font-size:13px; }
.dashboard-v2 .fees_list_page .rdt_TableBody .rdt_TableRow{ border-bottom:1px solid var(--border); }
.dashboard-v2 .fees_list_page .rdt_Pagination{ border-top:1px solid var(--border); background:#fff; }

/* links & helpers */
.dashboard-v2 .user-hover{ cursor:pointer; text-decoration:underline; }
.dashboard-v2 .pointer{ cursor:pointer; }
.dashboard-v2 a[href*="tx/"]{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size:13px;
}

/* toggle buttons */
.dashboard-v2 .btn{ border-radius:10px; }
.dashboard-v2 .btn-primary{ background:var(--primary); border-color:var(--primary); }
.dashboard-v2 .btn-outline-primary{ color:var(--primary); border-color:var(--primary-soft); background:#fff; }
.dashboard-v2 .btn-outline-primary:hover{ border-color:var(--primary); color:#fff; background:var(--primary); }

/* responsive tweak */
@media (max-width: 992px){
  .dashboard-v2 .avatar-sm,.dashboard-v2 .avatar-title{ width:42px; height:42px; }
  .dashboard-v2 .card.card-animate .card-body p.fw-medium.mb-0{ font-size:12.5px; }
  .dashboard-v2 .card.card-animate h2 .counter-value{ font-size:28px; }
}
.dashboard-v2 .card.card-animate .card-body { padding: 18px 18px; }
.dashboard-v2 .count-outer { align-items: center; }
/* .dashboard-v2 { outline: 2px solid magenta !important; } */
/* ===== Panels (the big soft boxes) ===== */
.dashboard-v2 .panel{
  background:#fff;
  border:1px solid #e3e7f3;
  border-radius:16px;
  padding:18px;
  box-shadow:none;
  transition:box-shadow 0.3s ease;
}
.hover-box:hover{
  box-shadow:0 10px 26px rgba(20,28,45,.06) !important;
}

/* panel header */
.dashboard-v2 .panel-title{
  font-weight:700; font-size:16px; color:#3b4a6b; margin-bottom:12px;
}

/* ===== METRICS ===== */

/* 1) Hero gradient metric (like "Total User Deposit", "Total BEP20 Balance") */
.dashboard-v2 .metric-hero{
  display:flex; align-items:center; justify-content:space-between;
  background: radial-gradient(circle, #BDCDFF 0%, #7b8fd0b3 100%);
  border-radius:16px; padding:18px 20px; color:#fff; position:relative;
  /* box-shadow:0 12px 26px rgba(70,90,255,.18); */
  color: #fff !important;
  box-shadow:none;
  transition:box-shadow 0.3s ease;
}
.dashboard-v2 .metric-hero:hover{
  box-shadow:0 12px 26px rgba(70,90,255,.18);
}
.dashboard-v2 .metric-hero .hero-left{ display:flex; gap:14px; align-items:center; }
.dashboard-v2 .metric-hero .hero-icon{
  width:56px; height:56px; border-radius:14px; backdrop-filter: blur(2px);
  background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.25);
}
.dashboard-v2 .metric-hero .hero-icon .mdi{ font-size:26px; color:#fff; }
.dashboard-v2 .metric-hero .hero-caption{ font-size:14px; opacity:.95; margin-bottom:4px; }
.dashboard-v2 .metric-hero .hero-value{ font-size:28px; font-weight:800; line-height:1; }
.dashboard-v2 .metric-hero .hero-cta{
  width:38px; height:38px; border-radius:10px; background:#fff; opacity:.95;
  display:flex; align-items:center; justify-content:center; color:#8aa0ff;
  border:1px solid rgba(255,255,255,.6);
}

/* 2) Small outlined “chip” metrics inside panels */
.dashboard-v2 .stat-chip{
  background:#fff;
  border:2px solid #cbd5ff;
  border-radius:14px;
  padding:14px;
  min-height:90px;
  display:flex; flex-direction:column; justify-content:center;
}
.dashboard-v2 .stat-chip .label{ color:#5d65a6; font-size:14px; margin-bottom:6px; }
.dashboard-v2 .stat-chip .value{ color:#222a55; font-weight:800; font-size:24px; }

/* KYC mini cards row look */
.dashboard-v2 .kyc-mini{
  background:#ffffff; border:1px solid #ebeefe; border-radius:14px; padding:16px;
  display:flex; align-items:center; justify-content:space-between; min-height:96px;
}
.dashboard-v2 .kyc-mini .left .title{ color:#6a6fa0; font-size:14px; margin-bottom:6px; }
.dashboard-v2 .kyc-mini .left .big{ font-weight:800; font-size:22px; color:#28315a; }
.dashboard-v2 .kyc-mini .ico{ opacity:.6; }
.dashboard-v2 .kyc-mini .ico .mdi{ font-size:28px; }

/* “pill” balance cards (TRX / USDT bottom right) */
/* Pill cards (TRX / USDT) - flatter & wider */
/* ==== Balance Pills: height + border strength + spacing ==== */
dashboard-v2 .pill
.dashboard-v2 .kyc-mini{
  border: 1px solid #cdd6ff !important;
  background: linear-gradient(180deg,#fbfcff,#f5f7ff) !important;
  border-radius: 14px !important;
}
/* One-line 8-unit grid: 4 KYC (1u) + 2 Pills (2u each) */
.kyc-balance-row{
  display:grid;
  grid-template-columns:repeat(8, minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
/* 8-unit row: 4 KYC tiles (1u each) + 2 pills (2u each) */
.kyc-balance-row{
  display:grid;
  grid-template-columns:repeat(8, 1fr);
  gap:12px;
  align-items:stretch;
  min-width:0;
}
.kyc-balance-row .kyc-col{ grid-column:span 1; min-width:0; }
.kyc-balance-row .pill-col{ grid-column:span 2; min-width:0; }

/* Equal height for ALL six tiles (matches screenshot) */
.kyc-mini,
.pill{
  height:96px;                 /* exact same height */
  border-radius:16px;
}

/* KYC mini (you already had similar; kept compact) */
.kyc-mini{
  background:#f9faff;
  border:1px solid #e1e6ff;
  padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between;
  /* box-shadow:0 6px 16px rgba(93,107,255,.08); */
}
.kyc-mini .title{ font-size:14px; color:#6f77a5; margin-bottom:6px; font-weight:600; }
.kyc-mini .big{ font-size:22px; font-weight:800; color:#1f2553; line-height:1; }
.kyc-mini .ico{
  width:44px; height:44px; border-radius:10px; display:grid; place-items:center;
  background:#eef1ff; border:1px solid #dfe3ff;
}
.kyc-mini .kyc-ico{ width:26px; height:26px; object-fit:contain; }

/* Pill cards (TRX/USDT) – width, outline, gradients, layout */
.pill{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background:linear-gradient(180deg,#f1f3ff,#eef2ff);
  border:1px solid #9fb0ff;
  box-shadow:inset 0 0 0 2px #cbd6ff, 0 10px 20px rgba(93,107,255,.12);
}
.pill .left{ display:flex; align-items:center; gap:12px; min-width:0; }
.pill .icon{
  width:48px; height:48px; border-radius:12px;
  display:grid; place-items:center; flex:0 0 48px;
  background:linear-gradient(135deg,#cbd5ff,#b7c3ff);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);
}
.pill .icon img{ width:24px; height:24px; display:block; }
.pill .text{ line-height:1; }
.pill .label{ font-size:14px; color:#5c68a2; font-weight:500; margin-bottom:4px; }
.pill .value{ font-size:24px; font-weight:800; color:#222a55; }

/* Small square CTA on right */
.pill .cta{
  width:34px; height:34px; border-radius:10px;
  background:#fff; border:1px solid #dfe5ff; color:#6c7bdc;
  display:grid; place-items:center; flex:0 0 34px;
}

/* Responsive: keep proportions from screenshot */
@media (max-width:1200px){
  .kyc-balance-row{ grid-template-columns:repeat(4,1fr); }
  .kyc-balance-row .pill-col{ grid-column:span 2; }
}
@media (max-width:680px){
  .kyc-balance-row{ grid-template-columns:repeat(2,1fr); }
  .kyc-balance-row .pill-col{ grid-column:span 2; }
}
/* Base hero (you already have some styles); we’ll override with a modifier */
.metric-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Indigo gradient version – matches your screenshot colors */
.metric-hero--indigo{
  /* Main background: radial blend BDCDFF -> 7B8FD0 */
  background:
    radial-gradient(180% 140% at 30% 45%, #BDCDFF 0%, #7B8FD0 70%);
  /* border: 1px solid rgba(123, 143, 208, 0.45); */
  /* box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    0 10px 24px rgba(77, 92, 160, 0.20); */
  color: #fff;
}

/* Soft highlight blob like the mock */
.metric-hero--indigo::before{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(50% 45% at 35% 35%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 60%);
  pointer-events:none;
}

/* Left cluster */
.metric-hero .hero-left{ display:flex; gap:14px; align-items:center; }

/* Icon tile on the left */
.metric-hero .hero-icon{
  width:48px; height:48px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.12);
}
.metric-hero .hero-icon .mdi{ font-size:22px; color:#fff; opacity:.95; }
.metric-hero .hero-icon-img{ width:24px; height:24px; object-fit:contain; filter:brightness(100%) contrast(110%); }

/* Text */
.metric-hero .hero-caption{
  font-size:14px; font-weight:400; opacity:.95; line-height:1.05;
}
.metric-hero .hero-value{
  font-size:26px; font-weight:800; line-height:1; margin-top:2px;
}

/* Right CTA square */
.metric-hero .hero-cta{
  width:36px; height:36px; border-radius:10px;
  background:#ffffff; color:#7B8FD0;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(123,143,208,0.35);
  box-shadow: 0 2px 8px rgba(68,88,160,0.18);
}
.metric-hero .hero-cta .mdi{ font-size:18px; }

/* Rounded corners like the image (slightly larger on wide rows) */
@media (min-width: 992px){
  .metric-hero { border-radius: 14px; }
}

/* Spans */
.kyc-balance-row .kyc-col{ grid-column: span 1; }
.kyc-balance-row .pill-col{ grid-column: span 2; }

/* Heights (match screenshot) */
.kyc-mini{
  min-height: 96px;               /* KYC card height */
}
.pill{
  min-height: 84px;               /* Balance pill height */
  padding: 12px 18px;
  border: 1px solid #9fb0ff;
  border-radius: 18px;
  background: transparent;
  box-shadow: inset 0 0 0 2px #cbd6ff, 0 10px 20px rgba(93,107,255,.12);
}

/* Icon tile inside pill */
.pill .left .icon{
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg,#cbd5ff,#b7c3ff);
  display:flex; align-items:center; justify-content:center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

/* Right CTA */
.pill .cta{
  width: 34px; height: 34px; border-radius: 10px;
  background:#fff; border:1px solid #dfe5ff; color:#6c7bdc;
  display:flex; align-items:center; justify-content:center;
}
/* base */
.metric-hero{
  display:flex; align-items:center; justify-content:space-between;
  border-radius:16px; padding:14px 18px; position:relative; min-height:88px;
}

/* look exactly like the screenshot */
.metric-hero--bep20{
  /* BDCDFF -> 7B8FD0 */
  background: radial-gradient(130% 130% at 22% 15%, #BDCDFF 0%, #7B8FD0 72%);
  border: 1.5px solid #b8c4ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 18px rgba(104,118,199,.10);
  color:#2a3150;   /* dark text like the shot */
}
.metric-hero--bep20::after{
  content:""; position:absolute; inset:6px; border-radius:12px;
  /* box-shadow: inset 0 0 0 2px rgba(120,135,205,.45);  thin inner outline */
  pointer-events:none;
}

/* left cluster */
.hero-left{ display:flex; align-items:center; gap:14px; }
.hero-icon{
  width:48px; height:48px; border-radius:12px; display:grid; place-items:center;
}
.hero-icon--indigo{
  background: linear-gradient(135deg,#cdd6ff,#abb9ff);
  border:1px solid #dfe4ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.hero-icon img{ width:24px; height:24px; object-fit:contain; }

.hero-caption{
  font-size:14px; font-weight:400; color:#7d86c3; letter-spacing:.2px; margin-bottom:4px;
}
.hero-value{
  font-size:26px; font-weight:800; color:#0f172a; line-height:1;
}

/* right CTA */
.hero-cta{
  width:32px; height:32px; border-radius:8px;
  display:grid; place-items:center;
  background:#fff; color:#7B8FD0;
  border:1px solid #e1e6ff;
}
.hero-cta .mdi{ font-size:18px; }

/* small hover lift (optional) */
.metric-hero--bep20:hover{
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 12px 22px rgba(104,118,199,.16);
  transform: translateY(-1px);
  transition: all .18s ease;
}
.metric-hero--bep20 {
  background: none !important;        /* removes the gradient background */
  background-color: transparent !important;
  border: 1.5px solid #b8c4ff;        /* keep the thin outline if you still want structure */
  box-shadow: none !important;        /* removes shadows */
  color: #2a3150;                     /* normal text color */
}

/* Optional: adjust hover so it doesn’t add glow */
.metric-hero--bep20:hover {
  box-shadow: none !important;
  transform: none !important;
}
/* KYC card look (subtle blue) */
.kyc-mini{
  background:#f9faff;
  border:1px solid #e1e6ff;
  border-radius:14px;
  padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between;
}
.kyc-mini .title{ font-size:14px; color:#6f77a5; margin-bottom:6px; font-weight:600; }
.kyc-mini .big{ font-size:22px; font-weight:800; color:#1f2553; line-height:1; }
.kyc-mini .ico{
  width:44px; height:44px; border-radius:10px;
  display:grid; place-items:center;
  background:#eef1ff; border:1px solid #dfe3ff;
}
.kyc-mini .kyc-ico{ width:34px; height:34px; object-fit:contain; }

/* Responsive: stack nicely on smaller screens */
@media (max-width: 1200px){
  .kyc-balance-row{ grid-template-columns: repeat(4,1fr); }
  .kyc-balance-row .pill-col{ grid-column: span 2; } /* pills still 2 units */
}
@media (max-width: 680px){
  .kyc-balance-row{ grid-template-columns: repeat(2,1fr); }
  .kyc-balance-row .pill-col{ grid-column: span 2; } /* full width on mobile */
}


/* compact table in panels */
.dashboard-v2 .table-card{
  border:1px solid #e3e7f3; border-radius:12px; overflow:hidden; background:#fff;
  box-shadow:none;
  transition:box-shadow 0.3s ease;
}
.dashboard-v2 .table-card:hover{
  box-shadow:0 6px 16px rgba(20,28,45,.06);
}
.dashboard-v2 .table-card table{ width:100%; border-collapse:collapse; }
.dashboard-v2 .table-card th{
  background:#f4f6ff; color:#4b557a; font-weight:700; font-size:14px; padding:12px 14px; border-bottom:1px solid #e3e7f3;
}
.dashboard-v2 .table-card td{
  padding:12px 14px; border-bottom:1px solid #eef1f7; color:#2d365a; font-size:14px;
}
.dashboard-v2 .tile-eq { min-height: 110px; display:flex; }
.dashboard-v2 .kyc-mini, .dashboard-v2 .pill { width:100%; }
/* equal-height mini tiles & compact panels */
.dashboard-v2 .tile-eq{min-height:110px;display:flex}
.dashboard-v2 .panel.compact .panel-title{margin-bottom:8px}
.dashboard-v2 .panel.compact .table-card{padding:0}

/* wide total bars at bottom */
.dashboard-v2 .totals-bar{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 6px 18px rgba(20,28,45,.06);
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px;
}
.dashboard-v2 .totals-bar .label{font-weight:600;color:var(--muted)}
.dashboard-v2 .totals-bar .value{font-size:30px;font-weight:800;color:var(--text)}
/* KPI panels (Network / Fee) */
.dashboard-v2 .kpi-panel{
  background:var(--card); border:1px solid var(--border); border-radius:18px;
  box-shadow:0 6px 18px rgba(20,28,45,.06);
  padding:18px 20px;
}
.dashboard-v2 .kpi-panel .kpi-header{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:12px;
}
.dashboard-v2 .kpi-panel .kpi-header h5{
  margin:0; font-size:20px; font-weight:700; color:var(--text);
}
.dashboard-v2 .kpi-panel .kpi-value{
  font-size:32px; font-weight:800; color:var(--text);
}

/* Tabs bar (Recent Transaction) */
.dashboard-v2 .tabbar{
  display:flex; gap:18px; margin:10px 0 6px; position:relative;
  border-bottom:1px solid var(--border);
}
.dashboard-v2 .tabbar .tab2{
  appearance:none; background:transparent; border:0; padding:12px 16px;
  border-bottom:3px solid transparent; font-weight:700; color:#6b7690; border-radius:10px 10px 0 0;
}
.dashboard-v2 .tabbar .tab2.active{
  color:var(--text); border-color:#9fb0ff; background:#eef2ff;
}

/* Make selects/buttons match */
.dashboard-v2 .kpi-panel .form-select,
.dashboard-v2 .kpi-panel .btn{
  height:44px; border-radius:12px;
}
.dashboard-v2 .kpi-panel .btn-toggle{
  width:100%;
}
/* Tighter panels */
.dashboard-v2 .panel.panel-tight{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 6px 18px rgba(20,28,45,.06);
  padding:16px 18px;       /* tighter than default */
}

/* Section title spacing */
.dashboard-v2 .panel.panel-tight .panel-title{
  font-weight:800; color:var(--text);
  margin:2px 0 14px 0;     /* small, no big gaps */
}

/* Tight grid – no Bootstrap gutters */
.dashboard-v2 .stat-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;                /* very small gap to match image */
}

/* A tile that spans 2 columns (for Promo / Support) */
.dashboard-v2 .stat-grid .span-2{ grid-column: span 2; }

/* Chip styling */
.dashboard-v2 .stat-chip{
  border:1px solid var(--border);
  border-radius:14px;
  background:#f6f7ff; 
  box-shadow: inset 0 0 0 2px #cbd6ff;                   /* light lilac like screenshot */
  padding:14px;
  height:110px;                           /* consistent height */
  display:flex; flex-direction:column; justify-content:space-between;
}
.dashboard-v2 .stat-chip .label{
  font-weight:500; color:#6c76a0; line-height:1.2;
}
.dashboard-v2 .stat-chip .value{
  font-size:26px; font-weight:800; color:var(--text);
}

/* User management numbers look identical */
.dashboard-v2 .um-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.dashboard-v2 .um-grid .stat-chip{ background:#eef1ff; }

/* Table card sits tight under the chips */
.dashboard-v2 .table-card-tight{
  border:1px solid var(--border); border-radius:14px; overflow:hidden; background:#fff;
  margin-top:14px;
}

/* Remove outer column spacing between left & right panels */
.dashboard-v2 .card-space-tight{ margin-bottom:12px; }
@media (max-width:992px){
  .dashboard-v2 .stat-grid,
  .dashboard-v2 .um-grid{ grid-template-columns:repeat(2,1fr); }
  .dashboard-v2 .stat-grid .span-2{ grid-column: span 2; }
}
/* 1) Remove Bootstrap's vertical gutter inside the dashboard */
.dashboard-v2 .row{ --bs-gutter-y:0 !important; }   /* Bootstrap 5 variable */
.dashboard-v2 .card-space{ margin-bottom:12px !important; } /* tight spacing */

/* 2) Ensure hero and the next panel sit flush */
/* .dashboard-v2 .metric-hero{ margin-bottom:12px !important; } */
.dashboard-v2 .metric-hero + .card-space,
.dashboard-v2 .metric-hero + .card-space-tight,
.dashboard-v2 .metric-hero + .col-12{
  margin-top:0 !important; padding-top:0 !important;
}

/* 3) If a column renders empty, hide it so it doesn't reserve height */
.dashboard-v2 .tile-eq:empty,
.dashboard-v2 .col-12:empty,
.dashboard-v2 [class*="col-"]:empty{ display:none !important; }

/* Tight panel + chips (keeps your look) */
.dashboard-v2 .panel.panel-tight{ padding:16px 18px; border-radius:18px; }
.dashboard-v2 .um-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.dashboard-v2 .stat-chip{ height:110px; padding:14px; }
/* Tight gutters to match screenshot */
.row.gx-3 { --bs-gutter-x: 12px; }
.row.gy-3 { --bs-gutter-y: 12px; }

/* Panels, metric cards, minis */
.panel {
  background:#fff; border:1px solid var(--border); border-radius:16px;
  padding:16px 16px 14px; box-shadow:0 6px 18px rgba(20,28,45,.06);
}
.panel .panel-title{ font-weight:700; color:#4a5380; margin:0 0 10px; }

.metric-hero{
  display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(180deg,#c9d5ff 0%, #eaefff 100%);
  border:2px solid rgba(120,135,205,.45); border-radius:16px; padding:16px 18px;
}
.metric-hero.subtle{ background:#f2f4ff;  }
.metric-hero .hero-left{ display:flex; gap:12px; align-items:center; }
.metric-hero .hero-icon{
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  background:#eef2ff; color:#5b6ee6; border-radius:12px; border:1px solid #e0e7ff;
}
.metric-hero .hero-caption{ font-weight:400; color:#fff; }
.metric-hero .hero-value{ font-size:28px; font-weight:800; color:#fff; }
.metric-hero .hero-cta{ width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid #dfe6ff; border-radius:10px; color:#6d79ff; }
.metric-hero .btn-ghost{ background:#fff; border:1px solid #e7ecff; border-radius:10px; padding:6px 8px; }

.mini-card{
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:14px 12px;
  box-shadow:0 6px 18px rgba(20,28,45,.06);
}
.mini-left{ display:flex; align-items:center; gap:10px; }
.mini-icon{
  width:42px; height:42px; border-radius:12px; border:1px solid #e1e7ff; background:#eef2ff;
  display:flex; align-items:center; justify-content:center; color:#5b6ee6; font-size:18px;
}
.mini-title{ font-weight:600; color:#4d5983; }
.mini-value{ font-size:24px; font-weight:800; color:#2d3150; }

/* 4 tight chips per row (like the 4 KPI boxes inside panels) */
.stat-grid.four-tight{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:12px;
}
@media (max-width: 1200px){
  .stat-grid.four-tight{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .stat-grid.four-tight{ grid-template-columns: 1fr; }
}

.stat-chip{
  background:#f7f8ff; border:1px solid #e3e8ff; border-radius:14px; padding:12px 12px;
}
.stat-chip .label{ color:#54618c; font-weight:600; }
.stat-chip .value{ font-size:24px; font-weight:800; color:#2d3150; margin-top:4px; }
.stat-chip.chip-box{ background:#fff; }

/* Tables inside panels should be very tight (like screenshot) */
.table-card-tight{
  background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden;
  box-shadow:none;
  transition:box-shadow 0.3s ease;
}
.table-card-tight:hover{
  box-shadow:0 6px 16px rgba(20,28,45,.06);
}

/* Bring overall spacing closer (matches screenshot rhythm) */
.dashboard-v2 .card-space,
.dashboard-v2 .card-space-tight{ margin-bottom:12px; }

/* Page background + base tokens */
.tm-screen {
  --tm-bg: #f3f4fb;
  --tm-card: #ffffff;
  --tm-border: rgba(20, 22, 50, 0.08);
  --tm-soft: #eef0fb;
  --tm-primary: #5a64ff;      /* soft indigo */
  --tm-accent: #8aa1ff;
  --tm-text: #262b40;
  --tm-muted: #7b8199;
  --tm-success: #2db37b;
  --tm-warning: #ffb84a;

  background: var(--tm-bg);
}

/* consolidated: moved duplicate .tm-tabs definitions to a single canonical block near line ~2102 */

.tm-tab {
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 14px 12px 12px;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 15px;
  height: 30px;
  color: #4b5db1;
  position: relative;
  white-space: nowrap;
}

.tm-tab--active {
  background: #FFFFFF;
  color: #15256C;
  font-weight: 700;
}


/* KPI cards grid */
.tm-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.tm-kpi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 14px;
}
.tm-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef1ff, #e6eaff);
  display: grid;
  place-items: center;
  color: var(--tm-primary);
  font-size: 20px;
}
.tm-kpi-content { line-height: 1; }
.tm-kpi-title { font-size: 12px; color: var(--tm-muted); }
.tm-kpi-value { font-size: 20px; font-weight: 800; margin-top: 6px; }
.tm-kpi-cta {
  margin-left: auto;
  border: 1px solid var(--tm-border);
  background: #fff;
  color: var(--tm-muted);
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
}

/* Data panel wrapper */
.tm-panel.card {
  border-radius: 14px !important;
  border: 1px solid var(--tm-border);
  background: #fff;
  padding: 0;
}

/* Toolbar above table */
.tm-panel-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tm-border);
}
.tm-rows {
  display: flex; gap: 8px; align-items: center; color: var(--tm-muted); font-weight: 600;
}
.tm-select {
  width: 70px;
  background: #f7f8ff;
  border-color: var(--tm-border);
  border-radius: 10px;
}

.tm-search-proxy {
  flex: 1;
  max-width: 380px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--tm-border);
  background: #f8f9ff;
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--tm-muted);
}
.tm-search-proxy input {
  border: 0; background: transparent; width: 100%; outline: none; color: var(--tm-text);
}

/* Export button */
.tm-export {
  appearance: none;
  border: 1px solid rgba(90, 100, 255, 0.25);
  background: linear-gradient(180deg, #f1f3ff, #e8ebff);
  color: var(--tm-primary);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
}

/* Make the internal datatable search look like screenshot */
.rdt-toolbar .rdt-search,
.rdt-toolbar .dataTables_filter {
  width: 100%;
}
.rdt-toolbar .rdt-search input,
.dataTables_filter input {
  width: 100% !important;
  border: 1px solid var(--tm-border) !important;
  background: #f8f9ff !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
}

/* Table look */
.table,
.rdt-table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}
.rdt-table thead th {
  color: var(--tm-muted) !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--tm-border) !important;
}
.rdt-table tbody tr {
  background: #fff !important;
  border: 1px solid var(--tm-border) !important;
}
.rdt-table tbody tr td {
  padding: 12px 10px !important;
}

/* Small helpers */
.tm-link { color: var(--tm-primary); font-weight: 600; }
.tm-addr { font-size: 12px; color: #666; margin-top: 2px; }

/* Action buttons */
.tm-btn-outline {
  border: 1px solid var(--tm-border);
  background: #fff;
  color: var(--tm-primary);
  border-radius: 10px;
  padding: 6px 10px;
}
.tm-btn-warning {
  border: 1px solid rgba(255, 184, 74, 0.35);
  background: #fff7ea;
  color: #b86b00;
  border-radius: 10px;
  padding: 6px 10px;
}

/* Pagination look */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid var(--tm-border) !important;
  background: #fff !important;
  color: var(--tm-text) !important;
  border-radius: 10px !important;
  margin: 0 4px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(180deg, #eef1ff, #e9ecff) !important;
  color: var(--tm-primary) !important;
  border-color: rgba(90, 100, 255, 0.3) !important;
}

/* Transaction Monitoring Styles */
.tm-screen {
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* consolidated: see single .tm-tabs definition near line ~2102 */

.tm-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tm-tab:hover {
  color: #495057;
}

.tm-tab--active {
  color: #0f216b;
  border-bottom-color: #0f216b;
  font-weight: 600;
}

.tm-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.tm-kpi {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.tm-kpi-icon {
  width: 48px;
  height: 48px;
  background: #f0f7ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tm-kpi-content {
  flex: 1;
}

.tm-kpi-title {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 4px;
}

.tm-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #212529;
  line-height: 1;
}

.tm-kpi-cta {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #f8f9fa;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.2s ease;
}

.tm-kpi-cta:hover {
  background: #e9ecef;
  color: #495057;
}

.tm-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.tm-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: #fafbfc;
}

.tm-rows {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6c757d;
}

.tm-select {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  background: white;
}

.tm-search-proxy {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
  gap: 8px;
  min-width: 200px;
}

.tm-search-proxy input {
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  color: #6c757d;
}

.tm-export {
  background: #0f216b;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.tm-export:hover {
  background: #0a1a5a;
}

/* Table styles */
.tm-table-container {
  background: white;
}

.tm-panel .table {
  margin-bottom: 0;
  border-collapse: collapse;
}

.tm-panel .table th {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
}

.tm-panel .table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  font-size: 14px;
  color: #495057;
  vertical-align: top;
}

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

.tm-link {
  color: #0f216b;
  text-decoration: none;
  font-weight: 500;
}

.tm-link:hover {
  color: #0a1a5a;
  text-decoration: underline;
}

.tm-addr {
  font-size: 12px;
  margin-top: 4px;
}

.tm-addr a {
  color: #6c757d;
  text-decoration: none;
  font-family: monospace;
}

.tm-addr a:hover {
  color: #495057;
  text-decoration: underline;
}

.tm-btn-outline {
  background: transparent;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tm-btn-outline:hover {
  background: #f8f9fa;
  color: #495057;
}

.tm-btn-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tm-btn-warning:hover {
  background: #ffeaa7;
  color: #6c5a00;
}

/* Pagination */
.tm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fafbfc;
  border-top: 1px solid #e9ecef;
  font-size: 14px;
  color: #6c757d;
}

.tm-pagination-info {
  font-size: 14px;
  color: #6c757d;
}

.tm-pagination-controls {
  display: flex;
  gap: 8px;
}

.tm-pagination-btn {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.2s ease;
}

.tm-pagination-btn:hover:not(:disabled) {
  background: #f8f9fa;
  color: #495057;
}

.tm-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Main content adjustments */
.app-content .main-content {
  margin-left: 0;
  flex: 1;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .tm-kpis { grid-template-columns: 1fr; }
  .tm-panel-toolbar { flex-wrap: wrap; gap: 10px; }
  .tm-search-proxy { order: 3; flex: 1 1 100%; }
  
  .app-layout {
    flex-direction: column;
  }
  
  .app-content {
    width: 100%;
  }
}
/* App Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Container */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f5f4fb;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.app-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.app-header__left {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
}

.app-header__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.3px;
  line-height: 1;
}

.logo-text--dark {
  color: #0f216b;
}

.logo-text--light {
  color: #4a9eff;
}

/* Search */
.searchbar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;              /* expanded width for left position */
  height: 38px;
  padding: 0 16px 0 16px;
  background: #E6EAF8;
  border: 1px solid #c7d2fd;
  border-radius: 8px;
}

.searchbar__icon {
  opacity: 0.6;
  margin-right: 12px;
  color: #6c757d;
}

.searchbar__input {
  flex: 1 1 auto;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #495057;
}

.searchbar__input::placeholder {
  color: #adb5bd;                /* faint placeholder */
}

/* Icon pills */
.icon-pill-group {
  display: flex;
  gap: 12px;
}

.icon-pill {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  outline: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.icon-pill:hover {
  background: #e9ecef;
  color: #495057;
}

.icon-pill.is-active {
  background: #0f216b;
  color: #ffffff;
  border-color: #0f216b;
  box-shadow: 0 2px 4px rgba(15, 33, 107, 0.2);
}

/* Red dot on bell */
.pill-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  border: 2px solid #f8f9fa;
}

/* User dropdown button */
.header-user .userbtn {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
}

.userbtn:hover {
  background: rgba(15, 33, 107, 0.06);
}

.userbtn__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.userbtn__name {
  display: none;                 /* mimic screenshot (icons only) */
  font-weight: 600;
  color: #111a3b;
}

@media (min-width: 1280px) {
  .userbtn__name { display: inline; }
}
/* Root palette (light + dark) */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --soft-card: #f0f2ff;
  --text: #1e2144;
  --muted: #6f7393;
  --primary: #5d6bff;
  --primary-2: #7a82ff;
  --border: #e5e7f2;
  --kpi-grad-1: #eef0ff;
  --kpi-grad-2: #e6e8ff;
  --chip: #eef0ff;
  --table-head: #f4f6ff;
  --table-row: #ffffff;
  --table-row-alt: #fafbff;
  --shadow: 0 10px 24px rgba(20, 24, 60, 0.06);
}

.theme-dark,
[data-theme="dark"] {
  --bg: #0e1020;
  --card: #15182b;
  --soft-card: #191c31;
  --text: #e9ecff;
  --muted: #a6add6;
  --primary: #8ea1ff;
  --primary-2: #b2bbff;
  --border: #242948;
  --kpi-grad-1: #191c31;
  --kpi-grad-2: #1d2040;
  --chip: #232649;
  --table-head: #1b1f38;
  --table-row: #15182b;
  --table-row-alt: #141734;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Layout wrappers */
.tm-screen {
  background: var(--bg);
  min-height: 100vh;
}
.container-fluid {
  padding: 0 18px 24px 18px;
}

/* consolidated: see single .tm-tabs definition near line ~2102 */

.tm-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  font-weight: 400;
  font-size: 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.tm-tab:hover { background: var(--soft-card); color: rgb(126, 188, 254); }
.tm-tab--active {
  color: var(--text);
  background: linear-gradient(180deg, var(--kpi-grad-1), var(--kpi-grad-2));
  box-shadow: inset 0 0 0 1px var(--border);
}

/* KPI cards row */
.tm-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}
@media (max-width: 680px) {
  .tm-kpis { grid-template-columns: 1fr; }
}

.tm-kpi {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, var(--kpi-grad-1), var(--kpi-grad-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.tm-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(120px 120px at -20% -20%, #cdd4ff 0%, rgba(205,212,255,0) 60%), var(--soft-card);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--border);
}

.tm-kpi-content { display: grid; align-items: center; }
.tm-kpi-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}
.tm-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.tm-kpi-cta {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  display: grid; place-items: center;
  transition: all .2s ease;
}
.tm-kpi-cta:hover { color: var(--primary); box-shadow: var(--shadow); }

/* Panel + toolbar */
.card.tm-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

.tm-panel-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--table-head);
}
@media (max-width: 880px) {
  .tm-panel-toolbar {
    grid-template-columns: 1fr;
  }
}

.tm-rows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}
.tm-select {
  height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.tm-search-proxy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  min-width: 260px;
  color: var(--muted);
}
.tm-search-proxy i { font-size: 18px; }
.tm-search-proxy input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  color: var(--text);
}

.tm-export {
  justify-self: end;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  transition: all .2s ease;
}
.tm-export:hover { color: var(--primary); box-shadow: var(--shadow); }

/* ReactDatatable table look */
.tm-panel table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tm-panel thead th {
  background: var(--table-head);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  text-transform: none;
}
.tm-panel tbody td {
  background: var(--table-row);
  color: var(--text);
  font-size: 14px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tm-panel tbody tr:nth-child(even) td { background: var(--table-row-alt); }

.tm-link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}
.tm-link:hover { color: var(--primary-2); text-decoration: underline; }

.tm-address {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
}

/* Icon button inside tables */
.tm-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: all .2s ease;
}
.tm-icon-btn:hover { color: var(--primary); box-shadow: var(--shadow); }

/* ReactDatatable pagination area (generic selectors that component outputs) */
.rdt_Pagination,
.react-bootstrap-table-pagination, 
.pagination, 
.rdt_TableFooter {
  border-top: 1px solid var(--border) !important;
  background: var(--card) !important;
  padding: 10px 12px !important;
  color: var(--muted) !important;
}

/* If your datatable renders .table class */
.tm-panel .table thead th { background: var(--table-head); }
.tm-panel .table tbody tr:nth-child(even) { background: var(--table-row-alt); }

/* Utility */
.mdi { line-height: 1; font-size: 18px; }
/* === Kill top gap above the first metric (Total User Deposit) === */
.app-content .main-content .page-content.dashboard-v2 { 
  padding-top: 0!important;        /* if page-content was adding padding */
}

.page-content.dashboard-v2 .container-fluid { 
  padding-top: 1 !important;        /* safety: container top padding */
}

.page-content.dashboard-v2 .dashbord_man { 
  margin-top: 2 !important;         /* safety: row top margin */
}

/* First card in the grid should sit flush to the header */
.dashboard-v2 .card-space:first-child,
.dashboard-v2 .metric-hero { 
  margin-top: 2!important; 
  padding-top: 2 !important;        /* prevents inner vertical gap look */
}
/* KYC Tiles (modern glass-like look) */
.dashboard-v2 .kyc-mini {
  background: #f9faff;
  border: 1px solid #e1e6ff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.dashboard-v2 .kyc-mini .left .title {
  font-size: 14px;
  color: #6f77a5;
  margin-bottom: 6px;
  font-weight: 400;
}

.dashboard-v2 .kyc-mini .left .big {
  font-size: 22px;
  font-weight: 800;
  color: #1f2553;
  line-height: 1;
}

.dashboard-v2 .kyc-mini .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef1ff;
  border: 1px solid #dfe3ff;
}

.dashboard-v2 .kyc-mini .ico .kyc-ico {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
/* ===== exddvt palette ===== */
:root{
  --ex-bg:#F3F4FB;
  --ex-card:#ffffff;
  --ex-soft:#F0F1FB;
  --ex-border:#E3E6FB;
  --ex-text:#2B2F43;
  --ex-muted:#6A6FA0;
  --ex-indigo:#6572E3;
  --ex-indigo-2:#8EA0FF;
}

/* section wrapper + title */
.ex-section{ background:transparent; margin-bottom:18px; }
.ex-section__title{
  font-weight:700; color:#5b63a4; margin:0 0 10px; font-size:16px;
}

/* 2-column grid */
.ex-grid-2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ex-gap-20{ gap:20px; }
.ex-mt-16{ margin-top:16px; }

@media (max-width: 992px){
  .ex-grid-2{ grid-template-columns:1fr; }
}

/* soft metric cards (Compliances NDD/STR) */
.ex-metric{
  display:flex; align-items:center; justify-content:space-between;
  border: 2px solid rgba(120, 135, 205, .45); border-radius:14px; padding:16px 16px;
  background: linear-gradient(180deg, #F5F6FF, #EDF0FF);
  box-shadow: inset 0 0 0 1px #EAEFFF, 0 6px 16px rgba(93,107,255,.08);
}
.ex-metric--soft{ background: linear-gradient(180deg,#F4F6FF,#ECEFFE); height: 93px;}
.ex-metric__left{ display:flex; align-items:center; gap:12px; }
.ex-metric__ico{
  width:54px; height:54px; border-radius:14px; display:grid; place-items:center;
  background: linear-gradient(
  90deg,
  #7B8FD0 0%,
  #B2C3F7 35%,
  #BDCDFF 50%,
  #B2C3F7 62%,
  #7B8FD0 99%
);

  border:1px solid #DDE3FF;
}
.ex-metric__ico img{ width:30px; height:30px; object-fit:contain; }
.ex-metric__label{ font-weight:400; color:#5b63a4; }
.ex-metric__value{ font-size:28px; font-weight:800; color:var(--ex-text); line-height:1; }
.ex-metric__cta{
  width:36px; height:36px; border-radius:10px;
  border:1px solid var(--ex-border); background:#fff; color:#6C7BDC; display:grid; place-items:center;
}

/* generic card (Network / Fee) */
.ex-card{
  background:var(--ex-card);
  border:1px solid var(--ex-border);
  border-radius:14px;
  padding:16px;
  box-shadow:none;
  transition:box-shadow 0.3s ease;
}
.ex-card:hover{
  box-shadow:0 6px 16px rgba(20,28,45,.06);
}
.ex-card__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.ex-card__title{ font-weight:500; color:#5368AF; font-size:15px; }
.ex-card__total{ font-size:28px; font-weight:700; color:var(--ex-text); }

/* labels + selects + buttons */
.ex-label{ display:block; font-weight:500; color:#6a6fa0; margin-bottom:6px; }
.ex-select{
  height:44px; border-radius:10px; border:1px solid var(--ex-border);
  background:#fff;
}
.ex-btn{
  height:44px; border-radius:10px; font-weight:700; border:1px solid var(--ex-border);
}
.ex-btn--primary{ background:#0f216b; color:#fff; border-color:#0f216b; }
.ex-btn--ghost{ background:#fff; color:#0f216b; }

/* tabs */
.ex-tabs{ display:flex; gap:10px; border-bottom:1px solid var(--ex-border); margin-bottom:10px; }
.ex-tab{
  appearance:none; border:0; background:transparent; padding:10px 14px;
  color:#6b739f; font-weight:700; border-bottom:3px solid transparent; border-radius:8px 8px 0 0;
}
.ex-tab.is-active{ color:var(--ex-text); background:#EEF1FF; border-bottom-color:#9fb0ff; }

/* table card */
.ex-tablecard{
  border:1px solid var(--ex-border); border-radius:12px; overflow:hidden; background:#fff;
}
.ex-tablecard table{ width:100%; border-collapse:collapse; }
.ex-tablecard thead th{
  background:#F4F6FF; border-bottom:1px solid var(--ex-border);
  color:#4b557a; font-weight:700; font-size:14px; padding:12px 14px; text-align:left;
}
.ex-tablecard tbody td{
  border-bottom:1px solid #EEF1F7; color:#2d365a; font-size:14px; padding:12px 14px;
}
.ex-tablecard tbody tr:hover td{ background:#F8F9FF; }

/* page background like screenshot */
.page-content.dashboard-v2{ background:var(--ex-bg); }
/* consolidated: see single .tm-tabs definition near line ~2102 */

.tm-tab {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #1D2473;
  padding: 14px 10px 12px;
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: all 0.2s ease;
}

/* hover effect */
.tm-tab:hover {
  color: rgb(126, 188, 254);
}

/* active tab – white with underline */
.tm-tab--active {
  background: #fff;
  font-weight: 700;
  color: #172063;
  border-bottom: none;
}

.btn-primary1{
  background-color: "#001966" !important;
}

/* ===== Page width & alignment (match screenshot) ===== */
.container-fluid {
  max-width: 1240px;          /* increase width like the image */
  margin: 0 auto;             /* center the whole content */
  padding: 0 18px 24px 18px;  /* tidy side padding */
}

/* Soft page background */
.tm-screen { background: #F3F2FA !important; }

/* canonical .tm-tabs lives here */
.tm-tabs{
  display:flex; align-items:center;
   padding:0 0px; 
   height: 30px;
   box-shadow: 0 2px 1px rgb(147, 166, 220, 0.6);
   border-radius: 15px 15px 0 0;
}
.tm-tab{
  background:transparent; border:0; cursor:pointer;
  padding:14px 12px 12px; border-radius:8px 8px 0 0;
  font-weight:600; font-size:15px; color:#99a6e0;
  position:relative;
}


/* ===== KPI cards (outline, spacing, sizes) ===== */
.tm-kpis{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:18px; margin:18px 0;
  padding: 25px;
  border-radius: 14px;
  background: #fff;
}
.tm-kpi{
  display:flex; align-items:center; gap:14px; position:relative;
  padding:22px; border-radius:14px;
  background:#e3efff;
  border: 2px solid #ccd6f9;           /* same border tint as image */
  box-shadow: none;                      /* flat */
}
.tm-kpi-icon{
  width:56px; height:56px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(145deg,#EEF1FF,#E6EAFF);
  color:#878999;
  border:1px solid #DCE2FF;
}
.tm-kpi-title{ font-size:14px; color:#6D74A0; }
.tm-kpi-value{ font-size:24px; font-weight:800; color:#20264F; }
.tm-kpi-cta{
  position:absolute; right:16px; top:16px;
  width:34px; height:34px; border-radius:10px;
  border:1px solid #DDE2F6; background:#fff; color:#7A84C6;
}

/* ===== Panel (big card with toolbar + table) ===== */
.tm-panel.card{
  border-radius:14px !important;
  border:1.5px solid #D5DCF5 !important;   /* same border feel */
  background:#FFFFFF; padding:0; box-shadow:none;
}
.tm-panel-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:16px 18px;
  border-bottom:1.5px solid #E3E7FA; background:#FBFCFF;
}
.tm-rows{ display:flex; gap:10px; color:#6D74A0; font-weight:600; }
.tm-select{ height:36px; border-radius:10px; background:#fff; border:1px solid #DDE2F6; }

.tm-search-proxy{
  flex:1; max-width:520px;                /* wider like screenshot */
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:12px;
  background:#F7F8FF; border:1px solid #DDE2F6; color:#6D74A0;
}
.tm-search-proxy input{ width:100%; border:0; outline:0; background:transparent; }

.tm-export{
  border:1px solid rgba(90,100,255,.25);
  background:linear-gradient(180deg,#F1F3FF,#E8EBFF);
  color:#5A64FF; font-weight:700; padding:8px 14px; border-radius:12px;
}

/* ===== Table look (row borders + cell spacing) ===== */
.tm-panel table{ width:100%; border-collapse:separate; border-spacing:0; }
.tm-panel thead th{
  background:#F4F6FF; color:#4B557A; font-weight:700;
  padding:14px; font-size:14px; text-align:left;
  border-bottom:1.5px solid #E3E7FA;
}
.tm-panel tbody td{
  background:#fff; color:#2D365A; font-size:14px; padding:14px;
  border-bottom:1px solid #EEF1F7; vertical-align:top;
}
.tm-link{ color:#0F216B; font-weight:600; }
.tm-address{ font-size:12px; color:#6D74A0; }

/* ===== Pagination (right corner buttons look) ===== */
.dataTables_wrapper .dataTables_paginate{
  padding:14px 18px; border-top:1.5px solid #E3E7FA; background:#FBFCFF;
}
.dataTables_wrapper .dataTables_paginate .paginate_button{
  border:1px solid #DDE2F6 !important; background:#fff !important;
  color:#2D365A !important; border-radius:10px !important; margin:0 4px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current{
  background:linear-gradient(180deg,#EEF1FF,#E9ECFF) !important;
  color:#82849f !important; border-color:rgba(90,100,255,.3) !important;
}

/* 0) Make the content row tight under the header */
.app-header { margin-bottom: 0 !important; }
.main-content, .page-content { padding-top: 0 !important; }
.container-fluid { padding-top: 0 !important; }

/* consolidated: see single .tm-tabs definition near line ~2102 */

/* 2) Exact tab pill + blue underline (unchanged look) */
.tm-tab{
  background: transparent; border: 0; cursor: pointer;
  padding: 14px 12px 12px;
  border-radius: 8px 8px 0 0;
  font-weight: 600; font-size: 15px; color: #15256C;
  position: relative;
}
.tm-tab--active{
  background: #FFFFFF !important; color: #001966 !important; font-weight: 400 !important;
}
.tm-tab--active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2px; border-radius:2px;
  background: linear-gradient(90deg,#3EA0FF 0%, #6CB6FF 100%);
}

/* 3) Keep the rest of the page at full width too */
.app-layout, .app-content, .main-content, .page-content, .tm-screen {
   overflow-x: hidden;
}

/* 4) Optional: widen the center area slightly for panels/tables */
.container-fluid{/* increase body width similar to your screenshot */
  margin: 0 auto;
  padding-left: 5px; padding-right: 5px;
}
/* index.css or App.css */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.custom-table th,
.custom-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.custom-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.custom-table td {
  background-color: #fff;
}

.custom-table .no-data {
  text-align: center;
  color: #777;
  font-style: italic;
}

.custom-table td {
  background-color: #fafafa;
}
.tm-panel.card { border-radius: 14px; padding: 0; overflow: hidden; }

.tm-panel-toolbar,
.tm-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card, #fff);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tm-table-footer { border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 0; }

.tm-rows { display: flex; align-items: center; gap: 8px; }
.tm-select { 
  padding: 6px 10px; 
  border-radius: 8px; 
  border: 1px solid #E0E0E0;
  background: #FFFFFF;
  color: #333333;
}

.tm-search-proxy {
  display: flex; 
  align-items: center; 
  gap: 8px;
  padding: 6px 10px; 
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  background: #FFFFFF;
  color: #333333;
}
.tm-search-proxy input {
  color: #333333;
}
.tm-search-proxy input::placeholder {
  color: #A0A0A0;
}
.tm-search-proxy input { border: none; outline: none; background: transparent; min-width: 220px; }

.table-container { 
  width: 100%; 
  overflow-x: auto; 
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
}
.custom-table {
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0;
  background: #fff;
  border: none;
}
.custom-table thead th {
  position: sticky; 
  top: 0; 
  z-index: 1;
  background: #FFFFFF;
}
.table-header, .table-data {
  border-bottom: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
  padding: 12px 16px; 
  font-size: 14px;
  color: #333333;
}
.table-header { 
  font-weight: 700; 
  user-select: none; 
  white-space: nowrap;
  background: #FFFFFF;
}
.table-header:last-child {
  border-right: none;
}
.table-data { 
  white-space: nowrap;
  background: #FFFFFF;
}
.table-data:last-child {
  border-right: none;
}
.tm-table tbody tr:nth-child(even) .table-data {
  background: #F8F8FC;
}
.tm-table tbody tr:last-child .table-data {
  border-bottom: none;
}

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

.is-sortable { cursor: pointer; }
.sort-caret {
  display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #bbb; transform: translateY(2px);
}
.sort-caret.is-desc { border-top-color: transparent; border-bottom: 6px solid #555; border-top: 0; }
.sort-caret.is-asc { border-top-color: #555; }

.no-data { text-align: center; color: #777; padding: 28px 12px; }

.tm-table-footer .tm-info { color: #333333; }
.tm-pagination { display: flex; gap: 8px; align-items: center; }
.tm-pagination button {
  padding: 6px 10px; 
  border: 1px solid #E0E0E0;
  background: #FFFFFF; 
  border-radius: 8px; 
  cursor: pointer;
  color: #333333;
}
.tm-pagination button:hover:not(:disabled) {
  background: #F8F8FC;
}
.tm-pagination button[disabled] { opacity: 0.5; cursor: not-allowed; }
.tm-page { color: #444; }
/* Page background + top spacing */
.bs-wrap {
  background: #F4F3FF; /* very light lilac */
}

/* Top filter row */
.bs-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 12px 8px 12px;
}
/* Container holding the two buttons */
.bs-actions {
  display: flex;
  gap: 10px;
}

/* Base button style */
.bs-pill {
  border: 1.8px solid #0B1B52;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background-color: transparent;
  color: #0B1B52;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease-in-out;
}

/* Dark filled active button */
.bs-pill--primary {
  background-color: #0B1B52;
  color: #fff;
  border-color: #0B1B52;
}

/* On hover */
.bs-pill:hover {
  background-color: #0B1B52;
  color: #fff;
}

/* Caret arrow style */
.caret {
  font-size: 12px;
  margin-left: 4px;
}


/* Right total at top */
.bs-total {
  font-weight: 600;
  color: #0B1B52;
  font-size: 18px;
}
.bs-total span { font-weight: 800; }

/* Reusable card */
.bs-card {      /* subtle purple border */
  background: transparent !important;
  border-radius: 14px;
  margin: 12px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Controls row inside card */
.bs-card__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 14px;
  margin-bottom: 8px;
}
.bs-field label {
  display: block;
  color: #3A416F;
  font-size: 13px;
  margin-bottom: 6px;
}
.bs-input {
  width: 100%;
  height: 40px;
  border: 1px solid #DAD7F3;
  border-radius: 10px;
  background: #FFFFFF;
  color: #0B1B52;
  padding: 0 12px;
}

/* Header inside card: download left, legend/total right */
.bs-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 2px 8px;
}

/* Download link style */
.bs-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #0B1B52;
  font-weight: 600;
  cursor: pointer;
}
.bs-download .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #0B1B52; display: inline-block;
}

/* Legend hint (top-right mimic) */
.bs-legend-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0B1B52;
  font-weight: 600;
}
.legend-swatch {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.legend-swatch--dark { background: #0B1B52; }
.legend-swatch--blue { background: #79B7FF; }
.legend-gap { width: 14px; }

/* Total on right (for the smaller cards) */
.bs-total-right {
  color: #0B1B52;
  font-weight: 700;
}

/* Chart area: fixed height & padding like screenshot */
.bs-chart {
  height: 360px;         /* match visual height */
  padding: 6px 2px 2px 2px;
}

/* Bootstrap grid spacing mimic */
.g-3 { row-gap: 16px; }

/* Optional: tweak container to edge-to-edge inside page */

/* Inputs (date placeholders lighten) */
.bs-input::placeholder { color: #A5A9C4; }
/* Layout wrap tint */
.bs-wrap { background: #F4F5FC; }

/* Top bar */
.bs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.bs-actions { display: flex; gap: 16px; }

/* Total text on the right */
.bs-total {
  font-weight: 800;
  font-size: 24px;
  color: #1d2442;
}
.bs-total span { font-weight: 900; }

/* Card */

.bs-card__controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bs-field label {
  display: block;
  font-size: 12px;
  color: #4c4f64;
  margin-bottom: 6px;
}
.bs-input {
  height: 40px;
  border: 1px solid #D9D8F0;
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
  width: 100%;
  background: #FBFBFF;
}
.bs-input:focus { border-color: #a9a5e8; }

.bs-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
}

.bs-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: #0B1B52;
}
.bs-download .dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: #0B1B52; display: inline-block;
}
.bs-legend-hint { display: flex; align-items: center; gap: 12px; color: #0B1B52; }
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-swatch--dark { background: #0B1B52; }
.legend-swatch--blue { background: #79B7FF; }
.legend-gap { width: 10px; }

/* Chart area height */
.bs-chart { width: 100%; height: 360px; }

/* Total right inside card header */
.bs-total-right { font-weight: 800; color: #1d2442; }

/* ---- Pills & Dropdown (matches screenshot) ---- */
.pillmenu { position: relative; display: inline-block; }

.bs-pill {
  border: 1px solid #C9C2F2;
  background: #FFFFFF;
  color: #0B1B52;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.bs-pill--primary {
  background: #0D1E66;
  color: #FFFFFF;
  border-color: #0D1E66;
}
.bs-pill .caret { margin-left: 6px; opacity: 0.9; }

/* Popover */
.bs-dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(13, 30, 102, 0.18);
  border: 1px solid #E3E2F6;
  padding: 10px 12px;
  z-index: 50;
}
.bs-dd-item {
  font-weight: 800;
  color: #0B1B52;
  padding: 8px 4px;
  cursor: pointer;
}
.bs-dd-item:hover { color: #0D1E66; }
.bs-dd-divider {
  height: 1px; width: 100%;
  background: #E7E6F7; margin-top: 8px;
}
.table-wrap { overflow-x: auto; }
.bs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bs-table th, .bs-table td {
  border: 1px solid rgba(11,27,82,0.2);
  padding: 10px 12px;
  text-align: left;
}
.bs-table thead th {
  background: #f6f7fb;
  color: #0B1B52;
  font-weight: 700;
}
.no-data { text-align: center; color: #8B90A8; }
.bs-wrap { padding: 0 12px; }

.bs-topbar {
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px;
}
.bs-actions { display:flex; align-items:center; gap:10px; }
.bs-total { font-weight:700; color:#0B1B52; }
.bs-total span { margin-left:6px; }

.segmented { display:inline-flex; border:1px solid #d9dbe7; border-radius:999px; padding:3px; background:#fff; }
.seg-btn { border:0; background:transparent; padding:6px 14px; border-radius:999px; font-weight:600; color:#0B1B52; cursor:pointer; }
.seg-btn.active { background:#0B1B52; color:#fff; }

.pillmenu { position:relative; }
.bs-pill { border:1px solid #d9dbe7; padding:8px 12px; border-radius:999px; background:#fff; font-weight:600; color:#0B1B52; }
.bs-pill--primary { background:#0B1B52; color:#fff; }
.caret { margin-left:8px; }

.bs-dd { position:absolute; top:110%; left:0; background:#fff; border:1px solid #e7e8f1; border-radius:10px; min-width:120px; box-shadow:0 8px 24px rgba(0,0,0,0.08); z-index:20; }
.bs-dd-item { padding:8px 12px; cursor:pointer; }
.bs-dd-item:hover { background:#f6f7fb; }

.bs-card__controls { display:flex; gap:12px; flex-wrap:wrap; }
.bs-field { display:flex; flex-direction:column; gap:6px; min-width:200px; }
.bs-input { height:38px; border:1px solid #d9dbe7; border-radius:10px; padding:0 10px; }

.bs-card__header { margin:10px 0 6px; display:flex; justify-content:space-between; align-items:center; }
.bs-download { display:flex; align-items:center; gap:8px; background:transparent; border:0; cursor:pointer; color:#0B1B52; }
.bs-download .dot { width:8px; height:8px; border-radius:50%; background:#0B1B52; display:inline-block; }

.bs-chart { height:440px; }
/* ===== Page background + basic spacing (no extra containers) ===== */
#layout-wrapper .page-content {
  background: #E6EAF8;              /* soft lilac page bg */
  padding: 10px 10px 28px;
}
.container-fluid.p-0.mt-2 { padding: 0 !important; }

/* ===== Top bar ===== */
.bs-topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:14px;
}
.bs-actions{ display:flex; align-items:center; gap:12px; }
.bs-total{ font-weight:800; color:#0B1B52; font-size:20px; }
.bs-total span{ margin-left:6px; }

/* ===== Segmented (Buy / Sell) ===== */
.segmented{
  display:inline-flex; gap:4px;
  border:1px solid #dfe2f2; border-radius:999px; padding:4px; background:#fff;
}
.seg-btn{
  border:0; background:transparent; padding:8px 16px;
  border-radius:999px; font-weight:700; color:#0B1B52; cursor:pointer;
}
.seg-btn.active{ background:#0B1B52; color:#fff; }

/* ===== Currency pill dropdown ===== */
.pillmenu{ position:relative;  }
.bs-pill{
  border:3px solid #0B1B52; padding:14px 23px; border-radius:12px;
  background:transparent; font-weight:700; color:#0B1B52; line-height:1; cursor:pointer;
}
.bs-pill--primary{ background:#0B1B52; color:#fff; border-color:#0B1B52; }
.caret{ margin-left:8px; font-size:12px; opacity:.9; }

.bs-dd{
  position:absolute; top:110%; left:0; z-index:30;
  background:#fff; border:1px solid #e8ebf8; border-radius:12px;
  min-width:130px; box-shadow:0 10px 26px rgba(13,31,84,.12);
  padding:6px;
}
.bs-dd-item{ padding:8px 10px; border-radius:8px; cursor:pointer; color:#0B1B52; font-weight:600; }
.bs-dd-item:hover{ background:#f6f7fb; }

/* ===== Card (single chart container) ===== */

.bs-card__controls{
  display:grid; gap:14px; flex-wrap:wrap; margin-bottom:10px;
}
.bs-field{ display:flex; flex-direction:column; gap:6px; min-width:240px; }
.bs-field label{ color:#7d84a6; font-weight:600; font-size:13px; }

.bs-input{
  height:40px; border:1px solid #0B1B52; border-radius:10px;
  padding:0 12px; outline:none; background:transparent; color:#0B1B52;
  margin-bottom:10px;
}
.bs-input::placeholder{ color:#a5abc6; }

/* Header row inside card */
.bs-card__header{
  display:flex; justify-content:space-between; align-items:center;
  margin:6px 0 4px;
}
.bs-download{
  display:flex; align-items:center; gap:10px;
  background:transparent; border:0; color:#0B1B52; cursor:pointer; font-weight:700;
}
.bs-download .dot{
  width:10px; height:10px; border-radius:50%; background:#0B1B52; display:inline-block;
}
.bs-total-right{ font-weight:800; color:#0B1B52; }

/* Chart box height to match screenshot */
.bs-chart{ height:440px; }

/* ===== Chart.js grid/labels vibe already set in JS; keep these for safety ===== */
:root{
  --grid-color: rgba(11,27,82,0.08);
  --axis-text: #8B90A8;
}

/* Small screens polish */
@media (max-width: 768px){
  .bs-total{ font-size:18px; }
  .bs-field{ min-width:180px; }
}
.management-wrap .page-content {
  background: #f4f5ff;
  padding: 20px 22px;
}

/* ===== Tabs ===== */
.tab-bar {
  display: flex;
  border-bottom: 2px solid #e2e4f0;
  margin-bottom: 18px;
  gap: 12px;
}
.tab-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  color: #0b1b52;
  cursor: pointer;
  font-size: 15px;
}
.tab-btn.active {
  background: #fff;
  color: #0b1b52;
  box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.06);
  border-bottom: 2px solid #0b1b52;
}

/* ===== Summary boxes ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.summary-card {
  background: #ffffff;
  border: 1.5px solid #dfe2f2;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.04);
}
.summary-card h4 {
  color: #7b7f9e;
  font-size: 14px;
  margin-bottom: 8px;
}
.summary-card p {
  font-size: 22px;
  font-weight: 700;
  color: #0b1b52;
}

/* ===== Table wrapper ===== */
.data-table-wrap {
  background: #ffffff;
  border: 1.5px solid #dfe2f2;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.03);
}
.page-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 8px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.subnav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  /* padding-bottom: 8px; */
  /* margin-bottom: 14px; */
  overflow-x: auto;
}

.subnav-btn {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.subnav-btn.active {
  background: var(--card, #edf1f7);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
}
:root{
  --bg: #f3f4fb;          /* page bg */
  --surface: #ffffff;     /* cards */
  --divider: #e6e8f3;     /* light line */
  --border: #dfe3f1;      /* card border */
  --text: #111827;        /* dark text */
  --muted: #5f6b85;       /* muted text */
  --primary: #6b8cff;     /* blue underline */
  --radius: 14px;
  --shadow: 0 6px 22px rgba(15,23,42,.06);
}

/* overall page background like screenshot */
.page-wrap{
  background: var(--bg);
  padding: 0 16px 22px;
}

/* white rounded page card */
.page-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Tabs row UNDER header, INSIDE page */
.tabs-row{
  display: flex;
  align-items: flex-end;
  gap: 28px;
  min-height: 62px;
  padding:30px; 
  border-bottom: 1px solid var(--divider);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(2px);
}

/* individual tab button */
.tabs-btn{
  position: relative;
  border: none;
  background: transparent;
  height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 15px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--muted);
  border-radius: 12px 12px 0 0;        /* rounded top pill like screenshot */
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.tabs-btn:hover{ color:#3b4562; transform: translateY(-1px); }

/* active tab = white pill + thin blue underline */
.tabs-btn.is-active{
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 var(--surface) inset, 0 -1px 0 var(--surface) inset;
}
.tabs-btn .tabs-underline{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  background: transparent;
  border-radius: 999px;
  pointer-events: none;
}
.tabs-btn.is-active .tabs-underline{ background: var(--primary); }

/* body area that contains KPIs / toolbar / table from your tab components */
.page-body{
  padding: 18px;
}

/* responsive */
@media (max-width: 1024px){
  .tabs-row{ gap: 18px; min-height: 56px; }
  .tabs-btn{ height: 44px; padding: 0 12px; font-size: 14px; }
  .page-body{ padding: 14px; }
}
:root{
  --bg: #f3f4fb;
  --surface: #ffffff;
  --divider: #e6e8f3;
  --border: #dfe3f1;
  --text: #111827;
  --muted: #5f6b85;
  --primary: #6b8cff;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(15,23,42,.06);
}

/* soft page background */
.page-bg{
  background: var(--bg);
  padding: 16px;      /* keeps the card away from edges */
}

/* the white page card that CONTAINS tabs + content */
.page-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;   /* ensures tabs are visually clipped to the card */
}

/* optional small title row inside card, above tabs */
.card-titlebar{
  padding: 14px 18px 6px 18px;
}
.card-title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* ----- TABS (INSIDE THE CARD) ----- */
.tabs-row{
  display: flex;
  align-items: flex-end;
  gap: 28px;
  min-height: 58px;
padding:30px; 
  border-bottom: 1px solid var(--divider);
  background: rgba(255,255,255,.9);
}

.tabs-btn{
  position: relative;
  border: none;
  background: transparent;
  height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 15px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--muted);
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.tabs-btn:hover{ color:#3b4562; transform: translateY(-1px); }

.tabs-btn.is-active{
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 var(--surface) inset, 0 -1px 0 var(--surface) inset;
}

.tabs-btn .tabs-underline{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;  /* sits on the row divider */
  height: 3px;
  background: transparent;
  border-radius: 999px;
  pointer-events: none;
}
.tabs-btn.is-active .tabs-underline{ background: var(--primary); }

/* card body (your KPIs / toolbar / table render here) */
.page-body{
  padding: 18px;
}

/* responsive */
@media (max-width: 1024px){
  .tabs-row{ gap: 18px; min-height: 52px; }
  .tabs-btn{ height: 42px; padding: 0 12px; font-size: 14px; }
  .page-body{ padding: 14px; }
}
/* =============== TAB BAR (inside page section) =============== */
.tabs-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding:30px; 
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  margin-bottom: 12px;
}

/* Tab button */
.tabs-btn {
  position: relative;
  border: none;
  background: transparent;
  height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 15px/1 "Inter", system-ui, sans-serif;
  color: #6b7280; /* gray */
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tabs-btn:hover {
  color: #4b5563;
  transform: translateY(-1px);
}

/* Active tab styling */
.tabs-btn.is-active {
  color: #111827;
  font-weight: 700;
}

.tabs-btn.is-active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 3px;
  background: #6b8cff; /* your accent blue */
  border-radius: 999px;
}

/* subtle hover underline preview */
.tabs-btn:not(.is-active):hover::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: rgba(107, 140, 255, 0.2);
  border-radius: 999px;
}

/* =============== Table Container Adjustments =============== */
.product-list-outer {
  border-radius: 0 0 12px 12px;
  border: 1px solid #e5e7eb;
  border-top: none; /* merge visually with tab bar */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.tm-page {
  background: #f5f4fb;
  padding: 20px;
  border-radius: 12px;
}

/* Tabs */

.tm-tabs .tm-tab {
  width: 100%;
}

/* consolidated: see single .tm-tabs definition near line ~2102 */

.tm-tab {
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-weight: 400;
  font-size: 14px;
  color: #001966;
  cursor: pointer;
  border-radius: 15px 15px 0 0
}

.tm-tab.active {
  color: #000;
  background: #f4f2fa;
  border-bottom: 3px solid #5b6bc5;
}

/* KPI Cards */
.tm-stat-row {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.tm-stat-box {
  flex: 1;
  background: #f2f0fb;
  border: 1px solid #cfd3f9;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(200, 205, 250, 0.5);
}

.tm-stat-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(180deg, #cfd6ff, #a8b3ff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(90, 105, 255, 0.25);
}

.tm-label {
  margin: 0;
  color: #555;
  font-weight: 600;
  font-size: 16px;
}

.tm-value {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 700;
  color: #222;
}

.tm-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  border: none;
  color: #5b6bc5;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(90, 100, 240, 0.2);
}

/* Toolbar */
.tm-toolbar {
  background: white;
  border: 1px solid #e3e3f6;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tm-toolbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tm-toolbar-left select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e3e3f6;
}

.tm-search {
  border: 1px solid #e3e3f6;
  border-radius: 10px;
  padding: 8px 12px;
}

.tm-export {
  background: white;
  border: 1px solid #e3e3f6;
  border-radius: 10px;
  padding: 8px 15px;
  cursor: pointer;
}

/* Table */
.tm-table-container {
  background: white;
  border: 1px solid #e3e3f6;
  border-radius: 12px;
  margin-top: 20px;
}

.tm-table {
  width: 100%;
  border-collapse: collapse;
}

.tm-table th {
  background: #f4f2fa;
  color: #666;
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #e3e3f6;
}

.tm-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e3e3f6;
}

.tm-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.icon-btn.blue {
  background: #e0e6ff;
  color: #3f51e8;
}

.icon-btn.red {
  background: #fde5e5;
  color: #c0392b;
}

.icon-btn.gray {
  background: #f0f0f0;
  color: #444;
}

/* Footer */
.tm-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  color: #666;
}

.pager-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e3e3f6;
  border-radius: 8px;
  background: white;
  margin-left: 6px;
  cursor: pointer;
}
/* ====== Root / tokens ====== */
:root{
  --bg:#f3f4fb;                  /* page bg (very light lilac/gray) */
  --card:#ffffff;                /* cards/table bg */
  --text:#1f2337;                /* primary text */
  --muted:#6f7893;               /* secondary text */
  --primary:#6b6ef5;             /* icon/cta blue-violet */
  --primary-600:#5b5ee5;
  --primary-100:#eef0ff;
  --stroke:#e6e8f2;              /* light borders */
  --chip:#eef2ff;
  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;
  --radius:16px;
  --shadow:0 6px 18px rgba(26, 36, 77, .06);
  --shadow-soft:0 2px 8px rgba(26, 36, 77, .05);
}

*{box-sizing:border-box}
html,body,#root{height:100%}
body{background:var(--bg); color:var(--text);}

/* ====== Page wrapper ====== */
.tm-page-wrapper{padding:0px}
.tm-page{margin-top:18px}

/* ====== Tab row (top) ====== */
.tabs-row{
  display:flex; gap:24px; align-items:center;
  padding:30px; flex-wrap:wrap;
  border-bottom:1px solid var(--stroke);
  background:transparent;
}
.tabs-btn{
  appearance:none; border:0; cursor:pointer;
  padding:12px 18px; border-radius:999px;
  font-weight:600; font-size:14px; letter-spacing:.2px;
  color:var(--muted); background:transparent;
  transition:all .2s ease;
}
.tabs-btn:hover{background:var(--chip); color:var(--text)}
.tabs-btn.is-active{
  background:var(--card); color:var(--text);
  box-shadow:var(--shadow-soft); border:1px solid var(--stroke);
}

/* ====== KPI cards grid (like screenshot) ====== */
.tm-stats-row{
  display:grid; grid-template-columns:repeat(4,minmax(220px,1fr));
  gap:18px; margin:22px 0;
}
.tm-stat{
  position:relative; display:flex; align-items:center; gap:16px;
  background:var(--card); border:1px solid var(--stroke);
  border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-soft);
}
.tm-stat__icon{
  width:52px; height:52px; display:grid; place-items:center;
  background:var(--primary-100); border-radius:12px;
  border:1px solid var(--stroke);
}
.tm-stat__icon .fa{font-size:22px; color:var(--primary)}
.tm-stat__text h4{margin:0 0 6px; font-size:16px; color:var(--muted); font-weight:600}
.tm-stat__text p{margin:0; font-size:26px; font-weight:800; letter-spacing:.2px}
.tm-stat__btn{
  position:absolute; right:14px; bottom:14px;
  width:34px; height:34px; border-radius:10px;
  border:1px solid var(--stroke); background:var(--card);
  box-shadow:var(--shadow-soft); cursor:pointer; color:var(--muted);
}
.tm-stat__btn:hover{color:var(--primary); border-color:var(--primary-100)}

/* ====== Toolbar (rows per page, search, filter/export) ====== */
.tm-toolbar{
  display:flex; justify-content:space-between; align-items:center;
  background:var(--card); border:1px solid var(--stroke);
  border-radius:calc(var(--radius) + 2px); padding:14px 16px;
  box-shadow:var(--shadow-soft); margin:12px 0 16px;
}
.tm-toolbar-left{display:flex; gap:12px; align-items:center}
.tm-toolbar select{
  height:38px; border:1px solid var(--stroke); border-radius:10px;
  background:#fafbff; padding:0 10px; outline:none; color:var(--text);
}
.tm-toolbar input[type="search"]{
  width:320px; height:38px; border:1px solid var(--stroke);
  border-radius:999px; outline:none; padding:0 40px 0 40px;
  background:#fafbff; color:var(--text);
}
.tm-toolbar input[type="search"]::placeholder{color:#9aa2b1}

/* optional magnifier */
.tm-toolbar input[type="search"]{
  background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21l-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z' stroke='%239aa2b1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:12px center;
}
.tm-export-btn{
  display:flex; gap:8px; align-items:center; height:38px;
  padding:0 14px; border-radius:10px; border:1px solid var(--stroke);
  background:var(--card); cursor:pointer; color:var(--text);
}
.tm-export-btn:hover{border-color:var(--primary-100); color:var(--primary)}

/* ====== Table ====== */
.tm-table-container{
  background:var(--card); border:1px solid var(--stroke);
  border-radius:calc(var(--radius) + 2px); overflow:hidden; box-shadow:var(--shadow);
}
.tm-table{width:100%; border-collapse:separate; border-spacing:0}
.tm-table thead th{
  text-align:left; font-size:13px; letter-spacing:.3px; color:var(--muted);
  font-weight:700; padding:14px 16px; background:#fafbff; border-bottom:1px solid var(--stroke);
}
.tm-table tbody td{
  padding:14px 16px; border-bottom:1px solid var(--stroke); font-size:14px;
}
.tm-table tbody tr:last-child td{border-bottom:0}
.tm-table .link{color:var(--primary); font-weight:700; cursor:pointer}

/* ====== Row action icons (right column) ====== */
.tm-actions{display:flex; gap:10px}
.icon-btn{
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:999px; border:1px solid var(--stroke);
  background:#f7f8ff; cursor:pointer; transition:.15s ease;
}
.icon-btn .fa{font-size:14px}
.icon-btn.blue  {background:var(--chip)}
.icon-btn.red   {background:#fff1f2}
.icon-btn.gray  {background:#f3f4f6}
.icon-btn:hover {transform:translateY(-1px); box-shadow:var(--shadow-soft)}
.icon-btn.blue:hover {border-color:var(--primary-100); color:var(--primary)}
.icon-btn.red .fa{color:var(--danger)}
.icon-btn.gray .fa{color:var(--muted)}

/* ====== Footer / pagination ====== */
.tm-footer{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px; background:#fafbff; border-top:1px solid var(--stroke);
}
.tm-footer span{color:var(--muted); font-size:13px}
.pager-btn{
  width:34px; height:34px; border-radius:10px; background:var(--card);
  border:1px solid var(--stroke); cursor:pointer; margin-left:6px;
}
.pager-btn:hover{border-color:var(--primary-100); color:var(--primary)}

/* ====== Utilities / layout fixes ====== */
#layout-wrapper .main-content{background:var(--bg)}
/* keep Header above tabs like screenshot */
.main-content > .tm-page-wrapper{margin-top:0}

/* ====== Responsive ====== */
@media (max-width:1200px){
  .tm-stats-row{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .tm-stats-row{grid-template-columns:1fr}
  .tm-toolbar{flex-direction:column; gap:10px; align-items:stretch}
  .tm-toolbar-left{justify-content:space-between}
  .tm-toolbar input[type="search"]{width:100%}
}
/* =============== TOKENS (tuned to screenshot) =============== */
:root{
  --page-bg:#f2f3fa;
  --card-bg:#ffffff;
  --ink:#1f2240;
  --muted:#6f7693;
  --blue:#6c7be8;         /* accent text/icon */
  --blue-200:#cfd7ff;     /* soft bg tint */
  --blue-300:#aab7f2;     /* border tint on cards */
  --blue-400:#8ea0ee;
  --line:#dfe3f3;         /* separators */
  --radius-outer:14px;    /* containers/pills */
  --radius-inner:12px;    /* cards/inputs */
  --shadow:0 6px 18px rgba(24,36,84,.05);
  --shadow-soft:0 2px 10px rgba(24,36,84,.04);
}
*{box-sizing:border-box}
body{background:var(--page-bg); color:var(--ink);}

/* Keep header above; content padding like screenshot */
#layout-wrapper .main-content{background:var(--page-bg);}
.tm-page-wrapper{padding:5px 0px 0px;}

/* =================== TABS ROW =================== */
.tabs-row{
  display:flex; gap:26px; align-items:flex-end;
padding:30px; 
  border-bottom:1px solid var(--line);
}
.tabs-btn{
  appearance:none; border:none; background:transparent; cursor:pointer;
  padding:10px 18px; border-radius:24px;
  color:var(--ink); font-weight:700; font-size:17px; letter-spacing:.2px;
  position:relative;
}
.tabs-btn.is-active{
  background:var(--card-bg);
  box-shadow:var(--shadow-soft);
  border:1px solid var(--blue-300);
}
.tabs-btn.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-13px;
  height:3px; border-radius:3px; background:var(--blue-400);
}

/* Make sure KPI row is below the tabs, not inside */
.tabs-row + .tm-stats-row{margin-top:18px}

/* =================== KPI CARDS =================== */
.tm-stats-row{
  display:grid; gap:18px;
  grid-template-columns:repeat(4,minmax(240px,1fr));
}
.tm-stat{
  display:flex; align-items:center; gap:18px; position:relative;
  background:var(--card-bg);
  border:1.5px solid var(--blue-300);
  border-radius:18px; padding:20px 22px;
}
.tm-stat__icon{
  width:56px; height:56px; display:grid; place-items:center;
  background:var(--blue-200);
  border:1.5px solid var(--blue-300);
  border-radius:14px;
}
.tm-stat__icon .fa{font-size:22px; color:var(--blue)}
.tm-stat__text h4{
  margin:0 0 6px; font-size:16px; color:var(--muted); font-weight:700; line-height:1.15;
}
.tm-stat__text p{margin:0; font-size:26px; font-weight:800; letter-spacing:.2px;}
.tm-stat__btn{
  position:absolute; right:14px; bottom:14px; width:34px; height:34px;
  border-radius:12px; background:var(--card-bg); border:1px solid var(--blue-300);
  color:var(--muted); cursor:pointer;
}

/* =================== SEARCH / ROWS BAR =================== */
.tm-toolbar{
  margin-top:18px;
  background:var(--card-bg); border:1px solid var(--line);
  border-radius:18px; box-shadow:var(--shadow-soft);
  padding:14px 16px;
  display:flex; justify-content:space-between; align-items:center;
}
.tm-toolbar-left{display:flex; gap:14px; align-items:center; color:var(--ink);}
.tm-toolbar select{
  height:40px; border:1px solid var(--line); border-radius:12px;
  background:#fafbff; padding:0 12px; outline:0;
}
.tm-toolbar input[type="search"]{
  width:360px; height:40px; border-radius:28px; outline:0;
  border:1px solid var(--blue-300); background:#f8f9ff; color:var(--ink);
  padding:0 16px 0 44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:14px center;
}
.tm-export-btn, .filter-btn{
  height:40px; padding:0 14px; border-radius:12px;
  border:1px solid var(--line); background:var(--card-bg); cursor:pointer;
  display:flex; align-items:center; gap:8px; color:var(--ink);
}

/* =================== DATA TABLE =================== */
.tm-table-container{
  margin-top:16px;
  background:var(--card-bg); border:2px solid var(--line);
  border-radius:18px; overflow:hidden; box-shadow:var(--shadow);
}
.tm-table{width:100%; border-collapse:separate; border-spacing:0;}
.tm-table thead th{
  background:#f7f8ff; color:var(--muted);
  font-size:14px; font-weight:800; letter-spacing:.3px;
  padding:14px 16px; text-align:left; border-bottom:1px solid var(--line);
}
.tm-table tbody td{
  padding:16px; border-bottom:1px solid var(--line);
  font-size:14px; color:var(--ink);
}
.tm-table tbody tr:last-child td{border-bottom:none;}
.tm-table .link{color:#5670f3; font-weight:700;}

/* Action chip row (blue circular buttons) */
.tm-actions{display:flex; gap:12px}
.icon-btn{
  width:36px; height:36px; display:grid; place-items:center;
  background:#e8ecff; border:1px solid var(--blue-300);
  border-radius:50%; cursor:pointer; transition:transform .12s ease;
}
.icon-btn:hover{transform:translateY(-1px)}
.icon-btn .fa{font-size:14px; color:#425fe8}
.icon-btn.red{background:#ffe9ee; border-color:#ffd0d8}
.icon-btn.red .fa{color:#e24b5b}
.icon-btn.gray{background:#f1f2f6; border-color:#e6e9f4}
.icon-btn.gray .fa{color:#7a829c}

/* =================== FOOTER / PAGINATION =================== */
.tm-footer{
  display:flex; justify-content:space-between; align-items:center;
  background:#f7f8ff; border-top:1px solid var(--line); padding:12px 14px;
}
.tm-footer span{color:var(--muted); font-size:13px}
.pager-btn{
  width:38px; height:38px; border-radius:12px; margin-left:8px;
  border:1px solid var(--blue-300); background:var(--card-bg); color:#4a5be2; cursor:pointer;
}

/* =================== RESPONSIVE =================== */
@media (max-width:1200px){ .tm-stats-row{grid-template-columns:repeat(2,1fr);} }
@media (max-width:780px){
  .tm-stats-row{grid-template-columns:1fr;}
  .tm-toolbar{flex-direction:column; gap:10px; align-items:stretch;}
  .tm-toolbar input[type="search"]{width:100%;}
}
/* KPI grid layout */
.tm-stats-row {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(260px, 1fr)); /* ⬅️ wider cards */
  margin-top: 20px;
}

/* KPI card box */
.tm-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  background: var(--card-bg);
  border: 1.5px solid var(--blue-300);
  border-radius: 16px;
  padding: 14px 20px; /* ⬅️ reduced vertical padding (was ~20–22px) */
  height: 100px; /* ⬅️ fix height slightly lower */
  min-height: 95px; /* ensures consistent height even if content wraps */
  box-shadow: var(--shadow-soft);
}

/* Icon box inside KPI */
.tm-stat__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--blue-200);
  border: 1.5px solid var(--blue-300);
  border-radius: 12px;
}

.tm-stat__icon .fa {
  font-size: 20px;
  color: var(--blue);
}

/* KPI text block */
.tm-stat__text h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
}

.tm-stat__text p {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

/* Small corner button */
.tm-stat__btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--blue-300);
  color: var(--muted);
  cursor: pointer;
}
.tm-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.tm-stat {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f4fc; /* light lilac background */
  border: 1.5px solid #c6c9f3;
  border-radius: 14px;
  padding: 18px 22px;
  height: 100px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.tm-stat:hover {
  transform: translateY(-2px);
}

.tm-stat__text h4 {
  margin: 0 0 4px;
  color: #4d4e75;
  font-size: 15px;
  font-weight: 500;
}

.tm-stat__text p {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  color: #2c2d4a;
}

/* image icon */
.tm-stat__icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-left: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
  .tm-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .tm-stats-row {
    grid-template-columns: 1fr;
  }
}
/* ====== Layout / background ====== */
.uh__wrap {
  --bg: #f3f5fb;          /* page bg like screenshot */
  --card: #ffffff;        /* panels */
  --text: #0f172a;        /* headings */
  --muted: #6b7280;       /* tab inactive text */
  --line: #e5e7eb;        /* separators */
  --line-soft: #dbe2f1;   /* soft borders on stat cards */
  --primary: #0f1a4c;     /* deep blue for slider fill */
  --primary-40: #cfd6ff;  /* soft primary for accents */
  --tab-shadow: 0 1px 0 #ffffff inset;
  --radius: 12px;
  --radius-lg: 16px;

  padding: 12px;
  background: var(--bg);
  color: var(--text);
}

/* ====== Tabs bar (top) ====== */
.uh__tabsbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 8px 8px 0 8px;
}

.uh__tabs {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  padding-left: 4px;
  position: relative;
}

.uh__tab {
  position: relative;
  padding: 12px 22px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 14px 14px 0 0;
  transition: color .15s ease, background .15s ease;
}

.uh__tab.is-active {
  color: #0a1b4e;                 /* navy like screenshot */
  background: var(--bg);
  box-shadow: var(--tab-shadow);
  border-bottom: 3px solid transparent;
}

/* Draws the blue underline exactly like the image */
.uh__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: #3f6df0;            /* underline blue */
  border-radius: 3px;
}

/* ====== Main body panel ====== */
.uh__body {
  background: var(--bg);
  border: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 12px;
}

/* ====== Stat card row (4 cards) ====== */
.uh-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 12px 0 18px;
}

.uh-card {
  background: var(--card);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.uh-card h4 {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  color: #39486b;
}

.uh-card .uh-big {
  grid-column: 1 / 2;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.uh-card .uh-ico {
  grid-column: 2 / 3;
  color: #9aa6d1;
  font-size: 30px;
}

/* subtle “bottom border” line inside cards like screenshot */
.uh-card::after {
  content: "";
  display: block;
  margin-top: 18px;
  height: 2px;
  background: var(--line-soft);
  border-radius: 2px;
  grid-column: 1 / -1;
}

/* ====== Slider + Reset row ====== */
.uh-toolbar {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 22px;
  align-items: center;
  margin: 18px 0 22px;
}

.uh-sliderbox {
  background: var(--card);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
}

/* If you use a simple <input type="range"> inside .uh-sliderbox */
.uh-sliderbox input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, #0f1a4c var(--fill, 30%), #e3e7fb var(--fill, 30%));
  border: 1px solid #cdd6ff;
}
.uh-sliderbox input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 6px solid #6271d7; /* ring */
  box-shadow: 0 0 0 2px #10194e inset;
  cursor: pointer;
}
.uh-sliderbox input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #ffffff; border: 6px solid #6271d7;
  box-shadow: 0 0 0 2px #10194e inset; cursor: pointer;
}

.uh-reset {
  background: #e9edff;
  color: #14227a;
  border: 2px solid #c9d2ff;
  font-weight: 800;
  padding: 14px 16px;
  border-radius: var(--radius);
  width: 100%;
}

/* ====== Search row under cards ====== */
.uh-searchline {
  display: grid;
  grid-template-columns: 160px 1fr 120px;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.uh-rowsel {
  display: flex; align-items: center; gap: 10px;
  color: #64748b; font-weight: 600;
}
.uh-rowsel select {
  border: 1px solid #d8def0; border-radius: 10px; padding: 8px 10px;
  background: #fff;
}

.uh-search {
  background: #f7f8fe;
  border: 1px solid #d8def0;
  border-radius: 10px;
  padding: 10px 12px;
}

.uh-filterbtn {
  border: 1px solid #d8def0;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
}

/* ====== Table wrapper ====== */
.uh-tablewrap {
  margin-top: 14px;
  background: var(--card);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.uh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.uh-table thead th {
  background: #f3f5fe;
  color: #475569;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.uh-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
}

/* ====== Responsive ====== */
@media (max-width: 1100px) {
  .uh-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .uh-row { grid-template-columns: 1fr; }
  .uh-toolbar { grid-template-columns: 1fr; }
  .uh-searchline { grid-template-columns: 1fr; }
}
/* Components/UserHistory/userHistory.css */

/* —— Theme tokens (tuned to your screenshot) —— */
:root {
  --uh-bg: #f6f7fb;
  --uh-panel: #ffffff;
  --uh-border: #e6e8f0;
  --uh-border-strong: #dbe0ea;
  --uh-text: #1f2a37;
  --uh-muted: #6b7280;
  --uh-blue: #3b82f6;         /* active line on tabs */
  --uh-blue-soft: #e8f0ff;    /* faint fill */
  --uh-navy: #2f3b8a;         /* icon/text accent */
  --uh-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  --uh-radius: 14px;
}

/* Shell */
.uh-shell {
  background: var(--uh-bg);
  border-radius: var(--uh-radius);
}

/* Tabs */
.uh-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--uh-panel);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius);
  padding: 6px;
  margin-bottom: 16px;
}

.uh-tab {
  position: relative;
  border: 0;
  background: transparent;
  height: 44px;
  border-radius: 10px;
  color: var(--uh-muted);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.uh-tab:hover { background: #f3f6ff; }

.uh-tab.is-active {
  color: var(--uh-text);
  background: #f9fbff;
  box-shadow: inset 0 -2px 0 0 var(--uh-blue);
}

/* Body spacing */
.uh-body { padding: 12px 0; }

/* Ensure BuyHistory content is visible inside uh-body */
.uh-body .custom-history-wrapper {
  width: 100%;
  max-width: 100%;
}

/* KPI cards row */
.uh-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.uh-card {
  background: var(--uh-panel);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius);
  padding: 18px;
  box-shadow: var(--uh-shadow);
}

.uh-card__title {
  font-weight: 700;
  color: #3b4a6b;
  margin-bottom: 8px;
}

.uh-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uh-card__value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.uh-card__icon {
  color: var(--uh-navy);
  opacity: 0.85;
}

/* Slider + Reset row */
.uh-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 8px 0 18px;
}

.uh-reset {
  background: var(--uh-panel);
  border: 1px solid var(--uh-border);
  color: #111827;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: var(--uh-shadow);
  cursor: pointer;
}

.uh-reset:hover { background: #fafbff; }

/* Slider */
.uh-slider {
  position: relative;
  height: 48px;
  background: var(--uh-panel);
  border-radius: var(--uh-radius);
  border: 1px solid var(--uh-border);
  box-shadow: var(--uh-shadow);
  display: flex;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.uh-slider__track {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 12px;
  background: #e6ebff;
  border-radius: 999px;
}

.uh-slider__fill {
  position: absolute;
  left: 18px;
  height: 12px;
  background: #cfe0ff;
  border-radius: 999px;
  transition: width 0.15s ease;
}

.uh-slider__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid var(--uh-blue);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

/* Table card */
.uh-table-card {
  background: var(--uh-panel);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius);
  box-shadow: var(--uh-shadow);
  overflow: hidden;
}

/* Table header controls */
.uh-table-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--uh-border-strong);
  background: #fbfcff;
}

.uh-rows-per-page {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--uh-muted);
  font-weight: 600;
}

.uh-select {
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--uh-border);
  background: #fff;
}

.uh-search {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  width: min(520px, 100%);
  height: 40px;
  border: 1px solid var(--uh-border);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}

.uh-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}

.uh-search-icon { opacity: 0.6; }

.uh-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--uh-border);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: #374151;
}

.uh-filter-chip .dot {
  width: 8px; height: 8px; border-radius: 999px; background: #10b981;
}

/* Table area */
.uh-table-wrap {
  padding: 10px 12px 16px;
}

/* Make your CustomTable cells feel like the mock */
.uh-table-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.uh-table-wrap th {
  text-align: left;
  font-weight: 700;
  color: #475569;
  font-size: 13px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--uh-border);
}

.uh-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid var(--uh-border);
  font-size: 14px;
  color: #1f2937;
}

/* Responsive */
@media (max-width: 1200px) {
  .uh-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .uh-tabs { grid-template-columns: repeat(2, 1fr); }
  .uh-table-head { grid-template-columns: 1fr; }
}

/* ========== Custom User History UI Styles (Matching Image) ========== */

/* Custom Tabs Container - Exact match to image */
.uh-tabs {
  display: flex !important;
  gap: 0 !important;
  background: #E9ECEF !important;
  border-radius: 6px 6px 0 0 !important;
  padding: 4px !important;
  border-bottom: 1px solid #DEE2E6 !important;
  grid-template-columns: none !important;
}

.uh-tab {
  flex: 1 !important;
  padding: 12px 20px !important;
  border: none !important;
  background: transparent !important;
  color: #6C757D !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  border-radius: 4px 4px 0 0 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  height: auto !important;
}

.uh-tab:hover {
  background: #F8F9FA !important;
  color: #343A40 !important;
}

.uh-tab.is-active {
  background: #FFFFFF !important;
  color: #212529 !important;
  box-shadow: 0 -2px 0 0 #007BFF inset !important;
  border-bottom: 2px solid #007BFF !important;
  z-index: 1 !important;
}

/* Summary Cards - Exact match to image */
.custom-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px 0;
  padding: 20px;
  border-radius: 21px;
  background-color: #fff;
}

.custom-summary-card {
  background: #e6eaf8;
  border: 2px solid #a0b8e0d6;
  border-radius: 12px;
  padding-bottom: 16px;
  margin-bottom: 10px;
  /* padding: 22px; */
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.custom-summary-card-title {
  font-size: 16px;
  color: #3b5998;
  font-weight: 500;
  margin-bottom: 8px;
}

.custom-summary-card-value {
  font-size: 26px;
  font-weight: 800;
  color: #343A40;
  letter-spacing: 0.2px;
}

/* Slider Section */
.custom-slider-section {
  border-radius: 12px;
  padding:  17px 45px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.custom-reset-btn {
  background: transparent;
  border: 1px solid #4f565e;
  border-radius: 8px;
  padding: 16px 45px;
  color: #343A40;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.custom-reset-btn:hover {
  background: #F8F9FA;
  border-color: #ADB5BD;
}

/* Table Container */
.custom-table-container {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  margin-top: 20px;
  width: 100%;
  display: block;
}

/* Ensure table wrapper takes full width */
.custom-table-container table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

/* Table Controls */
.custom-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
}

.custom-table-control-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-rows-label {
  font-size: 14px;
  color: #6C757D;
  font-weight: 600;
}

.custom-rows-select {
  height: 38px;
  padding: 4px 10px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.custom-rows-select:focus {
  border-color: #E0E0E0;
  box-shadow: none;
}

.custom-table-control-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-search-icon {
  position: absolute;
  left: 12px;
  color: #A0A0A0;
  font-size: 14px;
}

.custom-search-input {
  height: 38px;
  padding: 8px 12px 8px 36px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
  width: 250px;
  outline: none;
}

.custom-search-input:focus {
  border-color: #E0E0E0;
  background: #FFFFFF;
  box-shadow: none;
}

.custom-search-input::placeholder {
  color: #A0A0A0;
}

.custom-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 8px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-filter-btn:hover {
  background: #F8F8FC;
  border-color: #E0E0E0;
}

/* Custom Table */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  table-layout: auto;
  min-width: 100%;
  display: table;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
}

/* Ensure table cells expand to fill available width */
.custom-table thead {
  display: table-header-group;
  width: 100%;
  background: #FFFFFF;
}

.custom-table tbody {
  display: table-row-group;
  width: 100%;
}

.custom-table thead th {
  width: auto;
  white-space: nowrap;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: #333333;
  border-bottom: 1px solid #E0E0E0;
  border-right: 1px solid #E0E0E0;
  background: #FFFFFF;
}

.custom-table thead th:last-child {
  border-right: none;
}

.custom-table tbody tr {
  border-bottom: 1px solid #E0E0E0;
  transition: background 0.15s ease;
}

.custom-table tbody tr:nth-child(odd) {
  background: #FFFFFF;
}

.custom-table tbody tr:nth-child(even) {
  background: #F8F8FC;
}

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

.custom-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333333;
  border-right: 1px solid #E0E0E0;
  width: auto;
}

/* Make last column expand to fill remaining space for tables with fewer columns */
.custom-table thead th:last-child,
.custom-table tbody td:last-child {
  width: auto;
}

/* For tables with fewer columns, ensure full width is used */
.custom-table tbody tr {
  width: 100%;
  display: table-row;
}

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

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

.custom-loading-cell,
.custom-no-data-cell {
  text-align: center;
  padding: 40px !important;
  color: #6C757D;
  font-style: italic;
}

.sort-indicator {
  margin-left: 4px;
  color: #007BFF;
}

/* Table Footer */
.custom-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #FFFFFF;
  border-top: 1px solid #E0E0E0;
}

.custom-table-info {
  font-size: 14px;
  color: #333333;
}

.custom-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-pagination-btn {
  padding: 8px 12px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
}

.custom-pagination-btn:hover:not(:disabled) {
  background: #F8F8FC;
  color: #333333;
  border-color: #E0E0E0;
}

.custom-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F8F8FC;
}

.custom-pagination-page {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  min-width: 40px;
  text-align: center;
}

/* Alert */
.custom-alert-danger {
  padding: 12px 16px;
  margin: 16px;
  background: #F8D7DA;
  border: 1px solid #F5C6CB;
  border-radius: 8px;
  color: #721C24;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
  .custom-summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .custom-summary-cards {
    grid-template-columns: 1fr;
  }
  
  .custom-table-controls {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .custom-table-control-right {
    flex-direction: column;
  }
  
  .custom-search-input {
    width: 100%;
  }
  
  .custom-table-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

/* Centered Container Styles for User History (Not Full Width) */
#layout-wrapper .uh-shell {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

#layout-wrapper .uh-body {
  width: 100%;
  max-width: 100%;
}

#layout-wrapper .custom-history-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Ensure main-content uses standard padding */
#layout-wrapper .main-content {
  /* padding-right: 24px; */
  padding-left: 24px;
}

/* Centered container for UserHistory */
#layout-wrapper .uh-shell .container-fluid,
#layout-wrapper .uh-body .container-fluid {
  max-width: 100%;
  width: 100%;
}

/* Table should respect container width */
#layout-wrapper .custom-table-container,
#layout-wrapper .custom-table {
  width: 100%;
  max-width: 100%;
}

/* Custom Summary Cards */
/* .custom-summary-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
} */
/* 
.custom-summary-card {
  flex: 1;
  min-width: 200px;
  background-color: #eef2f9;
  border-radius: 10px;
  border: 1px solid #cdd9ed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
} */

.custom-summary-card-content {
  padding: 18px 30px;
  position: relative;
  min-height: 100px;
  border-bottom: 2px solid #a0b8e0d6;
  padding-bottom: 10px;
}



.custom-summary-card-value {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
}

.custom-summary-card-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
}

.custom-summary-card-icon-large {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 50px;
  height: 40px;
}

.custom-summary-card-divider {
  height: 1px;
  background-color: #cdd9ed;
}

.custom-summary-card-bottom {
  height: 20px;
  background-color: #eef2f9;
}



.line {
  width: 100%;
  height: 2px;
  background-color: #000; /* black line */
}