/* ============================================================
   Pallet Back-Office — Premium Dashboard Animations & Styles
   ============================================================ */

/* ---------- Counter animation ---------- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Fade + slide in ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Shimmer skeleton ---------- */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

/* ---------- Pulse dot (live indicator) ---------- */
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

/* ---------- Glow border ---------- */
@keyframes glowBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 98, 251, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(5, 98, 251, 0.18); }
}

/* ---------- Float card micro ---------- */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

/* ---------- Trend arrow bounce ---------- */
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

/* ---------- Sparkline draw-in (stroke) ---------- */
@keyframes drawLine {
  from { stroke-dashoffset: 400; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- Spin (loader / gauge) ---------- */
@keyframes spinLoader {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   Utility classes
   ============================================================ */

.pdb-fade-slide {
  animation: fadeSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pdb-count-in {
  animation: countUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger delays for child cards */
.pdb-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.pdb-stagger > *:nth-child(2) { animation-delay: 0.10s; }
.pdb-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.pdb-stagger > *:nth-child(4) { animation-delay: 0.20s; }
.pdb-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.pdb-stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ============================================================
   Stat card
   ============================================================ */

.pdb-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.22s cubic-bezier(0.22,1,0.36,1);
  cursor: default;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

.pdb-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.08);
}

.pdb-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 60%, rgba(255,255,255,0.6) 100%);
  pointer-events: none;
}

/* ============================================================
   Chart card
   ============================================================ */

.pdb-chart-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  transition: box-shadow 0.22s ease;
  animation: fadeSlideUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.pdb-chart-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

/* ============================================================
   Section header / toggle pill
   ============================================================ */

.pdb-section-toggle-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 12px;
  z-index: 100;
}

.pdb-section-pill {
  padding: 7px 16px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.pdb-section-pill:hover {
  background: rgba(5,98,251,0.07);
  color: #0562fb;
}

.pdb-section-pill.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #0562fb 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,98,251,0.35);
}

/* ============================================================
   Live dot indicator
   ============================================================ */

.pdb-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17c964;
  animation: pulseDot 1.8s ease-in-out infinite;
}

/* ============================================================
   Progress bar animated fill
   ============================================================ */

.pdb-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: #f0f2f5;
  overflow: hidden;
}

.pdb-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
}

.pdb-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 1.8s infinite;
}

/* ============================================================
   Table rows
   ============================================================ */

.pdb-table-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
  border-radius: 8px;
}

.pdb-table-row:hover {
  background: rgba(5,98,251,0.03);
  padding-left: 6px;
  padding-right: 6px;
  margin-left: -6px;
  margin-right: -6px;
}

.pdb-table-row:last-child {
  border-bottom: none;
}

/* ============================================================
   Funnel bars
   ============================================================ */

.pdb-funnel-bar {
  height: 36px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  padding-left: 12px;
  transition: width 1s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
}

.pdb-funnel-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.5s infinite;
}

/* ============================================================
   Gauge ring
   ============================================================ */

.pdb-gauge-ring {
  transform: rotate(-90deg);
}

.pdb-gauge-track {
  fill: none;
  stroke: #f0f2f5;
  stroke-width: 10;
}

.pdb-gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s cubic-bezier(0.22,1,0.36,1);
}

/* ============================================================
   Section collapse
   ============================================================ */

.pdb-section-body {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1),
              opacity 0.35s ease;
}

/* ============================================================
   Icon badge
   ============================================================ */

.pdb-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   Tag / chip
   ============================================================ */

.pdb-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pdb-tag.green  { background: #dcfce7; color: #15803d; }
.pdb-tag.red    { background: #fee2e2; color: #b91c1c; }
.pdb-tag.blue   { background: #dbeafe; color: #1d4ed8; }
.pdb-tag.amber  { background: #fef3c7; color: #92400e; }
.pdb-tag.purple { background: #ede9fe; color: #6d28d9; }
.pdb-tag.gray   { background: #f3f4f6; color: #4b5563; }

/* ============================================================
   Snow-inspired dashboard shell
   ============================================================ */

:root {
  --pdb-ink: #152238;
  --pdb-muted: #718096;
  --pdb-faint: #a0aec0;
  --pdb-border: #e8edf3;
  --pdb-surface: #ffffff;
  --pdb-canvas: #f7f9fc;
  --pdb-blue: #246bfe;
}

.pdb-dashboard-shell {
  color: var(--pdb-ink);
  max-width: 1600px;
  min-height: calc(100vh - 48px);
  padding: 4px 4px 44px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pdb-section-nav-wrap {
  position: sticky;
  top: 8px;
  z-index: 10;
  margin-bottom: 30px;
}

.pdb-section-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(32, 55, 90, 0.07);
  backdrop-filter: blur(16px);
}

.pdb-section-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  color: #758198;
  background: transparent;
  font: 600 12px/1 "Inter", sans-serif;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pdb-section-nav-item:hover {
  color: var(--pdb-blue);
  background: #f1f5ff;
}

.pdb-section-nav-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2957db, #246bfe);
  box-shadow: 0 5px 12px rgba(36, 107, 254, 0.22);
}

.pdb-section-nav-icon { width: 16px !important; height: 16px !important; }

.pdb-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 2px 26px;
}

.pdb-page-heading { display: flex; align-items: center; gap: 14px; }
.pdb-page-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--pdb-blue);
  background: #eaf1ff;
  border: 1px solid #dce8ff;
  border-radius: 13px;
}
.pdb-page-icon svg { width: 22px; height: 22px; }
.pdb-page-kicker, .pdb-overview-eyebrow {
  margin: 0 0 6px;
  color: #97a2b5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pdb-page-heading h1 {
  margin: 0;
  color: var(--pdb-ink);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 750;
  letter-spacing: -0.045em;
}
.pdb-page-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 0;
  color: #8490a4;
  font-size: 12px;
}
.pdb-page-divider { color: #c4cbd6; }
.pdb-page-subtitle .pdb-live-dot { width: 6px; height: 6px; margin-left: 3px; }
.pdb-period-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 11px;
  color: #516079;
  background: #fff;
  border: 1px solid var(--pdb-border);
  border-radius: 10px;
  font: 600 12px/1 "Inter", sans-serif;
  box-shadow: 0 3px 10px rgba(32, 55, 90, 0.04);
}
.pdb-period-control:hover { border-color: #c9d7f4; color: var(--pdb-blue); }
.pdb-period-control .pdb-live-dot { width: 6px; height: 6px; }
.pdb-period-icon { width: 14px !important; height: 14px !important; color: #8c98aa; }
.pdb-period-chevron { width: 17px !important; height: 17px !important; color: #8c98aa; }

.pdb-section-content { min-width: 0; }
.pdb-section-content > div > div[style*="grid-template-columns"] {
  align-items: stretch;
}
.pdb-section-content h4 {
  color: var(--pdb-ink) !important;
  letter-spacing: -0.02em;
}
.pdb-section-content .pdb-chart-card {
  min-width: 0;
  border-color: var(--pdb-border);
  box-shadow: 0 4px 16px rgba(32, 55, 90, 0.035);
}
.pdb-section-content .pdb-chart-card:hover {
  border-color: #dbe4f0;
  box-shadow: 0 10px 28px rgba(32, 55, 90, 0.07);
}

/* Overview */
.pdb-overview { padding-bottom: 8px; }
.pdb-overview-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: -2px 0 21px;
}
.pdb-overview-intro h2 {
  margin: 0;
  color: var(--pdb-ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.pdb-overview-caption { margin: 5px 0 0; color: #8290a5; font-size: 12px; }
.pdb-outline-action, .pdb-text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--pdb-blue);
  font: 700 12px/1 "Inter", sans-serif;
  cursor: pointer;
}
.pdb-outline-action {
  padding: 10px 13px;
  color: #4f5f79;
  background: #fff;
  border: 1px solid var(--pdb-border);
  border-radius: 9px;
}
.pdb-outline-action:hover { color: var(--pdb-blue); border-color: #cbdafd; background: #f8faff; }
.pdb-outline-action svg, .pdb-text-button svg { width: 16px; height: 16px; }
.pdb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}
.pdb-stat-card { padding: 17px 18px 14px; border-radius: 13px; }
.pdb-stat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pdb-stat-label { margin: 0 0 6px; color: #8995a8; font-size: 11px; font-weight: 600; }
.pdb-stat-value { margin: 0; color: var(--pdb-ink); font-size: 24px; font-weight: 750; letter-spacing: -0.055em; }
.pdb-icon-badge { width: 36px; height: 36px; border-radius: 10px; }
.pdb-icon-badge svg { width: 19px; height: 19px; }
.pdb-stat-meta { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #a0aaba; font-size: 10px; }
.pdb-trend { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.pdb-trend.is-up { color: #15945a; background: #eaf9f0; }
.pdb-trend.is-down { color: #d14343; background: #fff0f0; }
.pdb-trend svg { width: 12px; height: 12px; }
.pdb-stat-progress { height: 4px; margin-top: 13px; background: #f1f4f8; }
.pdb-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(265px, .75fr);
  gap: 14px;
  margin-bottom: 14px;
}
.pdb-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 14px; }
.pdb-overview .pdb-chart-card { padding: 18px 19px; border-radius: 13px; }
.pdb-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdb-card-heading h4 { margin: 0; font-size: 14px; font-weight: 750; }
.pdb-card-heading p { margin: 4px 0 0; color: #97a2b2; font-size: 11px; }
.pdb-heading-with-status { display: flex; align-items: center; gap: 9px; }
.pdb-status-label { display: inline-flex; align-items: center; gap: 4px; color: #15945a; font-size: 10px; font-weight: 700; }
.pdb-status-label .pdb-live-dot { width: 5px; height: 5px; }
.pdb-icon-button {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  color: #a0aaba;
  background: #f7f9fc;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.pdb-icon-button:hover { color: var(--pdb-blue); background: #edf3ff; }
.pdb-icon-button svg { width: 17px; height: 17px; }
.pdb-chart-wrap { height: 230px; margin: 18px -3px 0; }
.pdb-revenue-chart canvas { max-height: 230px; }
.pdb-chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid #f0f3f7;
  color: #8d99aa;
  font-size: 10px;
}
.pdb-chart-footer strong { color: var(--pdb-ink); font-size: 12px; }
.pdb-footer-positive { display: inline-flex; align-items: center; gap: 3px; color: #15945a; font-weight: 700; }
.pdb-footer-positive svg { width: 13px; height: 13px; }
.pdb-donut-wrap { position: relative; width: 172px; height: 152px; margin: 12px auto 5px; }
.pdb-donut-total { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); }
.pdb-donut-total span { color: #a0aaba; font-size: 10px; }
.pdb-donut-total strong { margin-top: 3px; color: var(--pdb-ink); font-size: 17px; letter-spacing: -0.04em; }
.pdb-channel-list { display: flex; flex-direction: column; gap: 9px; }
.pdb-channel-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; color: #7c899c; font-size: 11px; }
.pdb-channel-label span { display: inline-flex; align-items: center; gap: 5px; }
.pdb-channel-label svg { width: 9px; height: 9px; }
.pdb-channel-label strong { color: var(--pdb-ink); font-size: 11px; }
.pdb-channel-list .pdb-progress-bar { height: 4px; }
.pdb-activity-list, .pdb-notification-list { display: flex; flex-direction: column; margin-top: 17px; }
.pdb-activity-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f3f7; }
.pdb-activity-item:first-child { padding-top: 0; border-top: 0; }
.pdb-activity-icon { display: grid; width: 29px; height: 29px; flex-shrink: 0; place-items: center; border-radius: 9px; }
.pdb-activity-icon svg { width: 15px; height: 15px; }
.pdb-activity-icon.success { color: #15945a; background: #eaf9f0; }
.pdb-activity-icon.blue { color: var(--pdb-blue); background: #edf3ff; }
.pdb-activity-icon.purple { color: #7b4bd3; background: #f2edff; }
.pdb-activity-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.pdb-activity-copy strong, .pdb-notification-item strong { overflow: hidden; color: #43516a; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pdb-activity-copy span, .pdb-notification-item span { overflow: hidden; color: #9aa5b5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pdb-activity-item time { flex-shrink: 0; color: #a4adba; font-size: 10px; }
.pdb-notification-count { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; color: var(--pdb-blue); background: #edf3ff; border-radius: 6px; font-size: 10px; font-weight: 700; }
.pdb-notification-count svg { width: 14px; height: 14px; }
.pdb-notification-item { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #f0f3f7; }
.pdb-notification-item:first-child { padding-top: 0; border-top: 0; }
.pdb-notification-item > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.pdb-notification-item > svg { width: 17px; color: #bdc5d0; }
.pdb-notification-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; }
.pdb-notification-dot.blue { background: var(--pdb-blue); box-shadow: 0 0 0 3px #eaf1ff; }
.pdb-notification-dot.amber { background: #f0a429; box-shadow: 0 0 0 3px #fff5df; }
.pdb-workspace-health { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 10px; background: #f7fbf8; border: 1px solid #e5f3e9; border-radius: 9px; }
.pdb-health-icon { display: grid; width: 25px; height: 25px; place-items: center; color: #15945a; background: #e5f7eb; border-radius: 7px; }
.pdb-health-icon svg { width: 15px; height: 15px; }
.pdb-workspace-health > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.pdb-workspace-health strong { color: #3f7655; font-size: 10px; }
.pdb-workspace-health span { color: #8ca695; font-size: 9px; }
.pdb-health-check { color: #36b875; }
.pdb-health-check svg { width: 17px; height: 17px; }
.pdb-rank-icon { width: 16px !important; height: 16px !important; }
.pdb-rank-icon.rank-1 { color: #e2a51d; }
.pdb-rank-icon.rank-2 { color: #9ba8b8; }
.pdb-rank-icon.rank-3 { color: #bc7651; }

/* Live leads dashboard */
.pdb-leads-dashboard { display: flex; flex-direction: column; gap: 20px; }
.pdb-leads-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pdb-leads-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pdb-leads-card-heading--forecast { margin-bottom: 16px; }
.pdb-leads-card-heading h4 { margin: 0; font-size: 15px; font-weight: 700; color: #111827; }
.pdb-leads-card-heading p { margin: 3px 0 0; font-size: 12px; color: #6b7280; }
.pdb-leads-forecast-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.pdb-leads-currency-select { height: 26px; padding: 0 8px; color: #516079; background: #fff; border: 1px solid #dce3ed; border-radius: 7px; font: 600 10px/1 "Inter", sans-serif; }
.pdb-leads-funnel { display: flex; flex-direction: column; gap: 12px; }
.pdb-leads-funnel-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: 12px; }
.pdb-leads-funnel-label span:first-child { font-weight: 600; color: #374151; }
.pdb-leads-funnel-label span:last-child { color: #6b7280; text-align: right; }
.pdb-leads-funnel-track { height: 28px; overflow: hidden; background: #f3f4f6; border-radius: 0 8px 8px 0; }
.pdb-leads-funnel-track .pdb-funnel-bar { height: 100%; color: #fff; font-size: 11px; font-weight: 700; }
.pdb-leads-card-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 10px 14px; background: #f8fafc; border-radius: 10px; }
.pdb-leads-card-footer span { font-size: 12px; color: #6b7280; }
.pdb-leads-card-footer strong { font-size: 13px; color: var(--pdb-blue); }
.pdb-leads-forecast { height: 240px; }
.pdb-leads-rank { width: 24px; text-align: center; color: #9ca3af; font-size: 14px; font-weight: 800; }
.pdb-leads-avatar { display: flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; }
.pdb-leads-agent { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.pdb-leads-agent strong { overflow: hidden; color: #111827; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pdb-leads-agent span { overflow: hidden; color: #9ca3af; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pdb-leads-performance { display: flex; align-items: center; gap: 12px; }
.pdb-leads-performance > strong { color: #111827; font-size: 14px; font-weight: 700; }
.pdb-leads-state { display: flex; min-height: 260px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; text-align: center; }
.pdb-leads-state strong { color: #26334a; font-size: 15px; }
.pdb-leads-state span { max-width: 460px; color: #8490a4; font-size: 12px; }
.pdb-leads-state .pdb-outline-action { margin-top: 8px; }
.pdb-leads-spinner { width: 28px; height: 28px; margin-bottom: 4px; border: 3px solid #e5edff; border-top-color: var(--pdb-blue); border-radius: 50%; animation: pdb-spin .8s linear infinite; }
.pdb-leads-empty-note { padding: 12px 15px; color: #6b7280; background: #f8fafc; border: 1px dashed #d8e0ea; border-radius: 10px; font-size: 12px; text-align: center; }
.pdb-leads-no-rows { padding: 28px 16px; color: #8490a4; font-size: 12px; text-align: center; }
@keyframes pdb-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .pdb-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdb-overview-grid { grid-template-columns: minmax(0, 1.35fr) minmax(245px, .8fr); }
}

@media (max-width: 760px) {
  .pdb-dashboard-shell { padding: 0 0 28px; }
  .pdb-section-nav-wrap { top: 0; margin: 0 -3px 24px; }
  .pdb-section-nav { width: 100%; border-radius: 0 0 13px 13px; border-left: 0; border-right: 0; }
  .pdb-section-nav-item { padding: 9px 11px; }
  .pdb-section-nav-item span { display: none; }
  .pdb-section-nav-item.is-active span { display: inline; }
  .pdb-page-header { align-items: flex-start; margin-bottom: 21px; }
  .pdb-page-heading { gap: 10px; }
  .pdb-page-icon { width: 38px; height: 38px; border-radius: 11px; }
  .pdb-page-heading h1 { font-size: 22px; }
  .pdb-period-control { height: 34px; padding: 0 8px; }
  .pdb-period-control .pdb-live-dot { display: none; }
  .pdb-period-icon { display: none; }
  .pdb-overview-intro { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
  .pdb-outline-action { align-self: stretch; justify-content: center; }
  .pdb-kpi-grid, .pdb-overview-grid, .pdb-bottom-grid { grid-template-columns: 1fr; }
  .pdb-stat-card { padding: 15px 16px 13px; }
  .pdb-chart-wrap { height: 205px; }
  .pdb-revenue-chart canvas { max-height: 205px; }
  .pdb-chart-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pdb-donut-wrap { height: 145px; }
  .pdb-section-content > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .pdb-leads-grid { grid-template-columns: 1fr; }
  .pdb-leads-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pdb-leads-funnel-label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .pdb-leads-performance { align-items: flex-end; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .pdb-stat-card, .pdb-chart-card, .pdb-progress-fill, .pdb-live-dot { animation: none !important; transition: none !important; }
}

.data-grid-parent-div {
  background: #fff;
  margin-top: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  overflow: hidden;
}

/* Taller rows for the premium avatar cells */
.data-grid-parent-div .data-grid tbody tr {
  height: 56px !important;
}

.data-grid-parent-div .data-grid tbody td {
  padding: 10px 16px !important;
  vertical-align: middle !important;
}

/* Slightly bolder header */
.data-grid-parent-div .data-grid thead th {
  background: #F9FAFB !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #667085 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #EAECF0 !important;
}

/* Hover highlight */
.data-grid-parent-div .data-grid tbody tr:hover td {
  background: #F9FAFB !important;
  cursor: pointer;
}

/* Remove zebra — cleaner premium look */
.data-grid-parent-div .data-grid tbody tr:nth-child(even) td {
  background: #fff !important;
}
.data-grid-parent-div .data-grid tbody tr:hover td {
  background: #F9FAFB !important;
}

/* Bottom border between rows */
.data-grid-parent-div .data-grid tbody td {
  border-bottom: 1px solid #F2F4F7 !important;
}

/* Last row — no bottom border */
.data-grid-parent-div .data-grid tbody tr:last-child td {
  border-bottom: none !important;
}

/* Pagination area */
.data-grid-parent-div .pagination-datagrid {
  padding: 12px 20px;
  border-top: 1px solid #EAECF0;
  font-size: 13px;
  color: #667085;
}

.searchbar-parent-div {
  height: 100%;
  width: 100%;
  background-color: var(--primary-background-color);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.customer-filter-main-div {
  color: white;
  cursor: pointer;
}

.customers-list-page .newrevamp-data-grid .data-grid thead th {
  text-transform: none !important;
}

.icon-parent-div {
  height: 1rem;
  width: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .icon-parent-div > svg {
  height: 1rem;
  width: 1rem;
} */

.icon-parent-div > svg {
  height: inherit;
  width: inherit;
}

.rbtn.rbtn-outlined {
  background-color: #fff;
  color: #0860e6;
  border: 1.5px solid #0860e6 !important;
}

.rbtn.rbtn-outlined:hover:not(:disabled) {
  background-color: #f0f6ff;
  color: #0860e6;
  /* border-color: #0860e6; */
}
.rbtn {
  min-height: var(--ui-control-height, 40px);
  height: var(--ui-control-height, 40px);
  padding: 0 16px;
  border-radius: var(--ui-radius-sm, 8px);
  border: 1px solid transparent;
  font-size: 12px; /* lock size */
  line-height: 20px; /* ensure vertical centering of text */
  font-family: 'Nunito Sans', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  vertical-align: middle;
}

.rbtn:focus-visible {
  outline: none;
  box-shadow: var(--ui-focus-ring);
}

.rbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  
}

.rbtn-primary {
  background-color: var(--ui-color-primary, #0562fb);
  color: white;
  border-color: var(--ui-color-primary, #0562fb);
}

.rbtn-primary:hover:not(:disabled) {
  background-color: var(--ui-color-primary-hover, #034fcf);
  border-color: var(--ui-color-primary-hover, #034fcf);
}
.rbtn-primary:disabled {
  background-color: var(--ui-color-primary, #0562fb);
  color: white;
  border-color: var(--ui-color-primary, #0562fb);
}


.rbtn-secondary {
  background-color: #f0f3f5;
  color: #495057;
  border-color: #ced4da;
}

.rbtn-secondary:hover:not(:disabled) {
  background-color: #e2e6ea;
}

.rbtn-danger {
  background-color: transparent;
  color: #e90000;
  border-color: #e90000;
}

.rbtn-filter-active {
  border-radius: 6px;
  color: #495057;
  border: 2px solid var(--Blue-100, #bfeaff);
  background: var(--Blue-50, #d9f2ff);
}

.rbtn-danger:hover:not(:disabled) {
  background-color: #dc3545;
  color: white;
}

.rbtn-success {
  background-color: #0b742c;
  color: white;
  border-color: #0b742c;
}

.rbtn-success:hover:not(:disabled) {
  background-color: #bfe6a3;
}
.rbtn-no-border-blue {
  background-color: rgb(238, 242, 255);
  color: rgb(55, 42, 172);
  border: none;
}

.rbtn-no-border-blue:hover {
  background-color: rgb(224, 231, 255);
}
.rbtn-no-border-green {
  background-color: rgb(240, 253, 244);
  color: rgb(16, 185, 129);
  border: none;
}

.rbtn-no-border-green:hover {
  background-color: rgb(219, 255, 216);
}
.rbtn-no-border-red{
  background-color: rgb(254, 242, 242);
  color: rgb(239, 68, 68);
  border: none;
}
.rbtn-no-border-red:hover{
  background-color: rgb(255, 218, 218);
}
.rbtn-no-border-purple{
  background-color: rgb(214, 65, 194);
  color: rgb(255, 255, 255);
  border: none;
}
.rbtn-no-border-purple:hover{
  background-color: rgb(185, 27, 185);
}

.rbtn-icon {
  width: 16px;
  height: 16px;
}

/* Loading state */
.rbtn .rbtn-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rbtn.is-loading .rbtn-content {
  visibility: hidden; /* keep layout but hide text/icons while loader shows */
}

.rbtn .rbtn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.btn-transparent {
  border: 1px solid #dc2626;
  color: #dc2626;
  background: #fff;
}
.btn-transparent:disabled {
  border: 1px solid #dc2626;
  color:#dc2626;
  background: #fff;
  cursor: not-allowed;
}

.rbtn-purple {
  background-color: rgb(252, 245, 252);
  color: rgb(150, 42, 172);
  border: 1px solid rgba(150, 42, 172, 0.185);
}

.rbtn-purple:hover {
  background-color: rgb(252, 238, 252);
}
.btn-transparent:hover:not(:disabled) {
  border: 1px solid #dc2626;
  color:#dc2626;
  background: #fff;
}

/* Primary Apply (Blue) */
.btn-black {
  background: #2563eb;
  color: #fff;
}

.btn-black:hover:not(:disabled) {
  background: #1d4ed8;
  color: #fff;
}

.btn-black:disabled {
  border: 1px solid #1d4ed8;
  background: #2563eb;
  /* color: #fff; */
  cursor: not-allowed;
}

/* Outlined Blue Variant */
.btn-outlined {
  background-color: #fff;
  color: #0860e6;
  border: 1.5px solid ;
}

.btn-outlined:hover:not(:disabled) {
  background-color: #f0f6ff;
  
}
.rbtn-green-outlined {
  background-color: #fff;
  color: #0f8a1f;
  border: 1px solid rgba(15, 138, 31, 0.185);
}
.rbtn-green-outlined:hover:not(:disabled) {
  background-color: #f0f6ff;
  
}

.btn-black-S {
  background: #fff;
  color: #1f2937; /* gray-800 */
  border: 1px solid #d1d5db; /* gray-300 */
  transition: all 0.2s ease;
}

.btn-black-S:hover {
  background: #fff;
  color: #1f2937; /* gray-800 */
  border: 1px solid #d1d5db; /* gray-300 */
}
.btn-black-S:hover:not(:disabled) {
  background: #f0f6ff;
  color: #1f2937; /* gray-800 */
  border: 1px solid #d1d5db; /* gray-300 */
}
.btn-black-D {
  background: #fff;
  color: #1f2937; /* gray-800 */
  border-left: 3px solid #0860e6; /* blue */
  border-top: 1px solid #d1d5db; /* gray */
  border-right: 1px solid #d1d5db; /* gray */
  border-bottom: 1px solid #d1d5db; /* gray */
  transition: all 0.2s ease;
}

.btn-black-D:hover {
  background: #f0f6ff;
  color: #1f2937; /* gray-800 */
  border-left: 3px solid #0860e6; /* blue */
  border-top: 1px solid #d1d5db; /* gray */
  border-right: 1px solid #d1d5db; /* gray */
  border-bottom: 1px solid #d1d5db; /* gray */
}

.btn-black-D:hover:not(:disabled) {
  background: #f0f6ff;
  color: #1f2937; /* gray-800 */
  border-left: 3px solid #0860e6; /* blue */
  border-top: 1px solid #d1d5db; /* gray */
  border-right: 1px solid #d1d5db; /* gray */
  border-bottom: 1px solid #d1d5db; /* gray */
}
.rbtn-primary1 {
  background-color:white;
  color: #0860E6;
  border-color: #0860E6;
  min-width: 30%;
}

.rbtn-primary1:hover:not(:disabled) {
  background-color:white;
  border-color: #0860E6;
  color: #0860E6;
}
.rbtn-black1 {
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
  transition: all 0.25s ease;
}

/* Hover */
.rbtn-black1:hover {
  background-color: #222;
  border-color: #222;
}

.rbtn-green {
  background-color: #0B742C;
  color: #fff;
  border: 1px solid #0B742C;
  transition: all 0.25s ease;
}

/* Hover */
.rbtn-green:hover {
  background-color: #0B742C;
  border-color: #0B742C;
}
.rbtn-emerald {
  background-color: #059669;
  color: #fff;
  border: 1px solid #059669;
  transition: all 0.25s ease;
}

.rbtn-emerald:hover:not(:disabled) {
  background-color: #047857;
  border-color: #047857;
}

.rbtn-orange {
  background-color: #ea580c;
  color: #fff;
  border: 1px solid #ea580c;
  transition: all 0.25s ease;
}

.rbtn-orange:hover:not(:disabled) {
  background-color: #c2410c;
  border-color: #c2410c;
}

.common-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.common-loader.full-height {
  height: 100%;
}

.common-loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.common-loader-label {
  font-size: 13px;
  color: #4b5563;
}

/* --- General Container --- */
.custom-filter-container {
  padding: 12px 16px;
  max-height: 90vh;
  min-height: 400px;
  width: 592px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  /* z-index must exceed MUI DataGrid's internal stacking contexts (~4) and
     any position:sticky column headers; 1300 matches MUI Dialog level */
  z-index: 1300;
  border: 1px solid #e9eaec;
  box-shadow: 0 40px 11px 0 rgba(161, 188, 232, 0), 0 25px 10px 0 rgba(161, 188, 232, 0.01),
    0 14px 9px 0 rgba(161, 188, 232, 0.05), 0 6px 6px 0 rgba(161, 188, 232, 0.09), 0 2px 3px 0 rgba(161, 188, 232, 0.1);
}

/* --- Top Header & Close Button --- */
.custom-filter-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-filter-top-header h6 {
  font-size: 1rem;
  font-weight: 700;
}

.filter-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  width: 30px;
  height: 30px;
}

.filter-close-btn:hover {
  background-color: #f0f0f0;
}

/* --- Selected Pills Section --- */
.custom-filter-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  /* Aligns wrapped groups neatly */
  gap: 16px;
  /* Gap between different filter groups */
  padding-bottom: 5px;
}

/* --- Styles for Grouped Pills --- */
.filter-group-wrapper {
  display: flex;
  align-items: baseline;
  /* Aligns the label text with the pill text */
  gap: 8px;
  /* Gap between the label and its pills */
}

.filter-group-label {
  color: #414652;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Corrected class name to match the JSX */
.filter-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* Gap between individual pills */
  max-height: 100px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.filter-pills-container::-webkit-scrollbar {
  width: 3px;
}

.filter-pills-container::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 3px;
}

.filter-pills-container::-webkit-scrollbar-track {
  background: transparent;
}

.filter-pill {
  display: flex;
  padding: 2px 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
  background: #edf8ff;
}

.filter-pill-value {
  color: #0860e6;
  text-align: center;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.filter-pill-remove-icon {
  width: 16px;
  height: 16px;
  color: #0860e6;
  cursor: pointer;
  transition: opacity 0.2s;
}

.filter-pill-remove-icon:hover {
  opacity: 0.75;
}

/* --- Main Body (Sidebar + Options) --- */
.custom-filter-body {
  display: flex;
  flex: 1 1 0;
  min-height: 200px;
  border-radius: 6px;
  border: 1px solid var(--Gray-200, #e9eaec);
  overflow: hidden;
}

.custom-filter-sidebar {
  flex: 0 0 200px;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.custom-filter-sidebar-list {
  padding: 8px 0;
  overflow-y: scroll;
}

.custom-filter-options {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.custom-filter-options-list::-webkit-scrollbar {
  width: 7px;
  /* Width of the scrollbar */
}

.custom-filter-options-list::-webkit-scrollbar-track {
  background: #fff;
  /* Background of the scrollbar track */
}

.custom-filter-options-list::-webkit-scrollbar-thumb {
  border-radius: 3.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--Gray-300, #D5D7DB);
  width: 7px;
}

.custom-filter-options-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
  /* Color of the thumb on hover */
}

.custom-filter-options-list {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  flex-grow: 1;
}

.custom-filter-header {
  font-size: 14px;
  color: var(--Gray-800, #252b36);
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* --- Sidebar & Option Items --- */
.filter-category-item {
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-left: 3px solid transparent;
  font-size: 14px;
  color: var(--Gray-700, #414652);
  transition: all 0.2s ease-in-out;
  font-family: 'Nunito Sans';
  font-style: normal;
  line-height: normal;
}

.filter-category-item:hover {
  background-color: #f9fafb;
}

.filter-category-item.active {
  display: flex;
  padding: 8px 12px 8px 24px;
  gap: 10px;
  align-self: stretch;
  border-left: 2px solid var(--Blue-400, #0860e6);
  background: var(--Blue-25, #edf8ff);
  font-weight: 600;
  border-left: 3px solid #0860e6;
}

.filter-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #e9eaec;
  transition: background-color 0.2s;
}

.filter-option-row:last-child {
  border-bottom: none;
}

.filter-option-row:hover {
  background-color: #f9fafb;
}

.filter-option-label {
  color: var(--Gray-900, #181d28);
  font-family: 'Nunito Sans';
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* --- Footer (Buttons) --- */
.custom-filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-range-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.filter-range-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-range-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-field-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.input-label {
  color: #535861 !important;
  font-size: 14px;
  font-weight: 600 !important;
  margin-bottom: 6px;
  font-family: Nunito Sans, sans-serif;
}

.required-asterisk {
  color: #dc3545;
  margin-left: 4px;
}

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

.input-field {
  width: 100%;
  height: var(--ui-control-height, 40px);
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  color: #111827 !important;
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  font-family: Nunito Sans, sans-serif;
}

.input-field::placeholder {
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 400;
}

.input-field:hover:not(:disabled) {
  border-color: #9CA3AF;
}

.input-field:focus {
  outline: none;
  border-color: #1A56DB;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.input-field:focus-visible {
  outline: none;
}

.input-field.error {
  border-color: #dc3545;
}

.input-error-message {
  color: var(--ui-color-danger, #dc3545);
  font-size: 12px;
  margin-top: 4px;
}

.input-helper-message {
  color: var(--ui-color-muted, #64748b);
  font-size: 12px;
  margin-top: 4px;
}

.input-right-adornment {
  position: absolute;
  right: 12px;
  display: flex;
}

.input-left-adornment {
  position: absolute;
  left: 12px;
}
/* Prevent mouse wheel from changing number inputs */
input[type='number'] {
  -moz-appearance: textfield; /* Firefox */
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* This prevents scroll on focused number inputs */
input[type='number']:focus {
  pointer-events: auto;
}

input[type='number'] {
  scroll-behavior: auto;
}

/* Disabled input styling */
.input-field:disabled {
  background-color: #F5F5F6;   /* light grey */
  color: #9e9e9e;              /* muted text */
  border-color: #F5F5F6;
  cursor: not-allowed;
}

.input-field:disabled::placeholder {
  color: #bdbdbd;
}
.checkbox-wrapper {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #34495e;
  user-select: none;
}

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

.checkbox-custom {
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 1px solid #d5d7db !important;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.checkbox-wrapper:hover .checkbox-custom {
  background-color: #F5F5F6;
}

.checkbox-input:checked ~ .checkbox-custom {
  background-color: #D9F2FF; /* light blue fill */
  border-color: #0860E6;     /* blue border */
}

.checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #0860e6; /* blue tick */
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-input:checked ~ .checkbox-custom:after {
  display: block;
}

/* Indeterminate state */
.checkbox-input:indeterminate ~ .checkbox-custom {
  background-color: #D9F2FF;
  border-color: #0860E6;
}

.checkbox-input:indeterminate ~ .checkbox-custom:after {
  display: block;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 2px;
  border: none;
  background-color: #0860E6;
  transform: none;
}

/* Focus ring for accessibility */
.checkbox-input:focus-visible ~ .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(8, 96, 230, 0.2);
}

/* Disabled state */
.checkbox-input:disabled ~ .checkbox-custom {
  background-color: #F5F5F6;
  border-color: #E9EAEC;
  cursor: not-allowed;
}
.checkbox-input:disabled ~ .checkbox-label {
  color: #9AA0A6;
  cursor: not-allowed;
}

.checkbox-label {
  user-select: none;
  color: #252b36 !important;
  font-family: 'Nunito Sans';
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.checkbox-label .required-asterisk {
  color: #dc3545;
  margin-left: 4px;
}

.daterange-container {
  position: absolute;
  z-index: 1000;
  top:15%;
  left:25%;
  margin-top: 0;
  width: 320px;
  border: 1px solid #e0e0e0;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--Gray-200, #e9eaec);
  background: var(--White, #fff);
  box-shadow: 0 24px 7px 0 rgba(146, 184, 242, 0), 0 15px 6px 0 rgba(146, 184, 242, 0.01),
    0 8px 5px 0 rgba(146, 184, 242, 0.05), 0 4px 4px 0 rgba(146, 184, 242, 0.09), 0 1px 2px 0 rgba(146, 184, 242, 0.1);
}

.daterange-header {
  display: flex;
  padding: 8px 12px;
  align-items: center;
  align-content: center;
  gap: 6px;
  align-self: stretch;
  flex-wrap: wrap;
}

.daterange-input {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.daterange-label {
  color: var(--Gray-700, #414652);
  text-align: center;
  font-family: 'Nunito Sans';
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.daterange-value {
color: var(--Blue-400, #0860E6);
text-align: center;
font-family: "Nunito Sans";
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: normal;

}

.daterange-close {
  border: none;
  background: none;
  font-size: 24px;
  color: var(--Gray-700, #414652);
  cursor: pointer;
  padding: 0;
}

.daterange-close:hover {
  color: #666;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-month-year {
  color: var(--Gray-800, #252b36);
  font-family: 'Nunito Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.calendar-nav {
  display: flex;
  gap: 4px;
}

.calendar-nav-btn {
  border: none;
  background: none;
  font-size: 25px;
  color: var(--Gray-800, #252b36);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.calendar-nav-btn:hover {
  color: #333;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.calendar {
  margin-bottom: 16px;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}

.calendar-day-name {
  color: var(--Gray-800, #252b36);
  font-family: "Nunito Sans";
  text-align: center;
  font-family: 'Nunito Sans';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-empty {
  height: 36px;
}

.calendar-day {
  height: 36px;
  font-family: "Nunito Sans";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  color: var(--Gray-800, #252b36);
  position:relative;
  transition: background-color 0.2s;
}


.calendar-day:hover {
  background-color: #f5f5f5;
}

.calendar-day.selected {
  background-color: #1976d2;
  color: white;
  font-family: "Nunito Sans";
font-size: 14px;

  font-weight: 500;
}

.calendar-day.selected:hover {
  background-color: #1565c0;
}

.calendar-day.in-range {
  background-color: #e3f2fd;
  border-radius: 50;
}

.calendar-day.in-range:hover {
  background-color: #bbdefb;
}

.daterange-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.daterange-btn {
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.daterange-btn.clear {
  color: #d32f2f;
}

.daterange-btn.clear:hover {
  background-color: #ffebee;
}

.daterange-btn.ok {
  color: #1976d2;
}

.daterange-btn.ok:hover {
  background-color: #e3f2fd;
}

/* UI Kit Toast - Figma aligned */
:root {
  --toast-bg: #181d28; /* Gray/900 */
  --toast-text: #ffffff; /* White */
  --toast-muted: #d5d7db; /* Gray/300 */
  --toast-info: #2a71ff; /* Blue/300 */
  --toast-success: #219647; /* Green/300 */
  --toast-error: #fa3737; /* Red/150 */
  --toast-warning: #ffa500; /* Approx from design sample */
  --toast-neutral: #e9eaec; /* Gray/200 */
  --toast-radius: 8px;
  --toast-shadow: 0px 8px 10px 1px rgba(0, 0, 0, 0.03), 0px 3px 14px 2px rgba(0, 0, 0, 0.07),
    0px 5px 5px -3px rgba(0, 0, 0, 0.06);
}

.tl-toast {
  display: flex;
  align-items: stretch;
  gap: 12px;
  position: relative;
  background: var(--toast-bg);
  color: var(--toast-text);
  border-radius: var(--toast-radius);
  box-shadow: var(--toast-shadow);
  padding: 10px 12px 10px 22px; /* increased left padding to add gap between bar and message */
  min-width: 280px;
  max-width: 420px;
  font-family: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 14px; /* Text sm */
  line-height: 1.15;
  overflow: hidden;
}

.tl-toast__bar {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
}

.tl-toast__content {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tl-toast__message {
  color: var(--toast-text);
  flex: 1;            /* take available width so text can wrap */
  min-width: 0;       /* allow shrinking inside flex */
  white-space: normal;
  overflow-wrap: anywhere; /* break long unspaced strings */
  word-break: break-word;  /* fallback */
}

.tl-toast__muted {
  color: var(--toast-muted);
  font-size: 12px;
}

.tl-toast__spacer { flex: 0; }

.tl-toast__action {
  border: none;
  background: transparent;
  color: #0860e6; /* Blue/400 */
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
}

.tl-toast__close {
  border: none;
  background: transparent;
  color: var(--toast-text);
  opacity: 0.9;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 4px;
}

/* Variant bars */
.tl-toast--neutral .tl-toast__bar {
  background: var(--toast-neutral);
}
.tl-toast--info .tl-toast__bar {
  background: var(--toast-info);
}
.tl-toast--success .tl-toast__bar {
  background: var(--toast-success);
}
.tl-toast--warning .tl-toast__bar {
  background: var(--toast-warning);
}
.tl-toast--error .tl-toast__bar {
  background: var(--toast-error);
}

/* Animations: slide slightly left -> settle right, with fade */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}

.tl-toast.enter {
  animation: toast-in 180ms ease-out both;
}
.tl-toast.exit {
  animation: toast-out 160ms ease-in both;
}

/* Container (top-right stack) */
.tl-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; /* allow clicks through gaps */
}
.tl-toast-container > * {
  pointer-events: auto;
}

.newrevamp-listing-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
}

.newrevamp-listing-header--borderless {
  border: none;
}

.newrevamp-listing-header--compact {
  padding: 8px;
}

.newrevamp-listing-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newrevamp-listing-header__identity,
.newrevamp-listing-header__actions,
.newrevamp-listing-header__left-actions,
.newrevamp-listing-header__filter-content,
.newrevamp-listing-header__toggle {
  display: flex;
  align-items: center;
}

.newrevamp-listing-header__identity {
  gap: 12px;
  min-width: 200px;
}

.newrevamp-listing-header__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.newrevamp-listing-header__title {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.newrevamp-listing-header__subtitle {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.newrevamp-listing-header__icon,
.newrevamp-listing-header__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.newrevamp-listing-header__image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.newrevamp-listing-header__actions {
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.newrevamp-listing-header__search {
  width: 320px;
  max-width: 100%;
}

.newrevamp-listing-header__search-icon,
.newrevamp-listing-header__filter-content svg {
  width: 16px;
  height: 16px;
}

.newrevamp-listing-header__filter {
  position: relative;
}

.newrevamp-listing-header__filter-content {
  gap: 8px;
}

.newrevamp-listing-header__filter-button--active {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}

.newrevamp-listing-header__filter-count {
  position: absolute;
  top: -8px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 50%;
  background: #0860e6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.newrevamp-listing-header__filter-panel {
  position: fixed;
  z-index: 1100;
  height: 0;
  overflow: visible;
}

.newrevamp-listing-header__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
}

.newrevamp-listing-header__icon-button svg {
  width: 20px;
  height: 20px;
}

.newrevamp-listing-header__icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.newrevamp-listing-header__icon-button--spinning svg {
  animation: newrevamp-listing-header-spin 0.9s linear infinite;
}

.newrevamp-listing-header__toggle {
  gap: 8px;
}

.newrevamp-listing-header__toggle-label {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

.newrevamp-listing-header__switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.newrevamp-listing-header__toggle-input {
  width: 0;
  height: 0;
  opacity: 0;
}

.newrevamp-listing-header__toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #d1d5db;
  transition: background 0.2s;
}

.newrevamp-listing-header__toggle-slider::before {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
  transition: transform 0.2s;
}

.newrevamp-listing-header__toggle-input:checked + .newrevamp-listing-header__toggle-slider {
  background: #2563eb;
}

.newrevamp-listing-header__toggle-input:checked + .newrevamp-listing-header__toggle-slider::before {
  transform: translateX(20px);
}

@keyframes newrevamp-listing-header-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .newrevamp-listing-header__row {
    align-items: stretch;
    flex-direction: column;
  }

  .newrevamp-listing-header__actions {
    justify-content: stretch;
  }

  .newrevamp-listing-header__search {
    width: 100%;
  }
}
.container-grid-parent {
  padding: 0;
  margin-top: 0;
  /* margin-bottom: 1rem; */
  background-color: #fff;
  border: 1px solid #e9eaec;
  border-top: none;
  /* border-bottom-left-radius: 0.6125rem;
  border-bottom-right-radius: 0.6125rem; */
  box-sizing: border-box;
  width: 100%;
  display: block;
  overflow: hidden; /* clip inner scroll and zebra to rounded corners */
}

/* Suppress the inner frame when the parent already provides a border/card frame */
.container-grid-parent.no-border {
  border: none !important;
}

.container-grid {
  display: block;
  overflow: hidden;
}

.container-grid-noPadding {
  display: block;
  overflow: hidden;
}

.table-wrapper {
  height: auto;
  overflow-y: auto;
  overflow-x: auto;
  /* border-radius: 0.625rem; */
  width: auto;
}

.data-grid {
  border-collapse: separate !important; /* sticky header works reliably with separate */
  border-spacing: 0 !important;
  table-layout: auto;
  width: 100%;
  border: none;
  box-sizing: border-box;
  margin-top: 0;
}

.table-wrapper::-webkit-scrollbar {
  /* height: 0.3125rem; */
  display: none;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0.25rem;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.table-wrapper::-webkit-scrollbar-track {
  background: #fff;
}

.table-wrapper::-webkit-scrollbar {
  width: 0.375rem;
}

.data-grid thead th {
  font-size: 0.75rem !important; /* 12px */
  background-color: #fafafa !important;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  padding: 0.5rem 1rem !important; /* 8px 16px */
  color: #535862 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  border-bottom: 1px solid #e9eaeb !important;
}

.sticky-header-row {
  background-color: #fafafa;
  border-bottom: 1px solid #e9eaeb;
}

.data-grid-white thead th {
  background-color: #fff;
  padding: 0%;
}

.data-grid tbody td {
  font-size: 0.75rem !important; /* 12px */
  padding: 0.5rem 1rem !important; /* 8px 16px */
  border-bottom: 1px solid #e9eaec !important;
  color: #535861 !important;
  white-space: nowrap !important;
  text-align: left !important;
  background-color: #fff !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 12.5rem !important;
  min-width: 6.25rem !important;
  vertical-align: middle !important;
  line-height: 1.4 !important;
}

/* Edge cell padding for neat table edges */
.data-grid thead th:first-child,
.data-grid tbody td:first-child {
  /* padding-left: 0.5rem !important; */
}
.data-grid thead th:last-child,
.data-grid tbody td:last-child {
  /* padding-right: 1rem !important; */
}

.data-grid-row-content {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* tighter */
}

/* Tighter spacing for radio selection column */
.data-grid tbody td.radio-cell {
  padding-left: 0.5rem !important; /* ~8px */
  padding-right: 0.5rem !important; /* ~8px */
  min-width: 2.25rem !important; /* ~36px */
  max-width: 2.5rem !important; /* ~40px */
}

.data-grid thead th .sort-icon {
  font-size: 1rem !important;
  vertical-align: middle !important;
  margin-right: 0.3125rem !important;
  color: #717681 !important;
}

.data-grid thead th .sort-icon.active {
  color: #0860e6 !important;
}

.grid-expand-collapse-svg svg {
  font-size: 1rem !important;
  vertical-align: middle !important;
  margin-right: 0.3125rem !important;
  /* color: #535862 !important; */
}

.grid-expand-collapse-svg.hidden {
  display: none;
}

.data-grid tbody tr {
  height: 2.8125rem !important;
}

/* Apply hover on cells to override base td background */
.data-grid tbody tr:hover td {
  background-color: #f5f5f6 !important;
}

/* Subtle zebra striping applied on cells */
.data-grid tbody tr:nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.01) !important; /* ultra-light zebra */
}

/* Ensure hover wins over zebra on all rows */
.data-grid tbody tr:hover td {
  background-color: #f5f5f6 !important;
}

.pagination-datagrid {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.3125rem;
  font-size: 0.75rem; /* compact */
  width: 100%;
}

.pagination-button {
  margin: 0 0.1875rem;
  padding: 0.3125rem 0.625rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  color: #252b36;
}

.pagination-button:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.pagination-button:active {
  transform: none;
}

.pagination-button.grid-disabled {
  color: #a4a7af;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-button.grid-disabled:hover {
  background-color: transparent;
}

/* Sticky header styles removed as requested */

.data-grid-row-with-expansion {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.paginated-datagrid-range-arrow-par {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.87);
  font-size: 0.875rem;
}

@media screen and (max-width: 768px) {
  .data-grid thead th,
  .data-grid tbody td {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .pagination-datagrid span {
    padding: 0.25rem 0.5rem;
  }
}

/* Force left alignment for Status column content */
.data-grid tbody td.status-cell .data-grid-row-content {
  justify-content: flex-start !important;
}
.data-grid tbody td.status-cell .MuiBox-root {
  justify-content: flex-start !important;
  gap: 4px !important;
}

.ses-empty-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
  min-height: 420px;
}

.ses-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.ses-empty-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ses-empty-ring-outer {
  width: 144px;
  height: 144px;
  background: #f0f5ff;
  border: 1.5px dashed #c7d7f9;
  animation: ses-ring-spin 18s linear infinite;
  position: relative;
}

.ses-empty-ring-mid {
  width: 108px;
  height: 108px;
  background: #e6eeff;
  border: 1.5px solid #d0dffa;
}

.ses-empty-ring-inner {
  width: 76px;
  height: 76px;
  background: #0860e6;
}

.ses-empty-icon {
  width: 36px;
  height: 36px;
  color: #ffffff;
  stroke-width: 1.6;
}

@keyframes ses-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ses-empty-dots {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  margin-bottom: 4px;
}

.ses-empty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7d7f9;
  animation: ses-dot-pulse 1.4s ease-in-out infinite;
}
.ses-empty-dot--1 { animation-delay: 0s;   background: #0860e6; }
.ses-empty-dot--2 { animation-delay: 0.2s; background: #93c5fd; }
.ses-empty-dot--3 { animation-delay: 0.4s; background: #c7d7f9; }

@keyframes ses-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

.ses-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
}

.ses-empty-sub {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 0 24px;
}

.ses-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: #0860e6;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: 0.01em;
  font-family: inherit;
}
.ses-empty-cta:hover {
  background: #0652c5;
}
.ses-empty-cta:active {
  background: #0547a8;
}

.ses-empty-cta-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.ses-empty-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.ses-empty-chip {
  padding: 4px 12px;
  border-radius: 20px;
  background: #f0f6ff;
  border: 1px solid #d0e4fd;
  font-size: 11.5px;
  font-weight: 600;
  color: #0860e6;
  letter-spacing: 0.02em;
}

/*
 * Shared visual language for the Customer navigation listing pages.
 * Keep selectors rooted to these screens so other product areas are unchanged.
 */

.customers-list-page,
.invoices-list-page,
.payments-list-page,
.cancellations-list-page,
.refunds-list-page,
.tk-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
}

.customers-list-page,
.invoices-list-page,
.payments-list-page,
.cancellations-list-page,
.refunds-list-page {
  padding: 8px 0 34px;
}

/* Summary cards share the compact, low-elevation leaderboard treatment. */
.inv-summary-strip,
.pay-summary-strip,
.canc-summary-strip,
.ref-summary-strip,
.tk-summary-strip {
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.inv-summary-card,
.pay-summary-card,
.canc-summary-card,
.ref-summary-card,
.tk-summary-card {
  min-width: 0;
  min-height: 72px;
  padding: 13px 14px !important;
  align-items: center !important;
  gap: 11px !important;
  border-radius: 12px !important;
  border-color: #e7ebf2 !important;
  box-shadow: none !important;
}

.inv-summary-icon,
.pay-summary-icon,
.canc-summary-icon,
.ref-summary-icon,
.tk-summary-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  font-size: 19px !important;
}

.inv-summary-value,
.pay-summary-value,
.canc-summary-value,
.ref-summary-value,
.tk-summary-value {
  color: #182230 !important;
  font-family: var(--font-heading, "Epilogue", sans-serif);
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

.inv-summary-label,
.pay-summary-label,
.canc-summary-label,
.ref-summary-label,
.tk-summary-label {
  color: #667085 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.inv-summary-sub,
.pay-summary-sub,
.canc-summary-sub,
.ref-summary-sub,
.tk-summary-sub {
  margin-top: 2px !important;
  color: #98a2b3 !important;
  font-size: 9.5px !important;
}

/* Listing workspace, header, search and filter controls. */
.customers-list-page,
.invoices-list-page,
.payments-list-page,
.cancellations-list-page,
.refunds-list-page {
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.payments-list-page,
.cancellations-list-page,
.refunds-list-page {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pay-listing-card,
.canc-listing-card,
.ref-listing-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.pay-listing-card .newrevamp-listing-header,
.canc-listing-card .newrevamp-listing-header,
.ref-listing-card .newrevamp-listing-header {
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.pay-listing-card .newrevamp-data-grid .container-grid-parent,
.canc-listing-card .newrevamp-data-grid .container-grid-parent,
.ref-listing-card .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}

.customers-list-page > .newrevamp-listing-header,
.invoices-list-page > .newrevamp-listing-header,
.payments-list-page > .newrevamp-listing-header,
.cancellations-list-page > .newrevamp-listing-header,
.refunds-list-page > .newrevamp-listing-header {
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.customers-list-page .newrevamp-listing-header__row,
.invoices-list-page .newrevamp-listing-header__row,
.payments-list-page .newrevamp-listing-header__row,
.cancellations-list-page .newrevamp-listing-header__row,
.refunds-list-page .newrevamp-listing-header__row {
  gap: 14px;
}

.customers-list-page .newrevamp-listing-header__identity,
.invoices-list-page .newrevamp-listing-header__identity,
.payments-list-page .newrevamp-listing-header__identity,
.cancellations-list-page .newrevamp-listing-header__identity,
.refunds-list-page .newrevamp-listing-header__identity {
  gap: 0;
  min-width: 150px;
}

.customers-list-page .newrevamp-listing-header__titles,
.invoices-list-page .newrevamp-listing-header__titles,
.payments-list-page .newrevamp-listing-header__titles,
.cancellations-list-page .newrevamp-listing-header__titles,
.refunds-list-page .newrevamp-listing-header__titles {
  gap: 3px;
}

.customers-list-page .newrevamp-listing-header__title,
.invoices-list-page .newrevamp-listing-header__title,
.payments-list-page .newrevamp-listing-header__title,
.cancellations-list-page .newrevamp-listing-header__title,
.refunds-list-page .newrevamp-listing-header__title {
  color: #182230;
  font-family: var(--font-heading, "Epilogue", sans-serif);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.customers-list-page .newrevamp-listing-header__subtitle,
.invoices-list-page .newrevamp-listing-header__subtitle,
.payments-list-page .newrevamp-listing-header__subtitle,
.cancellations-list-page .newrevamp-listing-header__subtitle,
.refunds-list-page .newrevamp-listing-header__subtitle {
  color: #98a2b3;
  font-size: 10px;
}

.customers-list-page .newrevamp-listing-header__actions,
.invoices-list-page .newrevamp-listing-header__actions,
.payments-list-page .newrevamp-listing-header__actions,
.cancellations-list-page .newrevamp-listing-header__actions,
.refunds-list-page .newrevamp-listing-header__actions {
  gap: 8px;
}

.customers-list-page .newrevamp-listing-header__search,
.invoices-list-page .newrevamp-listing-header__search,
.payments-list-page .newrevamp-listing-header__search,
.cancellations-list-page .newrevamp-listing-header__search,
.refunds-list-page .newrevamp-listing-header__search {
  width: 248px;
}

.customers-list-page .newrevamp-listing-header__search .input-field,
.invoices-list-page .newrevamp-listing-header__search .input-field,
.payments-list-page .newrevamp-listing-header__search .input-field,
.cancellations-list-page .newrevamp-listing-header__search .input-field,
.refunds-list-page .newrevamp-listing-header__search .input-field {
  height: 34px;
  padding: 7px 10px 7px 32px;
  border-color: #e1e7ef;
  border-radius: 7px;
  color: #344054 !important;
  font-size: 11px;
}

.customers-list-page .newrevamp-listing-header__search .input-field::placeholder,
.invoices-list-page .newrevamp-listing-header__search .input-field::placeholder,
.payments-list-page .newrevamp-listing-header__search .input-field::placeholder,
.cancellations-list-page .newrevamp-listing-header__search .input-field::placeholder,
.refunds-list-page .newrevamp-listing-header__search .input-field::placeholder {
  color: #98a2b3;
  font-size: 11px;
}

.customers-list-page .newrevamp-listing-header__search .input-left-adornment,
.invoices-list-page .newrevamp-listing-header__search .input-left-adornment,
.payments-list-page .newrevamp-listing-header__search .input-left-adornment,
.cancellations-list-page .newrevamp-listing-header__search .input-left-adornment,
.refunds-list-page .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}

.customers-list-page .newrevamp-listing-header__search .newrevamp-listing-header__search-icon,
.invoices-list-page .newrevamp-listing-header__search .newrevamp-listing-header__search-icon,
.payments-list-page .newrevamp-listing-header__search .newrevamp-listing-header__search-icon,
.cancellations-list-page .newrevamp-listing-header__search .newrevamp-listing-header__search-icon,
.refunds-list-page .newrevamp-listing-header__search .newrevamp-listing-header__search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

.customers-list-page .newrevamp-listing-header__filter .rbtn,
.invoices-list-page .newrevamp-listing-header__filter .rbtn,
.payments-list-page .newrevamp-listing-header__filter .rbtn,
.cancellations-list-page .newrevamp-listing-header__filter .rbtn,
.refunds-list-page .newrevamp-listing-header__filter .rbtn {
  min-height: 34px;
  height: 34px;
  padding: 0 9px;
  border-color: #dbe3ee;
  border-radius: 7px;
  background: #fff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

/* Legacy grid markup used by these pages, plus the revamp wrapper used by Refunds. */
.customers-list-page .container-grid-parent,
.invoices-list-page .container-grid-parent,
.payments-list-page .container-grid-parent,
.cancellations-list-page .container-grid-parent,
.refunds-list-page .container-grid-parent,
.customers-list-page .newrevamp-data-grid .container-grid-parent,
.invoices-list-page .newrevamp-data-grid .container-grid-parent,
.payments-list-page .newrevamp-data-grid .container-grid-parent,
.cancellations-list-page .newrevamp-data-grid .container-grid-parent,
.refunds-list-page .newrevamp-data-grid .container-grid-parent {
  border: 0 !important;
  border-top: 1px solid #eef1f5 !important;
  border-radius: 0 !important;
}

.customers-list-page .data-grid thead th,
.invoices-list-page .data-grid thead th,
.payments-list-page .data-grid thead th,
.cancellations-list-page .data-grid thead th,
.refunds-list-page .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

.customers-list-page .data-grid tbody tr,
.invoices-list-page .data-grid tbody tr,
.payments-list-page .data-grid tbody tr,
.cancellations-list-page .data-grid tbody tr,
.refunds-list-page .data-grid tbody tr {
  height: 40px !important;
}

.customers-list-page .data-grid tbody td,
.invoices-list-page .data-grid tbody td,
.payments-list-page .data-grid tbody td,
.cancellations-list-page .data-grid tbody td,
.refunds-list-page .data-grid tbody td {
  height: 40px;
  min-width: 0 !important;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 10px !important;
}

.customers-list-page .data-grid tbody tr:hover td,
.invoices-list-page .data-grid tbody tr:hover td,
.payments-list-page .data-grid tbody tr:hover td,
.cancellations-list-page .data-grid tbody tr:hover td,
.refunds-list-page .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}

.customers-list-page .pagination-datagrid,
.invoices-list-page .pagination-datagrid,
.payments-list-page .pagination-datagrid,
.cancellations-list-page .pagination-datagrid,
.refunds-list-page .pagination-datagrid {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #eef1f5;
}

.customers-list-page .pagination-button,
.invoices-list-page .pagination-button,
.payments-list-page .pagination-button,
.cancellations-list-page .pagination-button,
.refunds-list-page .pagination-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
}

/* Sales Tasks has bespoke markup, so align its current structure without replacing it. */
.tk-wrap {
  padding: 8px 0 34px;
}

.tk-page-header {
  align-items: center;
  margin-bottom: 16px;
}

.tk-page-title {
  color: #182230;
  font-family: var(--font-heading, "Epilogue", sans-serif);
  font-size: 17px;
  font-weight: 800;
}

.tk-page-sub {
  color: #98a2b3;
  font-size: 10px;
}

.tk-btn-primary,
.tk-btn-gcal,
.tk-btn-ghost {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 11px;
}

.tk-summary-card {
  border-color: #e7ebf2;
}

.tk-filter-bar {
  gap: 10px;
  padding: 13px 14px;
  border-color: #e7ebf2;
  border-radius: 12px;
  box-shadow: none;
}

.tk-filter-input {
  height: 34px;
  min-width: 140px;
  border-radius: 7px;
  font-size: 11px;
}

.tk-table-wrap {
  border-color: #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.tk-table th {
  height: 32px;
  padding: 0 10px;
  background: #fbfcfe;
  border-bottom-color: #eef1f5;
  color: #7b8798;
  font-size: 9px;
  text-transform: none;
  letter-spacing: 0.01em;
}

.tk-table td {
  height: 40px;
  padding: 0 10px;
  border-bottom-color: #f0f2f5;
  font-size: 10px;
}

.tk-table tbody tr:hover {
  background: #f8fbff;
}

.tk-page-tabs {
  margin-bottom: 16px;
  border-color: #eef1f5;
}

@media (max-width: 1100px) {
  .inv-summary-strip,
  .pay-summary-strip,
  .canc-summary-strip,
  .ref-summary-strip,
  .tk-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .customers-list-page,
  .invoices-list-page,
  .payments-list-page,
  .cancellations-list-page,
  .refunds-list-page,
  .tk-wrap {
    padding-top: 4px;
  }

  .customers-list-page .newrevamp-listing-header__actions,
  .invoices-list-page .newrevamp-listing-header__actions,
  .payments-list-page .newrevamp-listing-header__actions,
  .cancellations-list-page .newrevamp-listing-header__actions,
  .refunds-list-page .newrevamp-listing-header__actions {
    width: 100%;
    justify-content: stretch;
  }

  .customers-list-page .newrevamp-listing-header__search,
  .invoices-list-page .newrevamp-listing-header__search,
  .payments-list-page .newrevamp-listing-header__search,
  .cancellations-list-page .newrevamp-listing-header__search,
  .refunds-list-page .newrevamp-listing-header__search {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 640px) {
  .inv-summary-strip,
  .pay-summary-strip,
  .canc-summary-strip,
  .ref-summary-strip,
  .tk-summary-strip {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════════════════
   Leads listing — stage pill + source badge
═══════════════════════════════════════════════════ */

.ld-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ld-company-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.ld-company-name {
  overflow: hidden;
  color: #1a1f36;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-trial-indicator {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
}

.ld-trial-indicator svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.25;
}

.ld-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ld-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ld-assigned-cell { display: flex; align-items: center; gap: 7px; }
.ld-agent-avatar {
  width: 26px; height: 26px; border-radius: 50%; color: #fff;
  font-size: 10px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   FREE TRIALS  inner content
═══════════════════════════════════════════════════ */

.ld-ft-inner {
  padding: 0;
}

/* ── Summary strip ── */
.ld-ft-summary {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
  background: #fafafa;
}
.ld-ft-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
}
.ld-ft-summary-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ld-ft-summary-val   { font-weight: 800; font-size: 15px; line-height: 1; }
.ld-ft-summary-label { font-weight: 600; }

/* ── Filter toolbar ── */
.ld-ft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  gap: 14px;
  flex-wrap: wrap;
}

.ld-ft-status-tabs {
  display: flex;
  gap: 3px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
}
.ld-ft-stab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.13s;
  white-space: nowrap;
}
.ld-ft-stab:hover  { background: rgba(255,255,255,0.7); color: #374151; }
.ld-ft-stab.active { background: #fff; color: #1a3a8f; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.ld-ft-stab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  font-size: 10px; font-weight: 700; background: #e5e7eb; color: #6b7280; line-height: 1;
}
.ld-ft-stab.active .ld-ft-stab-count { background: #dbeafe; color: #1d4ed8; }

.ld-ft-search-wrap {
  display: flex; align-items: center; gap: 7px;
  background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 9px;
  padding: 7px 12px; min-width: 240px;
}
.ld-ft-search-icon { font-size: 13px; flex-shrink: 0; }
.ld-ft-search {
  border: none; background: transparent; font-size: 13px;
  font-family: Inter, sans-serif; color: #374151; outline: none; width: 100%;
}
.ld-ft-search::placeholder { color: #9ca3af; }

/* ── Table ── */
.ld-ft-table-wrap { overflow-x: auto; }

.ld-ft-table {
  width: 100%;
  border-collapse: collapse;
}
.ld-ft-table th {
  padding: 11px 16px;
  font-size: 10.5px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.ld-ft-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f8f9fa;
  vertical-align: middle;
}
.ld-ft-table tr:last-child td { border-bottom: none; }
.ld-ft-table tbody tr:hover   { background: #fafbff; }

.ld-ft-row-warn    { background: #fffdf0 !important; }
.ld-ft-row-warn:hover    { background: #fef9e8 !important; }
.ld-ft-row-expired { background: #fffafa !important; }
.ld-ft-row-expired:hover { background: #fff5f5 !important; }

.ld-ft-col-num { color: #d1d5db; font-size: 11.5px; min-width: 28px; }

.ld-ft-company { font-weight: 700; color: #111827; font-size: 13px; line-height: 1.3; }
.ld-ft-contact { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 11.5px; color: #6b7280; }
.ld-ft-contact-sep { color: #d1d5db; }
.ld-ft-phone   { color: #9ca3af; }

.ld-ft-plan-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}

.ld-ft-date { font-size: 12.5px; color: #374151; font-weight: 500; white-space: nowrap; }

.ld-ft-extended-badge {
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: 4px;
  background: #EDE9FE; color: #5B21B6;
  font-size: 10px; font-weight: 700; margin-top: 3px;
}

.ld-ft-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.ld-ft-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Duration bar */
.ld-ft-bar-wrap  { min-width: 120px; }
.ld-ft-bar-track { height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.ld-ft-bar-fill  { height: 100%; border-radius: 3px; transition: width 0.3s; }
.ld-ft-bar-meta  { font-size: 10.5px; color: #9ca3af; white-space: nowrap; }
.ld-ft-bar-ext   { color: #5B21B6; font-weight: 700; }

/* Extend button */
.ld-ft-extend-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 8px; border: 1.5px solid #1a3a8f;
  background: #fff; color: #1a3a8f; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.15s; white-space: nowrap;
}
.ld-ft-extend-btn:hover { background: #1a3a8f; color: #fff; }

.ld-ft-extended-label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 8px;
  background: #F0FDF4; color: #15803D;
  font-size: 12px; font-weight: 700; border: 1.5px solid #BBF7D0;
}

/* Empty state */
.ld-ft-empty { text-align: center; padding: 60px 20px; font-size: 13.5px; color: #9ca3af; }
.ld-ft-empty-icon { font-size: 36px; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════
   EXTEND CONFIRM MODAL
═══════════════════════════════════════════════════ */

.ld-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ld-modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18); animation: ldModalIn 0.2s ease;
}
@keyframes ldModalIn {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ld-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid #f3f4f6;
}
.ld-modal-title { font-size: 15px; font-weight: 800; color: #111827; }
.ld-modal-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: #f3f4f6; color: #6b7280; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; transition: background 0.12s;
}
.ld-modal-close:hover { background: #e5e7eb; }

.ld-modal-body { padding: 20px 22px 8px; }

.ld-modal-company {
  display: flex; align-items: center; gap: 12px;
  background: #f8f9fa; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px;
}
.ld-modal-company-icon  { font-size: 28px; flex-shrink: 0; }
.ld-modal-company-name  { font-size: 15px; font-weight: 800; color: #111827; }
.ld-modal-company-meta  { font-size: 12px; color: #6b7280; margin-top: 2px; }

.ld-modal-info-row {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.ld-modal-info-item  { text-align: center; }
.ld-modal-info-label { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.ld-modal-info-val   { font-size: 15px; font-weight: 800; }
.ld-modal-info-arrow { font-size: 20px; color: #9ca3af; padding-top: 16px; }

.ld-modal-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: #FEF3C7; border: 1px solid #FDE68A;
  font-size: 12.5px; color: #78350F; line-height: 1.5; margin-bottom: 8px;
}
.ld-modal-notice-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.ld-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px 18px; border-top: 1px solid #f3f4f6; margin-top: 8px;
}
.ld-modal-ghost {
  padding: 9px 18px; border-radius: 9px; border: 1px solid #e5e7eb;
  background: #fff; color: #374151; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: Inter, sans-serif; transition: background 0.15s;
}
.ld-modal-ghost:hover   { background: #f9fafb; }
.ld-modal-confirm {
  padding: 9px 20px; border-radius: 9px; border: none;
  background: var(--ui-color-primary, #0562fb); color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: Inter, sans-serif; transition: opacity 0.15s;
}
.ld-modal-confirm:hover { opacity: 0.88; }

/* Shared visual layer for the new-revamp CustomDataGrid. */
.newrevamp-data-grid {
  width: 100%;
  color: #344767;
}

.newrevamp-data-grid .container-grid-parent {
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.newrevamp-data-grid .container-grid-parent.no-border {
  border: none;
  box-shadow: none;
}

.newrevamp-data-grid .table-wrapper,
.newrevamp-data-grid .custom-scrollbar {
  overflow-x: auto;
  overflow-y: auto;
  width: 100%;
}

.newrevamp-data-grid .data-grid {
  width: 100%;
  min-width: 640px;
  border-collapse: separate !important;
  border-spacing: 0;
}

.newrevamp-data-grid .data-grid thead th {
  height: 44px;
  padding: 0 16px !important;
  border-bottom: 1px solid #eaecf0 !important;
  background: #f9fafb !important;
  color: #667085 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.newrevamp-data-grid .data-grid thead th:first-child {
  border-top-left-radius: 15px;
}

.newrevamp-data-grid .data-grid thead th:last-child {
  border-top-right-radius: 15px;
}

.newrevamp-data-grid .data-grid tbody tr {
  height: 52px !important;
  transition: background-color 0.15s ease;
}

.newrevamp-data-grid .data-grid tbody tr:nth-child(even) td {
  background: #ffffff !important;
}

.newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f9fafb !important;
}

.newrevamp-data-grid .data-grid tbody td {
  max-width: 320px !important;
  min-width: 0 !important;
  height: 52px;
  padding: 0 16px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #f2f4f7 !important;
  background: #ffffff !important;
  color: #344767 !important;
  font-size: 13px !important;
  line-height: 1.4;
  text-align: left !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.newrevamp-data-grid .data-grid tbody tr:last-child td {
  border-bottom: none !important;
}

.newrevamp-data-grid .data-grid-row-content {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  overflow: hidden;
}

.newrevamp-data-grid .data-grid-row-with-expansion {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.newrevamp-data-grid .sort-icon {
  width: 16px;
  height: 16px;
  color: #98a2b3 !important;
  vertical-align: middle;
}

.newrevamp-data-grid .sort-icon.active {
  color: #1a3a8f !important;
}

.newrevamp-data-grid .pagination-datagrid {
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border-top: 1px solid #eaecf0;
  background: #ffffff;
}

.newrevamp-data-grid .paginated-datagrid-range-arrow-par {
  width: 100%;
  justify-content: flex-end;
  color: #667085;
  font-size: 12px;
}

.newrevamp-data-grid .pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  padding: 0;
  border-radius: 6px;
  color: #344767;
}

.newrevamp-data-grid .pagination-button:hover {
  background: #f2f4f7;
}

.newrevamp-data-grid .pagination-button.grid-disabled {
  color: #d0d5dd;
}

.newrevamp-data-grid .expanded-row td {
  height: auto;
  padding: 16px !important;
  background: #f9fafb !important;
  white-space: normal !important;
}

.newrevamp-data-grid .p-4 {
  padding: 28px !important;
}

@media (max-width: 768px) {
  .newrevamp-data-grid .data-grid {
    min-width: 560px;
  }

  .newrevamp-data-grid .data-grid thead th,
  .newrevamp-data-grid .data-grid tbody td {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}
.newrevamp-data-grid-mui {
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #eaecf0 !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: none;
}

.newrevamp-data-grid-mui .MuiDataGrid-columnHeaders {
  min-height: 44px !important;
  border-bottom: 1px solid #eaecf0;
  background: #f9fafb;
}

.newrevamp-data-grid-mui .MuiDataGrid-columnHeader {
  min-height: 44px !important;
  padding: 0 16px;
  color: #667085;
}

.newrevamp-data-grid-mui .MuiDataGrid-columnHeaderTitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.newrevamp-data-grid-mui .MuiDataGrid-columnSeparator,
.newrevamp-data-grid-mui .MuiDataGrid-menuIcon,
.newrevamp-data-grid-mui .MuiDataGrid-iconButtonContainer {
  display: none;
}

.newrevamp-data-grid-mui .MuiDataGrid-row {
  min-height: 52px !important;
  border-bottom: 1px solid #f2f4f7;
  transition: background-color 0.15s ease;
}

.newrevamp-data-grid-mui .MuiDataGrid-row:hover {
  background: #f9fafb;
}

.newrevamp-data-grid-mui .MuiDataGrid-cell {
  min-height: 52px !important;
  padding: 0 16px;
  border-bottom: 0;
  color: #344767;
}

.newrevamp-data-grid-mui .MuiDataGrid-cell:focus,
.newrevamp-data-grid-mui .MuiDataGrid-cell:focus-within,
.newrevamp-data-grid-mui .MuiDataGrid-columnHeader:focus,
.newrevamp-data-grid-mui .MuiDataGrid-columnHeader:focus-within {
  outline: none;
}

.newrevamp-data-grid-mui .MuiDataGrid-footerContainer {
  min-height: 52px;
  border-top: 1px solid #eaecf0;
}

.newrevamp-data-grid-mui .MuiTablePagination-root {
  color: #667085;
  font-size: 12px;
}

.newrevamp-data-grid-mui .MuiDataGrid-overlay {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .newrevamp-data-grid-mui .MuiDataGrid-columnHeader,
  .newrevamp-data-grid-mui .MuiDataGrid-cell {
    padding-right: 12px;
    padding-left: 12px;
  }
}
/* Control height */
.react-select__control, .select__control {
  min-height: 38px !important;
  height: 38px !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-radius: 8px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Value container: scrollable chip row for multi-select */
.select__control .select__value-container,
.react-select__control .react-select__value-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 6px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #D1D5DB transparent !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 0 4px 0 12px !important;
  height: 100% !important;
}

/* Indicators */
.react-select__indicators { height: 38px !important; display: flex !important; align-items: center !important; }
.react-select__indicator { padding: 0 8px 0 0 !important; }
.react-select__indicator-separator { display: none !important; }

/* Multi-value chips */
.select__multi-value,
.react-select__multi-value {
  border: 1px solid #BFDBFE !important;
  background: #EFF6FF !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 8px !important;
  display: flex !important;
  align-items: center !important;
  height: 24px !important;
  white-space: nowrap !important;
}

.select__multi-value__label,
.react-select__multi-value__label {
  color: #1D4ED8 !important;
  padding: 0 4px !important;
}

.select__multi-value__remove,
.react-select__multi-value__remove {
  color: #1D4ED8 !important;
  border-radius: 50% !important;
  margin-left: 2px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}
.select__multi-value__remove:hover,
.react-select__multi-value__remove:hover {
  background: #BFDBFE !important;
  color: #1E40AF !important;
}

/* Menu panel */
.react-select__menu {
  border-radius: 10px !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 10px 24px -2px rgba(0,0,0,0.10) !important;
  overflow: hidden !important;
  margin-top: 4px !important;
  padding: 4px 0 !important;
}

/* Scrollable list */
.react-select__menu-list {
  padding: 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: #D1D5DB transparent !important;
}

/* Individual options */
.react-select__option {
  border-radius: 6px !important;
  padding: 9px 12px !important;
  margin: 1px 4px !important;
  width: calc(100% - 8px) !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background-color 0.1s ease !important;
}

.react-select__option--is-focused {
  background-color: #F5F7FA !important;
  color: #111827 !important;
}

.react-select__option--is-selected {
  background-color: #EFF6FF !important;
  color: #1A56DB !important;
  font-weight: 500 !important;
}

.react-select__option--is-selected.react-select__option--is-focused {
  background-color: #E0EEFF !important;
}

/* Input container */
.react-select__input-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* The actual <input> inside react-select — browser default padding-inline: 2px
   shifts the caret right of the placeholder text; zero it out so caret and
   placeholder start at the same x position (set by valueContainer padding-left). */
.react-select__input-container input {
  padding: 0 !important;
  margin: 0 !important;
}

/* Native <select> fallback (non-react-select usage) */
.select-field-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.select-field-container .react-select__control {
  min-height: var(--ui-control-height, 40px);
}

.select-field-container .react-select__control--is-focused {
  box-shadow: var(--ui-focus-ring) !important;
}

.select-field-container.has-error .react-select__control {
  border-color: var(--ui-color-danger, #dc3545) !important;
}

.select-label {
  font-size: 14px;
  font-weight: 400;
  color: #535862;
  margin-bottom: 6px;
}

.select-wrapper {
  position: relative;
}

.select-field {
  width: 100%;
  height: 38px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  color: #111827 !important;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239CA3AF%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select-field:hover {
  border-color: #9CA3AF;
}

.select-field:focus {
  outline: none;
  border-color: #1A56DB;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.select-field.error {
  border-color: #EF4444;
}

.select-error-message {
  color: #EF4444;
  font-size: 12px;
  margin-top: 4px;
}

.textarea-container {
  width: 100%;
  min-width: 0;
}

.textarea-field {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid #d5d7db;
  border-radius: var(--ui-radius-sm, 8px);
  font-size: 14px;
  line-height: 20px;
  color: #111827;
  outline: none;
  resize: vertical;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
  background: var(--ui-color-surface, #fff);
}

.textarea-field:disabled {
  cursor: not-allowed;
  color: var(--ui-color-muted, #64748b);
  background: var(--ui-color-surface-subtle, #f8fafc);
}

.textarea-field:focus {
  border-color: #007bff;
  box-shadow: var(--ui-focus-ring, 0 0 0 3px rgba(5, 98, 251, 0.14));
  outline: none;
}

.textarea-field.error {
  border-color: #ef4444;
}

.page-loader-container {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f6;
  gap: 2;
}

.modal-overlay-cs {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
}

.modal-content-cs {
  background: #fff;
  border-radius: 12px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: visible;
  position: relative;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.modal-close-cs {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.modal-content::-webkit-scrollbar {
  display: none;
  height: 0%;
}

/* --- SKELETON LOADER --- */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.skeleton {
  animation: shimmer 1.5s infinite linear;
  background-color: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 104px;
  border-radius: 4px;
}

/* --- INDIVIDUAL CARD STYLES --- */
.custom-card {
  background-color: #f5f5f3;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--White, #fff);
  font-family: 'Nunito Sans', sans-serif;
  flex: 1;
}

.custom-card:hover {
  /* transform: translateY(-5px); */
}

.card-label {
  font-size: 12px;
  color: #717681;
  font-weight: 600; /* Semibold */
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-icon {
  width: 15px;
  height: 15px;
  /* color: #6b7280; */
  flex-shrink: 0;
  align-items: center;
}

.card-value {
  font-size: 16px;
  color: #414652;
  font-weight: 700; /* Bold */
  margin-top: 3px;
  min-height: 22px;
  word-break: break-word;
}

/* MODIFIED: Made this a flex container */
.card-sub {
  font-size: 12px;
  color: #535861;
  font-weight: 400; /* Regular */
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* This pushes items to opposite ends */
}

/* NEW: Styles for the "View" button */
.card-view-action {
  /* Reset button styles */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  /* Layout */
  display: flex;
  align-items: center;
  gap: 3px; /* Space between "View" text and icon */

  /* Provided styles */
  color: var(--Blue-400, #0860E6);
  text-align: center;
  font-family: var(--Nunito-Sans, "Nunito Sans");
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 11px */
}

/* NEW: Styles for the eye icon */
.view-icon {
  width: 10px;
  height: 10px;
}

/* --- WRAPPER STYLES --- */
.card-wrapper-container {
  background-color: #e8f4fb;
  padding: 16px;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 15px;
  margin-top: 0px;
}

.card-wrapper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-wrapper-heading {
  color: #1f2937;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.card-wrapper-right {
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito Sans';
}

.parent-cards-grid-section {
  background-color: '#EDF8FF';
  padding: 6;
  border-radius: '10px';
}

/* Grid with no gaps and single row */
.cards-grid {
  display: grid;
  gap: 0;
  width: 100%;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
}

/* Each card fills its grid cell */
.card-grid-item {
  width: 100%;
  border-right: 1px solid #e5e7eb;
}

.card-grid-item:last-child {
  border-right: none;
}

/* ═══════════════════════════════════════════════════
   Sales Leaderboard — listing
═══════════════════════════════════════════════════ */

.lb-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 0 34px;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
}

.lb-wrap .newrevamp-listing-header__title,
.lb-summary-value {
  font-family: var(--font-heading, "Epilogue", sans-serif);
}

/* ── Summary strip ── */
.lb-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.lb-summary-card {
  background: #fff;
  min-width: 0;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid #e7ebf2;
  box-shadow: none;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.lb-summary-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb;
  font-size: 19px;
  flex-shrink: 0;
}
.lb-summary-card:nth-child(2) .lb-summary-icon { color: #16a34a; }
.lb-summary-card:nth-child(3) .lb-summary-icon { color: #db2777; }
.lb-summary-card:nth-child(4) .lb-summary-icon { color: #d97706; }
.lb-summary-icon svg { width: 19px; height: 19px; }
.lb-summary-body { display: flex; flex-direction: column; gap: 2px; }
.lb-summary-value { font-size: 18px; font-weight: 800; color: #182230; letter-spacing: -0.02em; line-height: 1.05; }
.lb-summary-label { font-size: 10.5px; color: #667085; font-weight: 600; }
.lb-summary-sub   { font-size: 9.5px; color: #98a2b3; margin-top: 2px; }

/* ── Unified leaderboard workspace ── */
.lb-listing-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.lb-listing-card .newrevamp-listing-header {
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.lb-listing-card .newrevamp-listing-header__row {
  gap: 14px;
}

.lb-listing-card .newrevamp-listing-header__identity {
  gap: 0;
  min-width: 150px;
}

.lb-listing-card .newrevamp-listing-header__titles {
  gap: 3px;
}

.lb-listing-card .newrevamp-listing-header__title {
  color: #182230;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.lb-listing-card .newrevamp-listing-header__subtitle {
  color: #98a2b3;
  font-size: 10px;
}

.lb-listing-card .newrevamp-listing-header__actions {
  gap: 8px;
}

.lb-listing-card .newrevamp-listing-header__search {
  width: 248px;
}

.lb-listing-card .newrevamp-listing-header__search .input-field {
  height: 34px;
  padding: 7px 10px 7px 32px;
  border-color: #e1e7ef;
  border-radius: 7px;
  color: #344054 !important;
  font-size: 11px;
}

.lb-listing-card .newrevamp-listing-header__search .input-field::placeholder {
  color: #98a2b3;
  font-size: 11px;
}

.lb-listing-card .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}

.lb-listing-card .newrevamp-listing-header__search .newrevamp-listing-header-search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

/* ── Rank badge ── */
.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 500;
}
.lb-rank-1 { background: #fef3c7; color: #a16207; }
.lb-rank-2 { background: #e2e8f0; color: #475569; }
.lb-rank-3 { background: #ffedd5; color: #c2410c; }
.lb-rank-n { background: #f1f4f8; color: #667085; }

/* ── Agent name cell ── */
.lb-agent-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 28px;
}
.lb-agent-cell > div:last-child {
  flex: 1 1 auto;
  max-width: 145px;
  min-width: 0;
  overflow: hidden;
}
.lb-agent-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.lb-agent-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-agent-name   { font-size: 11px; font-weight: 700; color: #344054; }

/* ── Achievement bar ── */
.lb-ach-wrap { display: flex; align-items: center; gap: 8px; }
.lb-ach-bar  { flex: 1; height: 4px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.lb-ach-fill { height: 100%; border-radius: 4px; }
.lb-ach-pct  { font-size: 10px; font-weight: 700; min-width: 30px; text-align: right; }

/* ── Win ratio pill ── */
.lb-win-pill {
  display: inline-flex; align-items: center; gap: 4px;
   padding: 3px 7px; border-radius: 20px;
   font-size: 10px; font-weight: 700;
}

/* ── Revenue cell ── */
.lb-rev { font-size: 11px; font-weight: 700; color: #344054; }
.lb-rev-sub { font-size: 9px; color: #98a2b3; }

/* ── Region chip ── */
.lb-region {
  display: inline-flex; align-items: center;
   padding: 2px 7px; border-radius: 6px;
   font-size: 9px; font-weight: 700;
  background: #eff6ff; color: #1d4ed8;
}

/* ── Compact single region filter dropdown ── */
.lb-wrap .newrevamp-listing-header__filter .rbtn {
   min-height: 34px;
   height: 34px;
   padding: 0 9px;
  border-color: #dbe3ee;
   border-radius: 7px;
   background: #ffffff;
   color: #475467;
   font-size: 11px;
  font-weight: 700;
}

.lb-wrap .newrevamp-listing-header__filter .rbtn:hover {
  border-color: #b9cbe3;
  background: #f4f8fd;
}

.lb-wrap .newrevamp-data-grid .data-grid thead th {
  text-transform: none !important;
}

.lb-listing-card .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}

.lb-listing-card .newrevamp-data-grid .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.lb-listing-card .newrevamp-data-grid .data-grid tbody tr {
  height: 40px !important;
}

.lb-listing-card .newrevamp-data-grid .data-grid tbody td {
  height: 40px;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 10px !important;
}

.lb-listing-card .newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}

.lb-listing-card .newrevamp-data-grid .pagination-datagrid {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #eef1f5;
}

.lb-listing-card .newrevamp-data-grid .paginated-datagrid-range-arrow-par {
  justify-content: space-between;
  color: #8b95a5;
  font-size: 10px;
}

.lb-listing-card .newrevamp-data-grid .pagination-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  color: #475467;
}

.lb-listing-card .newrevamp-data-grid .pagination-button:hover {
  background: #f1f5f9;
}

@media (max-width: 1100px) {
  .lb-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lb-summary {
    grid-template-columns: 1fr;
  }

  .lb-summary-card {
    padding: 15px 16px;
  }
}

@media (max-width: 768px) {
  .lb-wrap {
    padding-top: 4px;
  }

  .lb-summary {
    gap: 8px;
  }

  .lb-listing-card .newrevamp-listing-header__actions {
    width: 100%;
    justify-content: stretch;
  }

  .lb-listing-card .newrevamp-listing-header__search {
    flex: 1;
    width: auto;
  }
}

/* ═══════════════════════════════════════════════════
   Sales Tasks Page
═══════════════════════════════════════════════════ */

.tk-wrap { padding: 4px 0 60px; }

/* ── Page header ── */
.tk-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.tk-page-title { font-size: 22px; font-weight: 900; color: #111827; letter-spacing: -0.02em; }
.tk-page-sub   { font-size: 13px; color: #6b7280; margin-top: 3px; }

/* ── Buttons ── */
.tk-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; border: none;
  background: var(--ui-color-primary, #0562fb); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: Inter, sans-serif; transition: opacity 0.15s;
}
.tk-btn-primary:hover { opacity: 0.88; }
.tk-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.tk-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid #e5e7eb; background: #fff; color: #374151;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: Inter, sans-serif; transition: background 0.15s;
}
.tk-btn-ghost:hover { background: #f9fafb; }

.tk-btn-gcal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 8px;
  border: 1.5px solid #d1d5db; background: #fff; color: #374151;
  font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: Inter, sans-serif; transition: all 0.15s;
}
.tk-btn-gcal:hover { border-color: #0562fb; color: #0562fb; background: #eff6ff; }

/* ── Summary strip ── */
.tk-summary-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 16px;
}
.tk-summary-card {
  min-width: 0; min-height: 72px;
  border-radius: 12px; border: 1px solid #e7ebf2;
  box-shadow: none;
  padding: 13px 14px; display: flex; align-items: center; gap: 11px;
}
.tk-summary-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.tk-summary-body { display: flex; flex-direction: column; gap: 2px; }
.tk-summary-value { font-size: 18px; font-weight: 800; color: #182230; letter-spacing: -0.02em; line-height: 1.05; }
.tk-summary-label { font-size: 10.5px; color: #667085; font-weight: 600; }
.tk-summary-sub   { font-size: 9.5px; color: #98a2b3; margin-top: 2px; }

/* ── Filter bar ── */
.tk-filter-bar {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 16px 20px; margin-bottom: 16px;
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.tk-filter-group { display: flex; flex-direction: column; gap: 6px; }
.tk-filter-label {
  font-size: 11px; font-weight: 700; color: #667085;
  letter-spacing: 0.01em; line-height: 1.2;
}
.tk-filter-input {
  box-sizing: border-box; height: 38px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid #dfe3e8; font-size: 13px; font-family: Inter, sans-serif;
  color: #374151; background: #fff; outline: none; min-width: 160px;
}
.tk-filter-input:hover { border-color: #b8c0cc; }
.tk-filter-input:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }
.tk-filter-clear {
  font-size: 11px; color: #6b7280; background: none; border: none; cursor: pointer;
  font-family: Inter, sans-serif; padding: 0; text-decoration: underline; align-self: center;
}

.tk-task-listing-header {
  margin-bottom: 0;
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tk-task-listing-header .newrevamp-listing-header__row {
  gap: 14px;
}
.tk-task-listing-header .newrevamp-listing-header__identity {
  gap: 0;
  min-width: 150px;
}
.tk-task-listing-header .newrevamp-listing-header__titles {
  gap: 3px;
}
.tk-task-listing-header .newrevamp-listing-header__title {
  color: #182230;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.tk-task-listing-header .newrevamp-listing-header__subtitle {
  color: #98a2b3;
  font-size: 10px;
}
.tk-task-listing-header .newrevamp-listing-header__actions { gap: 8px; }
.tk-task-listing-header .newrevamp-listing-header__left-actions { flex-shrink: 0; }
.tk-task-listing-header .newrevamp-listing-header__actions { flex-wrap: nowrap; }
.tk-date-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.tk-date-filter-label {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}
.tk-date-filter-control input {
  box-sizing: border-box;
  height: 34px;
  min-width: 132px;
  padding: 7px 9px;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font-family: Inter, sans-serif;
  font-size: 11px;
  outline: none;
}
.tk-date-filter-control input:focus {
  border-color: #0562fb;
  box-shadow: 0 0 0 3px rgba(5, 98, 251, 0.08);
}
.tk-task-listing-header .tk-filter-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.tk-task-listing-header .newrevamp-listing-header__search {
  width: 248px;
}
.tk-task-listing-header .newrevamp-listing-header__search .input-field {
  height: 34px;
  padding: 7px 10px 7px 32px;
  border-color: #e1e7ef;
  border-radius: 7px;
  color: #344054 !important;
  font-size: 11px;
}
.tk-task-listing-header .newrevamp-listing-header__search .input-field::placeholder {
  color: #98a2b3;
  font-size: 11px;
}
.tk-task-listing-header .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}
.tk-task-listing-header .newrevamp-listing-header__search .newrevamp-listing-header-search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

/* ── Leaderboard table structure ── */
.tk-list-tab .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}

.tk-list-tab .newrevamp-data-grid .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

.tk-list-tab .newrevamp-data-grid .data-grid tbody tr {
  height: 40px !important;
}

.tk-list-tab .newrevamp-data-grid .data-grid tbody td {
  height: 40px;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 10px !important;
}

.tk-list-tab .newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}

.tk-col-num  { color: #8b95a5; font-size: 10px; min-width: 28px; }

.tk-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: 6px; font-size: 9px; font-weight: 700;
  white-space: nowrap;
}

.tk-title-customer-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}
.tk-title {
  min-width: 0;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-company {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #98a2b3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-reschedule-info {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f3ff;
  color: #7C3AED;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-agent-cell {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.tk-agent-cell > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.tk-agent-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.tk-agent-name,
.tk-agent-region {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-agent-name   { font-size: 11px; font-weight: 700; color: #344054; line-height: 1.2; }
.tk-agent-name:hover { color: #0562fb; }
.tk-agent-region { font-size: 9px; color: #98a2b3; }

.tk-date-time {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.tk-date { font-size: 11px; font-weight: 700; color: #344054; }
.tk-time { font-size: 9px; color: #98a2b3; }
.tk-overdue-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  color: #991B1B; background: #FEE2E2; padding: 1px 6px; border-radius: 4px; margin-top: 3px;
}

.tk-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 20px; font-size: 10px; font-weight: 700;
}
.tk-notes { font-size: 9px; color: #98a2b3; margin-top: 4px; font-style: italic; }

.tk-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tk-action-btn {
  padding: 4px 8px; border-radius: 6px; border: 1px solid #dbe3ee;
  background: #fff; color: #475467; font-size: 10px;
  font-weight: 700; cursor: pointer; font-family: Inter, sans-serif;
  transition: opacity 0.12s; white-space: nowrap;
}
.tk-action-btn.done       { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.tk-action-btn.done:hover { opacity: 0.8; }
.tk-action-btn.undo       { background: #F3F4F6; color: #6b7280; border-color: #D1D5DB; }
.tk-action-btn.undo:hover { opacity: 0.8; }
.tk-action-btn.reschedule       { background: #EDE9FE; color: #5B21B6; border-color: #C4B5FD; }
.tk-action-btn.reschedule:hover { opacity: 0.8; }

/* ── Empty ── */
.tk-empty {
  text-align: center; padding: 52px 20px;
  font-size: 13.5px; color: #6b7280;
}
.tk-empty-icon { font-size: 34px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════ */

.tk-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.tk-modal {
  background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  width: 100%; max-height: 90vh; overflow-y: auto;
  animation: tkSlideIn 0.2s ease;
}
@keyframes tkSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.tk-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid #f3f4f6;
}
.tk-modal-title { font-size: 16px; font-weight: 800; color: #111827; }
.tk-modal-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: #f3f4f6; color: #6b7280; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; transition: background 0.12s;
}
.tk-modal-close:hover { background: #e5e7eb; }

.tk-modal-body { padding: 20px 24px 8px; }
.tk-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px 20px; border-top: 1px solid #f3f4f6; margin-top: 8px;
}

.tk-modal-task-ref {
  display: flex; align-items: center; gap: 12px;
  background: #f8f9fa; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}

/* Form elements */
.tk-form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.tk-form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-label { font-size: 11px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.05em; }
.tk-req   { color: #EF4444; }
.tk-input {
  padding: 9px 12px; border-radius: 9px; border: 1.5px solid #e5e7eb;
  font-size: 13px; font-family: Inter, sans-serif; color: #111827;
  background: #fff; outline: none; transition: border-color 0.15s;
  width: 100%; box-sizing: border-box;
}
.tk-input:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }

/* Type grid */
.tk-type-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 2px;
}
.tk-type-tile {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 4px; border-radius: 9px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280; font-size: 11.5px; font-weight: 700;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.12s;
}
.tk-type-tile:hover  { border-color: #9ca3af; }
.tk-type-tile.active { box-shadow: 0 0 0 2px currentColor; }

/* ── Google Calendar info ── */
.tk-gcal-info { text-align: center; padding: 10px 0 16px; }
.tk-gcal-icon    { font-size: 40px; margin-bottom: 12px; }
.tk-gcal-heading { font-size: 16px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.tk-gcal-desc    { font-size: 13px; color: #6b7280; margin-bottom: 16px; line-height: 1.6; }
.tk-gcal-features { text-align: left; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tk-gcal-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: #374151; font-weight: 500;
  background: #f8f9fa; border-radius: 8px; padding: 8px 12px;
}
.tk-gcal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: #FEF3C7; color: #92400E;
  font-size: 12px; font-weight: 700;
}

/* ── Page-level tab bar ── */
.tk-page-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 20px;
}
.tk-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
  white-space: nowrap;
}
.tk-page-tab:hover  { color: #1a3a8f; }
.tk-page-tab.active { color: #1a3a8f; border-bottom-color: #1a3a8f; }
.tk-page-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  font-size: 10px; font-weight: 700; background: #F3F4F6; color: #6b7280; line-height: 1;
}
.tk-page-tab.active .tk-page-tab-badge { background: #DBEAFE; color: #1D4ED8; }

.tk-page-tab-list {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .tk-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .tk-type-grid     { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .tk-summary-strip { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   TASK METRICS TAB
═══════════════════════════════════════════════════ */

.tkm-wrap { display: flex; flex-direction: column; gap: 18px; padding-bottom: 40px; }

/* ── Section cards ── */
.tkm-section-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.tkm-section-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.tkm-section-title { font-size: 15px; font-weight: 800; color: #111827; }
.tkm-section-sub   { font-size: 12px; color: #9ca3af; margin-top: 2px; }

.tkm-agent-breakdown-card {
  border: none;
  box-shadow: none;
}

.tkm-filter-summary {
  font-size: 12px;
  color: #9ca3af;
  padding: 0 2px;
}
.tk-page-tabs-summary {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  padding: 0 12px;
  overflow: hidden;
  color: #667085;
  line-height: 1.3;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-page-tabs-summary strong {
  color: #344054;
  font-weight: 700;
}

/* ── KPI strip ── */
.tkm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tkm-kpi-card {
  min-width: 0;
  min-height: 72px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  box-shadow: none;
}
.tkm-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.tkm-kpi-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tkm-kpi-icon svg {
  width: 19px;
  height: 19px;
}
.tkm-kpi-val {
  font-size: 18px;
  font-weight: 800;
  color: #182230;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.tkm-kpi-label {
  font-size: 10.5px;
  color: #667085;
  font-weight: 600;
}

/* ── Type cards grid ── */
.tkm-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
   gap: 12px;
   padding: 16px 20px 20px;
}
.tkm-type-card {
   min-width: 0;
   padding: 16px;
   border: 1px solid #eaecf0;
   border-radius: 12px;
   background: #fff;
   box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
   transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tkm-type-card:hover {
   border-color: #d0d5dd;
   box-shadow: 0 5px 14px rgba(16, 24, 40, 0.07);
   transform: translateY(-1px);
}

.tkm-type-header {
   display: flex;
   align-items: center;
   gap: 10px;
   min-height: 42px;
   margin-bottom: 18px;
}
.tkm-type-icon-wrap {
   width: 40px;
   height: 40px;
   border-radius: 11px;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 17px;
   box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.tkm-type-name {
   overflow: hidden;
   color: #1d2939;
   font-size: 13px;
   font-weight: 750;
   line-height: 1.25;
   text-overflow: ellipsis;
   white-space: nowrap;
}
.tkm-type-count {
   margin-top: 4px;
   color: #98a2b3;
   font-size: 11px;
   font-weight: 500;
   line-height: 1.2;
}
.tkm-type-rate {
   margin-left: auto;
   padding: 6px 8px;
   border: 1px solid #eaecf0;
   border-radius: 8px;
   background: #f9fafb;
   font-size: 18px;
   font-weight: 900;
   line-height: 1;
   white-space: nowrap;
}

/* Stacked completion bar */
.tkm-bar-track {
  height: 7px;
  border-radius: 999px;
  background: #f2f4f7;
  display: flex;
  overflow: hidden;
  margin: 0 1px 14px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
}
.tkm-bar-seg {
  height: 100%;
  flex: 0 0 auto;
  transition: width 0.4s ease;
}
.tkm-bar-seg.done      { background: #22C55E; }
.tkm-bar-seg.rescheduled { background: #A78BFA; }
.tkm-bar-seg.pending   { background: #FCD34D; }
.tkm-bar-seg.empty     { background: #f3f4f6; }

.tkm-type-breakdown {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 6px;
   min-height: 24px;
}
.tkm-bd {
   display: inline-flex;
   align-items: center;
   min-height: 22px;
   padding: 3px 8px;
   border: 1px solid transparent;
   border-radius: 999px;
   font-size: 10.5px;
   font-weight: 700;
   line-height: 1;
   white-space: nowrap;
}
.tkm-bd.done        { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.tkm-bd.pending     { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.tkm-bd.rescheduled { background: #f4f3ff; border-color: #d9d6fe; color: #5925dc; }

/* ── Activity completion reference layout ── */
.tkm-type-section {
  border-color: #e7ebf0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}
.tkm-type-section .tkm-section-header {
  padding: 16px 20px 13px;
}
.tkm-type-section .tkm-section-title {
  color: #101828;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.tkm-type-section .tkm-section-sub {
  margin-top: 4px;
  color: #667085;
  font-size: 11.5px;
}
.tkm-type-section .tkm-type-grid {
  align-items: stretch;
  gap: 12px;
  padding: 12px 14px 14px;
}
.tkm-type-section .tkm-type-card {
  box-sizing: border-box;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  padding: 13px 12px 12px;
  border-color: #edf0f4;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);
}
.tkm-type-section .tkm-type-card:hover {
  border-color: #d9dee7;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}
.tkm-type-section .tkm-type-header {
  min-height: 36px;
  margin-bottom: 16px;
  gap: 9px;
}
.tkm-type-section .tkm-type-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 16px;
}
.tkm-type-section .tkm-type-header > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.tkm-type-section .tkm-type-name {
  color: #182230;
  font-size: 12px;
  font-weight: 800;
}
.tkm-type-section .tkm-type-count {
  margin-top: 3px;
  color: #667085;
  font-size: 10.5px;
}
.tkm-type-section .tkm-type-rate {
  padding: 6px 8px;
  border-color: #fbe3e5;
  border-radius: 7px;
  background: #fff3f4;
  font-size: 15px;
  font-weight: 850;
}
.tkm-type-section .tkm-bar-track {
  height: 8px;
  margin: 0 0 13px;
  border-radius: 999px;
  background: #eef1f4;
  box-shadow: none;
}
.tkm-type-section .tkm-type-breakdown {
  align-content: flex-start;
  gap: 6px;
  min-height: 46px;
  margin-top: auto;
}
.tkm-type-section .tkm-bd {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

/* ── Volume chart ── */
.tkm-chart-wrap { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.tkm-chart-row  { display: flex; align-items: center; gap: 14px; }
.tkm-chart-label { min-width: 120px; flex-shrink: 0; }
.tkm-chart-bars  { flex: 1; min-width: 0; }
.tkm-chart-total-bar {
  height: 14px; border-radius: 7px; background: #f3f4f6;
  position: relative; overflow: hidden; min-width: 2px;
}
.tkm-chart-done-bar {
  height: 100%; border-radius: 7px; transition: width 0.4s; position: absolute; top: 0; left: 0;
}
.tkm-chart-nums {
  min-width: 56px; font-size: 12px; text-align: right;
  display: flex; align-items: center; gap: 2px; justify-content: flex-end;
}
.tkm-chart-legend {
  display: flex; gap: 20px; padding: 0 20px 16px;
  font-size: 11.5px; color: #6b7280; font-weight: 600;
}
.tkm-legend-item { display: flex; align-items: center; gap: 6px; }
.tkm-legend-dot  { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ── Agent table ── */
.tkm-agent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.tkm-agent-table th {
  padding: 10px 13px; font-size: 10.5px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em; text-align: left;
  border-bottom: 1px solid #f3f4f6; background: #fafafa; white-space: nowrap;
}
.tkm-agent-table td {
  padding: 11px 13px; border-bottom: 1px solid #f8f9fa;
  vertical-align: middle; color: #374151;
}
.tkm-agent-table th:nth-child(2),
.tkm-agent-table td:nth-child(2) {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}
.tkm-agent-table tr:last-child td { border-bottom: none; }
.tkm-agent-table tbody tr:hover   { background: #fafbff; }

.tkm-col-num  { color: #d1d5db; font-size: 11px; min-width: 24px; }

.tkm-agent-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 174px;
  min-width: 0;
  min-height: 32px;
}
.tkm-agent-cell > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.tkm-agent-avatar {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}
.tkm-agent-name,
.tkm-agent-role {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tkm-agent-name  { font-size: 12.5px; font-weight: 700; color: #111827; line-height: 1.2; }
.tkm-agent-name:hover { color: #0562fb; }
.tkm-agent-role { font-size: 11.5px; color: #6b7280; }

.tkm-region-tag {
  display: inline-flex; padding: 2px 8px; border-radius: 5px;
  background: #F1F5F9; color: #475569;
  font-size: 10.5px; font-weight: 700;
}

.tkm-type-cell { min-width: 72px; }
.tkm-type-cell-nums { display: flex; align-items: center; gap: 2px; font-size: 12px; }
.tkm-mini-bar { height: 4px; border-radius: 2px; background: #f3f4f6; margin-top: 4px; overflow: hidden; }
.tkm-mini-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }

.tkm-rate-pill {
  display: inline-flex; padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}

.tkm-empty {
  text-align: center; padding: 44px; font-size: 13.5px; color: #9ca3af;
}

/* ── Funnel ── */
.tkm-funnel-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  padding: 20px;
  align-items: stretch;
}
.tkm-funnel-main {
  min-width: 0;
  overflow-x: auto;
  padding: 4px 4px 8px;
}
.tkm-funnel-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  min-width: 760px;
  align-items: start;
  padding-top: 4px;
}
.tkm-funnel-step {
  position: relative;
  min-height: 150px;
  padding: 0 8px;
  text-align: center;
}
.tkm-funnel-step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 0 5px #fff;
}
.tkm-funnel-connector {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 50%;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb !important;
}
.tkm-funnel-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #cbd5e1;
}
.tkm-funnel-connector span {
  position: absolute;
  left: 50%;
  top: -19px;
  transform: translateX(-50%);
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.tkm-funnel-stage-label {
  min-height: 32px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}
.tkm-funnel-stage-count {
  margin-top: 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.tkm-funnel-pct {
  margin-top: 6px;
  color: #98a2b3;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Funnel summary */
.tkm-funnel-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #f9fafb;
}
.tkm-funnel-summary-title {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tkm-funnel-kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #eaecf0;
}
.tkm-funnel-kpi-val { font-size: 24px; font-weight: 900; line-height: 1; }
.tkm-funnel-kpi-label { color: #667085; font-size: 11px; font-weight: 700; }

/* ── Leaderboard-style task workspace ── */
.tk-workspace-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.tk-workspace-card .tk-page-header {
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 13px 14px 11px;
}

.tk-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tk-workspace-card .tk-page-tabs {
  justify-content: space-between;
  margin: 0;
  padding: 0 14px;
  background: #fbfcfe;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
}

.tk-workspace-card .tk-page-tab {
  padding: 10px 12px;
  font-size: 11px;
}

.tk-list-tab {
  min-width: 0;
}

.tk-list-tab .tk-filter-bar {
  margin: 0;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  border-radius: 0;
  box-shadow: none;
}

.tk-workspace-card > .tkm-wrap {
  padding: 16px;
  gap: 16px;
}

.tk-workspace-card > .tkm-wrap .tkm-kpi-card,
.tk-workspace-card > .tkm-wrap .tkm-section-card {
  box-shadow: none;
  border-color: #e5eaf1;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .tkm-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .tkm-type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .tk-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .tk-type-grid     { grid-template-columns: repeat(3, 1fr); }
  .tkm-kpi-strip    { grid-template-columns: repeat(2, 1fr); }
  .tkm-type-grid    { grid-template-columns: repeat(2, 1fr); }
  .tkm-funnel-wrap { grid-template-columns: 1fr; }
  .tkm-funnel-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }
  .tkm-funnel-summary-title { grid-column: 1 / -1; }
  .tkm-funnel-kpi { padding-top: 0; border-top: none; }
}
@media (max-width: 600px) {
  .tk-summary-strip  { grid-template-columns: 1fr 1fr; }
  .tk-filter-bar     { flex-direction: column; }
  .tkm-kpi-strip     { grid-template-columns: 1fr; }
  .tkm-type-grid     { grid-template-columns: 1fr; }
  .tkm-funnel-wrap { padding: 14px; }
  .tkm-funnel-sidebar { grid-template-columns: 1fr; }
  .tkm-funnel-summary-title { grid-column: auto; }
  .tkm-funnel-kpi { padding-top: 10px; border-top: 1px solid #eaecf0; }
}

@media (max-width: 768px) {
  .tk-workspace-card .tk-page-header {
    align-items: flex-start;
  }

  .tk-page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .tk-page-actions > button {
    flex: 1;
    justify-content: center;
  }

  .tk-workspace-card .tk-page-tabs {
    overflow-x: auto;
  }

  .tk-task-listing-header .newrevamp-listing-header__actions {
    flex-wrap: wrap;
  }

  .tk-workspace-card > .tkm-wrap {
    padding: 12px;
  }
}

@media (max-width: 1100px) {
  .tkm-type-section .tkm-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .tkm-type-section .tkm-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tkm-type-section .tkm-type-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Leaderboard-style agent breakdown grid ── */
.tkm-agent-breakdown-card {
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.tkm-agent-breakdown-card .newrevamp-data-grid {
  width: 100%;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .container-grid-parent {
  overflow: hidden;
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
  box-shadow: none;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .data-grid {
  min-width: 1080px;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  letter-spacing: 0.01em;
  text-transform: none;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .data-grid tbody tr {
  height: 40px !important;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .data-grid tbody td {
  height: 40px;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 11px !important;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .pagination-datagrid {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #eef1f5;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .paginated-datagrid-range-arrow-par {
  justify-content: space-between;
  color: #8b95a5;
  font-size: 10px;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .pagination-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  color: #475467;
}
.tkm-agent-breakdown-card .newrevamp-data-grid .pagination-button:hover {
  background: #f1f5f9;
}
.tkm-agent-breakdown-card .tkm-agent-cell {
  gap: 8px;
  max-width: 174px;
  min-height: 28px;
}
.tkm-agent-breakdown-card .tkm-agent-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}
.tkm-agent-breakdown-card .tkm-agent-name {
  font-size: 11px;
  color: #344054;
}
.tkm-agent-breakdown-card .tkm-region-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 9px;
}

/* ═══════════════════════════════════════════════════
   Pallet Move — Listing Page
═══════════════════════════════════════════════════ */

.pm-wrap { padding: 4px 0 60px; }

/* ── Page header ── */
.pm-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.pm-page-title { font-size: 22px; font-weight: 900; color: #111827; letter-spacing: -0.02em; }
.pm-page-sub   { font-size: 13px; color: #6b7280; margin-top: 3px; }

/* ── Buttons ── */
.pm-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; border: none;
  background: var(--ui-color-primary, #0562fb); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: Inter, sans-serif; transition: opacity 0.15s;
}
.pm-btn-primary:hover { opacity: 0.88; }

.pm-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px;
  border: 1.5px solid #e5e7eb; background: #fff; color: #374151;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: Inter, sans-serif; transition: all 0.15s;
}
.pm-btn-ghost:hover { border-color: #9ca3af; background: #f9fafb; }

/* ── KPI strip ── */
.pm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.pm-kpi-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.pm-kpi-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.pm-kpi-val   { font-size: 26px; font-weight: 900; color: #111827; letter-spacing: -0.02em; line-height: 1; }
.pm-kpi-label { font-size: 11px; font-weight: 700; color: #374151; margin-top: 3px; }
.pm-kpi-sub   { font-size: 10.5px; color: #9ca3af; margin-top: 1px; }

/* ── Filter / search bar ── */
.pm-filter-bar {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 14px 18px; margin-bottom: 16px;
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.pm-filter-group { display: flex; flex-direction: column; gap: 5px; }
.pm-filter-label {
  font-size: 10.5px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pm-filter-input {
  padding: 8px 12px; border-radius: 8px; border: 1px solid #e5e7eb;
  font-size: 13px; font-family: Inter, sans-serif; color: #374151;
  background: #fff; outline: none; min-width: 130px;
}
.pm-filter-input:focus { border-color: #1a3a8f; box-shadow: 0 0 0 3px rgba(26,58,143,0.08); }

.pm-pill-row { display: flex; flex-wrap: wrap; gap: 5px; }
.pm-pill {
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280; font-size: 11.5px; font-weight: 600;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.12s;
  white-space: nowrap;
}
.pm-pill:hover  { border-color: #9ca3af; color: #374151; }
.pm-pill.active { background: #1a3a8f; border-color: #1a3a8f; color: #fff; }

.pm-result-count {
  font-size: 12px; font-weight: 700; color: #6b7280; white-space: nowrap; padding-bottom: 2px;
}

/* ── Cell styles ── */
.pm-order-id {
  font-size: 12.5px; font-weight: 800; color: #1a3a8f;
  letter-spacing: 0.01em; white-space: nowrap;
}
.pm-order-date { font-size: 10.5px; color: #9ca3af; margin-top: 2px; }

.pm-customer-name  { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.3; }
.pm-customer-phone { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.pm-loc-id   { font-size: 10.5px; font-weight: 700; color: #9ca3af; letter-spacing: 0.04em; }
.pm-loc-name { font-size: 12.5px; font-weight: 700; color: #111827; margin-top: 2px; line-height: 1.2; }
.pm-loc-city { font-size: 11px; color: #6b7280; margin-top: 1px; }

.pm-type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; border: 1px solid;
  white-space: nowrap;
}

.pm-pkg-desc   { font-size: 12.5px; font-weight: 700; color: #111827; }
.pm-pkg-meta   { font-size: 11px; color: #6b7280; margin-top: 2px; }
.pm-pkg-dims   { font-size: 10.5px; color: #9ca3af; margin-top: 1px; }

.pm-pay-amount { font-size: 13px; font-weight: 800; color: #111827; }
.pm-pay-method {
  display: inline-flex; padding: 2px 8px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; margin-top: 4px;
}
.pm-pay-status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 4px; vertical-align: middle;
}

.pm-pickup-addr {
  font-size: 11.5px; color: #374151; line-height: 1.5;
  max-width: 220px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.pm-status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.pm-status-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.pm-delivery-date { font-size: 10.5px; color: #9ca3af; margin-top: 3px; }

.pm-notes-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: #92400E; background: #FEF3C7;
  padding: 1px 6px; border-radius: 4px; margin-top: 4px;
}

/* ── Empty state ── */
.pm-empty {
  text-align: center; padding: 52px 20px;
  font-size: 13.5px; color: #6b7280;
}
.pm-empty-icon { font-size: 38px; margin-bottom: 12px; }

/* ── Detail Modal ── */
.pm-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pm-modal {
  background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto;
  animation: pmSlideIn 0.2s ease;
}
@keyframes pmSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.pm-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid #f3f4f6;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.pm-modal-title { font-size: 16px; font-weight: 800; color: #111827; }
.pm-modal-subtitle { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.pm-modal-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: #f3f4f6; color: #6b7280; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; transition: background 0.12s;
}
.pm-modal-close:hover { background: #e5e7eb; }
.pm-modal-body { padding: 20px 24px 24px; }

.pm-modal-section { margin-bottom: 20px; }
.pm-modal-section-title {
  font-size: 10.5px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.pm-modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pm-modal-field {}
.pm-modal-field-label { font-size: 11px; color: #9ca3af; font-weight: 600; margin-bottom: 3px; }
.pm-modal-field-val   { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.4; }
.pm-modal-field-val.mono { font-family: "SF Mono", "Fira Code", monospace; font-size: 12.5px; }

.pm-modal-addr-box {
  background: #f8f9fa; border-radius: 10px; padding: 12px 14px;
  font-size: 12.5px; color: #374151; line-height: 1.6;
  border-left: 3px solid #1a3a8f;
}

.pm-modal-timeline { display: flex; flex-direction: column; gap: 0; }
.pm-modal-tl-item  { display: flex; gap: 12px; }
.pm-modal-tl-left  { display: flex; flex-direction: column; align-items: center; }
.pm-modal-tl-dot   {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 3px;
}
.pm-modal-tl-line  { width: 2px; flex: 1; background: #f3f4f6; margin: 3px 0; min-height: 18px; }
.pm-modal-tl-item:last-child .pm-modal-tl-line { display: none; }
.pm-modal-tl-content { padding-bottom: 14px; }
.pm-modal-tl-label  { font-size: 12.5px; font-weight: 700; color: #111827; }
.pm-modal-tl-meta   { font-size: 11px; color: #9ca3af; margin-top: 1px; }

.pm-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px 20px; border-top: 1px solid #f3f4f6;
}

/* ── Responsive ── */
@media (max-width: 1100px) { .pm-kpi-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .pm-kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  {
  .pm-kpi-strip    { grid-template-columns: 1fr 1fr; }
  .pm-filter-bar   { flex-direction: column; }
  .pm-modal-grid   { grid-template-columns: 1fr; }
}

/* ── Sales Leaderboard visual language ── */
.pm-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 0 34px;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
}

.pm-kpi-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pm-kpi-card {
  min-width: 0;
  min-height: 72px;
  padding: 13px 14px;
  gap: 11px;
  border-radius: 12px;
  border-color: #e7ebf2;
  box-shadow: none;
}

.pm-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 19px;
}

.pm-kpi-val {
  font-family: var(--font-heading, "Epilogue", sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #182230;
  line-height: 1.05;
}

.pm-kpi-label {
  margin-top: 2px;
  color: #667085;
  font-size: 10.5px;
  font-weight: 600;
}

.pm-kpi-sub {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 9.5px;
}

.pm-listing-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.pm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 13px 14px 11px;
  border: 0;
  background: #fff;
}

.pm-page-title {
  color: #182230;
  font-family: var(--font-heading, "Epilogue", sans-serif);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.pm-page-sub {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 10px;
}

.pm-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pm-header-controls {
  min-width: 0;
  flex: 0 1 auto;
}

.pm-header-controls .pm-listing-header {
  width: auto;
}

.pm-header-controls .newrevamp-listing-header__row {
  flex-wrap: nowrap;
}

.pm-header-controls .newrevamp-listing-header__actions {
  flex: 0 1 auto;
  flex-wrap: nowrap;
}

.pm-header-controls .newrevamp-listing-header__search {
  flex: 0 1 320px;
  width: 320px;
}

.pm-btn-primary,
.pm-btn-ghost {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
}

.pm-btn-primary {
  padding: 0 12px;
  background: var(--ui-color-primary, #0562fb);
  font-family: Inter, sans-serif;
}

.pm-btn-ghost {
  border: 1px solid #dbe3ee;
  color: #475467;
}

.pm-btn-ghost:hover {
  border-color: #b9cbe3;
  background: #f4f8fd;
}

.pm-filter-bar {
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #eef1f5;
  border-radius: 0;
  background: #fbfcfe;
  box-shadow: none;
}

.pm-listing-header {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pm-listing-header .newrevamp-listing-header__row {
  gap: 10px;
}

.pm-listing-header .newrevamp-listing-header__identity {
  display: none;
}

.pm-listing-header .newrevamp-listing-header__actions {
  justify-content: flex-start;
  gap: 10px;
}

.pm-listing-header .newrevamp-listing-header__search {
  order: 1;
  flex: 1 1 220px;
  width: auto;
}

.pm-listing-header .newrevamp-listing-header__filter {
  order: 2;
}

.pm-listing-header .newrevamp-listing-header__left-actions {
  order: 3;
  margin-left: auto;
}

.pm-filter-group {
  min-width: 0;
  gap: 4px;
}

.pm-filter-label {
  color: #7b8798;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.pm-pill-row {
  gap: 5px;
  flex-wrap: nowrap;
}

.pm-pill {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  color: #475467;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
}

.pm-pill:hover {
  border-color: #b9cbe3;
  color: #1d4ed8;
  background: #f4f8fd;
}

.pm-pill.active {
  background: #eff6ff;
  border-color: #b7cef5;
  color: #1d4ed8;
}

.pm-filter-input {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 7px 10px 7px 32px;
  border-color: #e1e7ef;
  border-radius: 7px;
  color: #344054;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
  font-size: 11px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E")
    no-repeat 10px center;
}

.pm-filter-input::placeholder {
  color: #98a2b3;
  font-size: 11px;
}

.pm-filter-input:focus {
  border-color: #b7cef5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.pm-search-group {
  flex: 1 1 200px;
}

.pm-result-count-wrap {
  display: flex;
  align-items: flex-end;
  min-height: 34px;
}

.pm-result-count {
  padding-bottom: 0;
  color: #667085;
  font-size: 11px;
}

.pm-listing-card .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}

.pm-listing-card .newrevamp-data-grid .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

.pm-listing-card .newrevamp-data-grid .data-grid tbody tr {
  height: 40px !important;
}

.pm-listing-card .newrevamp-data-grid .data-grid tbody td {
  height: 40px;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 10px !important;
}

.pm-listing-card .newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}

.pm-listing-card .newrevamp-data-grid .pagination-datagrid {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #eef1f5;
}

.pm-listing-card .newrevamp-data-grid .paginated-datagrid-range-arrow-par {
  justify-content: space-between;
  color: #8b95a5;
  font-size: 10px;
}

.pm-listing-card .newrevamp-data-grid .pagination-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  color: #475467;
}

.pm-listing-card .newrevamp-data-grid .pagination-button:hover {
  background: #f1f5f9;
}

.pm-row-number {
  color: #98a2b3;
  font-size: 10px;
}

.pm-order-id,
.pm-customer-name,
.pm-loc-name,
.pm-pkg-desc,
.pm-pay-amount {
  color: #344054;
}

.pm-order-id {
  font-size: 11px;
  font-weight: 700;
}

.pm-order-date,
.pm-customer-phone,
.pm-loc-id,
.pm-loc-city,
.pm-pkg-meta,
.pm-pkg-dims,
.pm-delivery-date {
  color: #98a2b3;
  font-size: 9.5px;
}

.pm-customer-name,
.pm-loc-name,
.pm-pkg-desc {
  font-size: 11px;
}

.pm-payment-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
}

.pm-payment-status.paid { color: #065F46; }
.pm-payment-status.pending {
  color: #92400E;
  background: transparent;
  border: none;
}

.pm-pickup-addr {
  max-width: 190px;
  color: #475467;
  font-size: 10.5px;
}

.pm-type-badge,
.pm-status-pill,
.pm-pay-method {
  border-radius: 6px;
  font-size: 10px;
}

.pm-status-pill {
  padding: 3px 7px;
}

.pm-pay-method {
  padding: 2px 7px;
}

@media (max-width: 1100px) {
  .pm-kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pm-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-filter-bar { align-items: stretch; }
  .pm-pill-row { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .pm-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-page-header { align-items: flex-start; flex-direction: column; }
  .pm-page-actions { width: 100%; justify-content: flex-start; }
  .pm-header-controls { flex: 1 1 100%; }
  .pm-header-controls .newrevamp-listing-header__row,
  .pm-header-controls .newrevamp-listing-header__actions { flex-wrap: wrap; }
  .pm-header-controls .newrevamp-listing-header__search {
    flex: 1 1 220px;
    width: auto;
  }
}

/* ═══════════════════════════════════════════════════
   Wallet — Inward Remittance
═══════════════════════════════════════════════════ */

.ir-wrap { padding: 4px 0 60px; }

/* ── Page header ── */
.ir-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.ir-page-title { font-size: 22px; font-weight: 900; color: #111827; letter-spacing: -0.02em; }
.ir-page-sub   { font-size: 13px; color: #6b7280; margin-top: 3px; }

/* ── Buttons ── */
.ir-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; border: none;
  background: var(--ui-color-primary, #0562fb); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: Inter, sans-serif; transition: opacity 0.15s;
}
.ir-btn-primary:hover { opacity: 0.88; }

.ir-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px;
  border: 1.5px solid #e5e7eb; background: #fff; color: #374151;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: Inter, sans-serif; transition: all 0.15s;
}
.ir-btn-ghost:hover { border-color: #9ca3af; background: #f9fafb; }

/* ── KPI strip ── */
.ir-kpi-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.ir-kpi-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 16px 18px;
}
.ir-kpi-top    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ir-kpi-icon   { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ir-kpi-badge  { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.ir-kpi-amount { font-size: 22px; font-weight: 900; color: #111827; letter-spacing: -0.02em; line-height: 1; }
.ir-kpi-label  { font-size: 11px; font-weight: 700; color: #6b7280; margin-top: 4px; }
.ir-kpi-sub    { font-size: 10.5px; color: #9ca3af; margin-top: 2px; }

/* ── Filter / search bar ── */
.ir-filter-bar {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 14px 18px; margin-bottom: 16px;
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.ir-filter-group { display: flex; flex-direction: column; gap: 5px; }
.ir-filter-label { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; }
.ir-filter-input {
  padding: 8px 12px; border-radius: 8px; border: 1px solid #e5e7eb;
  font-size: 13px; font-family: Inter, sans-serif; color: #374151;
  background: #fff; outline: none; min-width: 130px;
}
.ir-filter-input:focus { border-color: #1a3a8f; box-shadow: 0 0 0 3px rgba(26,58,143,0.08); }

.ir-pill-row { display: flex; flex-wrap: wrap; gap: 5px; }
.ir-pill {
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280; font-size: 11.5px; font-weight: 600;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.12s; white-space: nowrap;
}
.ir-pill:hover  { border-color: #9ca3af; color: #374151; }
.ir-pill.active { background: #1a3a8f; border-color: #1a3a8f; color: #fff; }

.ir-date-range  { display: flex; align-items: center; gap: 8px; }
.ir-result-count { font-size: 12px; font-weight: 700; color: #6b7280; white-space: nowrap; padding-bottom: 2px; }

/* ── Transaction ID cell ── */
.ir-txn-id {
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  font-size: 12.5px; font-weight: 700; color: #1a3a8f;
  letter-spacing: 0.02em; white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.ir-txn-id:hover .ir-copy-icon { opacity: 1; }
.ir-copy-icon { opacity: 0; font-size: 11px; color: #9ca3af; transition: opacity 0.15s; }
.ir-copy-toast {
  font-size: 10.5px; color: #065F46; background: #D1FAE5;
  padding: 1px 6px; border-radius: 4px; font-weight: 700;
  font-family: Inter, sans-serif; white-space: nowrap;
}
.ir-txn-note { font-size: 10px; color: #9ca3af; margin-top: 2px; font-family: Inter, sans-serif; }

/* ── Date / time cell ── */
.ir-date      { font-size: 12.5px; font-weight: 600; color: #111827; white-space: nowrap; }
.ir-time      { font-size: 11px; color: #9ca3af; margin-top: 2px; white-space: nowrap; }

/* ── Company cell ── */
.ir-company-flag  { display: inline-flex; align-items: center; gap: 6px; }
.ir-company-name  { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.3; }
.ir-company-id    { font-size: 11px; color: #9ca3af; margin-top: 2px; font-family: "SF Mono","Fira Code",monospace; }

/* ── Amount cell ── */
.ir-amount-wrap { text-align: right; }
.ir-amount      { font-size: 14px; font-weight: 900; color: #065F46; white-space: nowrap; }
.ir-amount.negative { color: #991B1B; }
.ir-currency    { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; }
.ir-currency-code { font-size: 10.5px; font-weight: 700; color: #9ca3af; }
.ir-inr-equiv   { font-size: 10.5px; color: #9ca3af; }

/* ── Payment mode cell ── */
.ir-mode-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap;
}
.ir-mode-sub { font-size: 10px; color: #9ca3af; margin-top: 2px; font-weight: 600; }

/* ── UTR cell ── */
.ir-utr {
  font-family: "SF Mono","Fira Code","Courier New",monospace;
  font-size: 11.5px; color: #374151; font-weight: 600;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
}
.ir-utr:hover .ir-copy-icon { opacity: 1; }

/* ── Status cell ── */
.ir-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.ir-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.ir-status-dot.pulse { animation: ir-pulse 1.8s ease-in-out infinite; }
@keyframes ir-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Actions cell ── */
.ir-actions { position: relative; display: flex; justify-content: center; }
.ir-action-menu-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280; font-size: 16px; font-weight: 900;
  cursor: pointer; font-family: Inter, sans-serif;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s; letter-spacing: 1px;
}
.ir-action-menu-btn:hover { border-color: #1a3a8f; color: #1a3a8f; background: #eff6ff; }

.ir-dropdown {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 100;
  background: #fff; border-radius: 10px; border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10); min-width: 170px;
  overflow: hidden; animation: ir-drop 0.15s ease;
}
@keyframes ir-drop {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ir-dropdown-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; font-size: 13px; font-weight: 600; color: #374151;
  cursor: pointer; transition: background 0.1s; white-space: nowrap;
  font-family: Inter, sans-serif; background: none; border: none; width: 100%;
  text-align: left;
}
.ir-dropdown-item:hover { background: #f8f9fa; }
.ir-dropdown-item.danger { color: #991B1B; }
.ir-dropdown-item.danger:hover { background: #FEE2E2; }
.ir-dropdown-divider { height: 1px; background: #f3f4f6; margin: 4px 0; }

/* ── Note flags ── */
.ir-note-flag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-top: 3px;
}

/* ── Empty ── */
.ir-empty { text-align: center; padding: 52px 20px; font-size: 13.5px; color: #6b7280; }
.ir-empty-icon { font-size: 38px; margin-bottom: 12px; }

/* ── Detail Modal ── */
.ir-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ir-modal {
  background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  animation: ir-modal-in 0.2s ease;
}
@keyframes ir-modal-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ir-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid #f3f4f6;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.ir-modal-title    { font-size: 16px; font-weight: 800; color: #111827; }
.ir-modal-subtitle { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.ir-modal-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: #f3f4f6; color: #6b7280; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; transition: background 0.12s; flex-shrink: 0;
}
.ir-modal-close:hover { background: #e5e7eb; }
.ir-modal-body { padding: 20px 24px 24px; }

.ir-modal-amount-banner {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.ir-modal-amount-main { font-size: 28px; font-weight: 900; color: #065F46; line-height: 1; }
.ir-modal-amount-curr { font-size: 13px; color: #6b7280; margin-top: 3px; }
.ir-modal-amount-inr  { font-size: 14px; font-weight: 700; color: #374151; }
.ir-modal-amount-label{ font-size: 11px; color: #9ca3af; margin-top: 2px; }

.ir-modal-section { margin-bottom: 20px; }
.ir-modal-section-title {
  font-size: 10.5px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.ir-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ir-modal-field-label { font-size: 11px; color: #9ca3af; font-weight: 600; margin-bottom: 3px; }
.ir-modal-field-val   { font-size: 13px; font-weight: 700; color: #111827; }
.ir-modal-field-val.mono {
  font-family: "SF Mono","Fira Code",monospace; font-size: 12.5px;
  background: #f8f9fa; padding: 4px 8px; border-radius: 6px; display: inline-block;
}

.ir-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px 20px; border-top: 1px solid #f3f4f6;
}

/* ── Responsive ── */
@media (max-width: 1200px) { .ir-kpi-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  {
  .ir-kpi-strip  { grid-template-columns: repeat(2, 1fr); }
  .ir-modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px)  {
  .ir-kpi-strip  { grid-template-columns: 1fr 1fr; }
  .ir-filter-bar { flex-direction: column; }
}

/* ── Sales Leaderboard visual language ── */
.ir-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 0 34px;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
}

.ir-wrap .newrevamp-listing-header__title,
.ir-summary-value {
  font-family: var(--font-heading, "Epilogue", sans-serif);
}

.ir-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ir-summary-card {
  min-width: 0;
  min-height: 72px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  box-shadow: none;
}

.ir-summary-card:nth-child(1) { background: #F0FDF4; }
.ir-summary-card:nth-child(2) { background: #EFF6FF; }
.ir-summary-card:nth-child(3) { background: #F5F3FF; }
.ir-summary-card:nth-child(4) { background: #FFF1F2; }
.ir-summary-card:nth-child(5) { background: #FFF7ED; }

.ir-summary-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 19px;
}

.ir-summary-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ir-summary-value {
  color: #182230;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.ir-summary-label {
  color: #667085;
  font-size: 10.5px;
  font-weight: 600;
}

.ir-summary-sub {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 9.5px;
}

.ir-listing-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.ir-listing-card .newrevamp-listing-header {
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.ir-listing-card .newrevamp-listing-header__row {
  gap: 14px;
}

.ir-listing-card .newrevamp-listing-header__identity {
  gap: 0;
  min-width: 150px;
}

.ir-listing-card .newrevamp-listing-header__titles {
  gap: 3px;
}

.ir-listing-card .newrevamp-listing-header__title {
  color: #182230;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.ir-listing-card .newrevamp-listing-header__subtitle {
  color: #98a2b3;
  font-size: 10px;
}

.ir-listing-card .newrevamp-listing-header__actions {
  gap: 8px;
}

.ir-listing-card .newrevamp-listing-header__search {
  width: 248px;
}

.ir-listing-card .newrevamp-listing-header__search .input-field {
  height: 34px;
  padding: 7px 10px 7px 32px;
  border-color: #e1e7ef;
  border-radius: 7px;
  color: #344054 !important;
  font-size: 11px;
}

.ir-listing-card .newrevamp-listing-header__search .input-field::placeholder {
  color: #98a2b3;
  font-size: 11px;
}

.ir-listing-card .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}

.ir-listing-card .newrevamp-listing-header__search .newrevamp-listing-header__search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

.ir-listing-card .newrevamp-listing-header__filter .rbtn {
  min-height: 34px;
  height: 34px;
  padding: 0 9px;
  border-color: #dbe3ee;
  border-radius: 7px;
  background: #ffffff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.ir-listing-card .newrevamp-listing-header__filter .rbtn:hover {
  border-color: #b9cbe3;
  background: #f4f8fd;
}

.ir-listing-card .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}

.ir-listing-card .newrevamp-data-grid .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
}

.ir-listing-card .newrevamp-data-grid .data-grid tbody tr {
  height: 40px !important;
}

.ir-listing-card .newrevamp-data-grid .data-grid tbody td {
  height: 40px;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 10px !important;
}

.ir-listing-card .newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}

.ir-listing-card .newrevamp-data-grid .data-grid tbody td {
  white-space: nowrap;
}

.ir-row-number {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
}

.ir-transaction-cell,
.ir-date-time-cell,
.ir-company-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.ir-transaction-cell > *,
.ir-date-time-cell > *,
.ir-company-cell > * {
  flex-shrink: 0;
}

.ir-transaction-cell .ir-txn-id {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ir-compact-date,
.ir-compact-time {
  color: #667085;
  font-size: 9px;
  font-weight: 600;
}

.ir-compact-time {
  color: #98a2b3;
}

.ir-date-time-separator {
  color: #c0c7d1;
  font-size: 10px;
}

.ir-listing-card .ir-company-name {
  max-width: 122px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ir-listing-card .ir-company-id {
  margin-top: 0;
  color: #98a2b3;
  font-size: 9px;
}

.ir-listing-card .ir-amount-wrap {
  display: block;
  white-space: nowrap;
}

.ir-channel {
  display: inline-flex;
  align-items: center;
  max-width: 125px;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid #e5eaf1;
  border-radius: 6px;
  background: #fbfcfe;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ir-listing-card .ir-note-flag {
  margin-top: 0;
  padding: 2px 5px;
  font-size: 8px;
  line-height: 1;
}

.ir-listing-card .newrevamp-data-grid .pagination-datagrid {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #eef1f5;
}

.ir-listing-card .newrevamp-data-grid .paginated-datagrid-range-arrow-par {
  justify-content: space-between;
  color: #8b95a5;
  font-size: 10px;
}

.ir-listing-card .newrevamp-data-grid .pagination-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  color: #475467;
}

.ir-listing-card .newrevamp-data-grid .pagination-button:hover {
  background: #f1f5f9;
}

.ir-listing-card .ir-txn-id {
  color: #344054;
  font-size: 11px;
}

.ir-listing-card .ir-date,
.ir-listing-card .ir-time,
.ir-listing-card .ir-company-id,
.ir-listing-card .ir-mode-sub {
  font-size: 9px;
}

.ir-listing-card .ir-company-name {
  color: #344054;
  font-size: 11px;
}

.ir-listing-card .ir-amount {
  font-size: 11px;
}

.ir-listing-card .ir-mode-badge,
.ir-listing-card .ir-status-pill {
  font-size: 10px;
}

.ir-listing-card .ir-utr {
  font-size: 10px;
}

.ir-empty {
  padding: 52px 20px;
}

@media (max-width: 1100px) {
  .ir-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ir-wrap {
    padding-top: 4px;
  }

  .ir-summary {
    gap: 8px;
  }

  .ir-listing-card .newrevamp-listing-header__actions {
    width: 100%;
    justify-content: stretch;
  }

  .ir-listing-card .newrevamp-listing-header__search {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 640px) {
  .ir-summary {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   Wallet — Transactions
   Sales Leaderboard visual language
═══════════════════════════════════════════════════ */

.wt-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 0 34px;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
}

.wt-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.wt-summary-card {
  min-width: 0;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.wt-summary-card-blue { background: #eff6ff; }
.wt-summary-card-green { background: #f0fdf4; }
.wt-summary-card-purple { background: #fdf4ff; }
.wt-summary-card-orange { background: #fff7ed; }

.wt-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #dbeafe;
  color: #2563eb;
}
.wt-summary-card-green .wt-summary-icon { background: #d1fae5; color: #16a34a; }
.wt-summary-card-purple .wt-summary-icon { background: #ede9fe; color: #db2777; }
.wt-summary-card-orange .wt-summary-icon { background: #fed7aa; color: #d97706; }
.wt-summary-icon svg { width: 19px; height: 19px; }
.wt-summary-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wt-summary-value {
  overflow: hidden;
  color: #182230;
  font-family: var(--font-heading, "Epilogue", sans-serif);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-summary-label { color: #667085; font-size: 10.5px; font-weight: 600; }
.wt-summary-sub { margin-top: 2px; color: #98a2b3; font-size: 9.5px; white-space: nowrap; }

.wt-listing-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
}

/* ── Shared leaderboard-style listing header ── */
.wt-listing-card .newrevamp-listing-header {
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.wt-listing-card .newrevamp-listing-header__row { gap: 14px; }
.wt-listing-card .newrevamp-listing-header__identity { gap: 0; min-width: 150px; }
.wt-listing-card .newrevamp-listing-header__titles { gap: 3px; }
.wt-listing-card .newrevamp-listing-header__title {
  color: #182230;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.wt-listing-card .newrevamp-listing-header__subtitle {
  color: #98a2b3;
  font-size: 10px;
}
.wt-listing-card .newrevamp-listing-header__actions {
  gap: 8px;
}
.wt-listing-card .newrevamp-listing-header__search { width: 248px; }
.wt-listing-card .newrevamp-listing-header__search .input-field {
  height: 34px;
  padding: 7px 10px 7px 32px;
  border-color: #e1e7ef;
  border-radius: 7px;
  color: #344054 !important;
  font-size: 11px;
}
.wt-listing-card .newrevamp-listing-header__search .input-field::placeholder {
  color: #98a2b3;
  font-size: 11px;
}
.wt-listing-card .newrevamp-listing-header__search .input-left-adornment { left: 10px; }
.wt-listing-card .newrevamp-listing-header__search .newrevamp-listing-header-search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}
.wt-listing-card .newrevamp-listing-header__filter .rbtn {
  min-height: 34px;
  height: 34px;
  padding: 0 9px;
  border-color: #dbe3ee;
  border-radius: 7px;
  background: #fff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}
.wt-listing-card .newrevamp-listing-header__filter .rbtn:hover {
  border-color: #b9cbe3;
  background: #f4f8fd;
}
.wt-header-actions { display: flex; gap: 8px; align-items: center; }
.wt-listing-card .newrevamp-listing-header__right-actions {
  display: flex;
  align-items: center;
}

/* ── Buttons ── */
.wt-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 7px; border: none;
  background: var(--ui-color-primary, #0562fb); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font-ui, "Nunito Sans", sans-serif); transition: opacity 0.15s;
}
.wt-btn-primary:hover { opacity: 0.88; }
.wt-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 10px; border-radius: 7px;
  border: 1px solid #dbe3ee; background: #fff; color: #475467;
  font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: var(--font-ui, "Nunito Sans", sans-serif); transition: all 0.15s;
}
.wt-btn-ghost:hover { border-color: #b9cbe3; background: #f4f8fd; }

/* ── Shared Sales Leaderboard table ── */
.wt-listing-card .newrevamp-data-grid .data-grid thead th {
  text-transform: none !important;
}
.wt-listing-card .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}
.wt-listing-card .newrevamp-data-grid .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}
.wt-listing-card .newrevamp-data-grid .data-grid tbody tr {
  height: 40px !important;
}
.wt-listing-card .newrevamp-data-grid .data-grid tbody td {
  height: 40px;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 10px !important;
}
.wt-listing-card .newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}
.wt-listing-card .newrevamp-data-grid .pagination-datagrid {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #eef1f5;
}
.wt-listing-card .newrevamp-data-grid .paginated-datagrid-range-arrow-par {
  justify-content: space-between;
  color: #8b95a5;
  font-size: 10px;
}
.wt-listing-card .newrevamp-data-grid .pagination-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  color: #475467;
}
.wt-listing-card .newrevamp-data-grid .pagination-button:hover {
  background: #f1f5f9;
}

/* ── Txn ID cell ── */
.wt-txn-id {
  display: inline-flex; align-items: center; gap: 5px;
  color: #1d4ed8; font-family: "SF Mono","Fira Code","Courier New",monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  cursor: pointer;
}
.wt-txn-id:hover .wt-copy-icon { opacity: 1; }
.wt-copy-icon { opacity: 0; color: #98a2b3; font-size: 10px; transition: opacity 0.15s; }
.wt-copy-toast {
  padding: 1px 6px; border-radius: 4px; background: #d1fae5; color: #065f46;
  font-family: var(--font-ui, "Nunito Sans", sans-serif); font-size: 9px; font-weight: 700; white-space: nowrap;
}
.wt-cell-plain { color: #475467; font-size: 10px; font-weight: 500; white-space: nowrap; }
.wt-cell-company { color: #344054; font-weight: 700; }
.wt-cell-na { color: #d0d5dd; }
.wt-cell-amount { text-align: right; white-space: nowrap; }
.wt-amount-plain { color: #991b1b; font-size: 10px; font-weight: 700; }
.wt-amount-plain.reversed { color: #98a2b3; text-decoration: line-through; font-weight: 500; }
.wt-amount-plain.muted { color: #d0d5dd; font-weight: 500; }
.wt-cell-balance { color: #344054; font-size: 10px; font-weight: 700; text-align: right; white-space: nowrap; }
.wt-status-plain { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wt-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.wt-status-dot.pulse { animation: wt-pulse 1.8s ease-in-out infinite; }
@keyframes wt-pulse { 0%,100%{opacity:1}50%{opacity:0.35} }
.wt-empty { padding: 52px 20px; color: #667085; font-size: 13px; text-align: center; }
.wt-empty-icon { margin-bottom: 12px; font-size: 38px; }
.wt-empty-sub { margin-top: 4px; color: #9ca3af; font-size: 12px; }

/* ── Detail Modal ── */
.wt-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wt-modal {
  background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  animation: wt-modal-in 0.2s ease;
}
@keyframes wt-modal-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.wt-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid #f3f4f6;
  position: sticky; top: 0; background: #fff; z-index: 1; border-radius: 18px 18px 0 0;
}
.wt-modal-title    { font-size: 16px; font-weight: 800; color: #111827; }
.wt-modal-subtitle { font-size: 12px; color: #9ca3af; margin-top: 3px; display: flex; align-items: center; gap: 8px; }
.wt-modal-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: #f3f4f6; color: #6b7280; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; transition: background 0.12s; flex-shrink: 0;
}
.wt-modal-close:hover { background: #e5e7eb; }
.wt-modal-body { padding: 20px 24px 4px; }

.wt-modal-debit-banner {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wt-modal-debit-main  { font-size: 28px; font-weight: 900; color: #991B1B; line-height: 1; }
.wt-modal-debit-label { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.wt-modal-balance-after { text-align: right; }
.wt-modal-balance-val   { font-size: 16px; font-weight: 800; color: #111827; }
.wt-modal-balance-label { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.wt-modal-section { margin-bottom: 20px; }
.wt-modal-section-title {
  font-size: 10.5px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.wt-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wt-modal-field-label { font-size: 11px; color: #9ca3af; font-weight: 600; margin-bottom: 3px; }
.wt-modal-field-val   { font-size: 13px; font-weight: 700; color: #111827; }
.wt-modal-field-val.mono {
  font-family: "SF Mono","Fira Code",monospace; font-size: 12.5px;
  background: #f8f9fa; padding: 4px 8px; border-radius: 6px; display: inline-block;
}
.wt-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px 20px; border-top: 1px solid #f3f4f6;
}

/* ── Responsive ── */
@media (max-width: 900px) { .wt-modal-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .wt-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .wt-summary { grid-template-columns: 1fr; gap: 8px; }
  .wt-summary-card { padding: 15px 16px; }
  .wt-header-actions { width: 100%; }
  .wt-header-actions .wt-btn-ghost { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   Pallet Capital — Listing + Detail
═══════════════════════════════════════════════════ */

.pc-wrap { padding: 4px 0 60px; }

/* ── Shared buttons ── */
.pc-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: Inter, sans-serif; transition: opacity 0.15s;
}
.pc-btn-primary { background: var(--ui-color-primary, #0562fb); color: #fff; }
.pc-btn-primary:hover { opacity: 0.88; }
.pc-btn-ghost {
  background: #fff; color: #374151;
  border: 1.5px solid #e5e7eb; font-weight: 600;
}
.pc-btn-ghost:hover { border-color: #9ca3af; background: #f9fafb; }
.pc-btn-approve { background: #065F46; color: #fff; }
.pc-btn-approve:hover { background: #047857; }
.pc-btn-reject  { background: #991B1B; color: #fff; }
.pc-btn-reject:hover  { background: #B91C1C; }
.pc-btn-review  { background: #1D4ED8; color: #fff; }
.pc-btn-review:hover  { background: #1e40af; }
.pc-btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 8px; }

/* ═══════════════════════════
   LISTING PAGE
═══════════════════════════ */

.pc-list-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.pc-page-title { font-size: 22px; font-weight: 900; color: #111827; letter-spacing: -0.02em; }
.pc-page-sub   { font-size: 13px; color: #6b7280; margin-top: 3px; }

/* KPI strip */
.pc-kpi-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.pc-kpi-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); padding: 16px 18px;
}
.pc-kpi-top    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pc-kpi-icon   { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.pc-kpi-val    { font-size: 22px; font-weight: 900; color: #111827; letter-spacing: -0.02em; line-height: 1; }
.pc-kpi-label  { font-size: 11px; font-weight: 700; color: #6b7280; margin-top: 4px; }

/* Filter bar */
.pc-filter-bar {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 14px 18px; margin-bottom: 16px;
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.pc-filter-group { display: flex; flex-direction: column; gap: 5px; }
.pc-filter-label { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; }
.pc-filter-input {
  padding: 8px 12px; border-radius: 8px; border: 1px solid #e5e7eb;
  font-size: 13px; font-family: Inter, sans-serif; color: #374151;
  background: #fff; outline: none; min-width: 130px;
}
.pc-filter-input:focus { border-color: #1a3a8f; box-shadow: 0 0 0 3px rgba(26,58,143,0.08); }
.pc-pill-row { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-pill {
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280; font-size: 11.5px; font-weight: 600;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.12s; white-space: nowrap;
}
.pc-pill:hover  { border-color: #9ca3af; color: #374151; }
.pc-pill.active { background: #1a3a8f; border-color: #1a3a8f; color: #fff; }
.pc-result-count { font-size: 12px; font-weight: 700; color: #6b7280; padding-bottom: 2px; white-space: nowrap; }

/* Table */
.pc-table-wrap {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); overflow: hidden;
}
.pc-table { width: 100%; border-collapse: collapse; }
.pc-table th {
  padding: 11px 14px; font-size: 10.5px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em; text-align: left;
  border-bottom: 2px solid #f3f4f6; background: #fafafa; white-space: nowrap;
  cursor: pointer; user-select: none;
}
.pc-table th:hover { color: #374151; }
.pc-table th.right { text-align: right; }
.pc-table td { padding: 12px 14px; border-bottom: 1px solid #f8f9fa; vertical-align: middle; }
.pc-table tr:last-child td { border-bottom: none; }
.pc-table tbody tr { cursor: pointer; transition: background 0.1s; }
.pc-table tbody tr:hover { background: #f8faff; }

/* Table cell types */
.pc-app-id {
  font-family: "SF Mono","Fira Code",monospace;
  font-size: 12px; font-weight: 700; color: #1a3a8f; white-space: nowrap;
}
.pc-cell-main { font-size: 13px; font-weight: 600; color: #111827; }
.pc-cell-sub  { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.pc-cell-plain { font-size: 13px; color: #374151; white-space: nowrap; }
.pc-cell-mono  { font-family: monospace; font-size: 12px; color: #374151; }
.pc-cell-amount { font-size: 13px; font-weight: 700; color: #111827; text-align: right; white-space: nowrap; }
.pc-status-dot-wrap { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 600; }
.pc-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pc-status-dot.pulse { animation: pc-pulse 1.8s ease-in-out infinite; }
@keyframes pc-pulse { 0%,100%{opacity:1}50%{opacity:0.35} }

.pc-risk-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  font-size: 11px; font-weight: 900;
}

/* Sort icon */
.pc-sort-icon { font-size: 9px; margin-left: 3px; color: #d1d5db; }
.pc-sort-icon.active { color: #1a3a8f; }

/* Empty */
.pc-empty { text-align: center; padding: 52px; color: #6b7280; font-size: 13.5px; }
.pc-empty-icon { font-size: 38px; margin-bottom: 12px; }

/* Pagination */
.pc-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-top: 1px solid #f3f4f6; background: #fafafa;
  flex-wrap: wrap; gap: 10px;
}
.pc-page-info { font-size: 12px; color: #6b7280; font-weight: 600; }
.pc-page-size-select {
  padding: 5px 10px; border-radius: 7px; border: 1px solid #e5e7eb;
  font-size: 12px; font-family: Inter, sans-serif; color: #374151;
  background: #fff; outline: none; cursor: pointer;
}
.pc-page-btns { display: flex; gap: 4px; }
.pc-page-btn {
  min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: #fff; color: #374151; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.12s;
  display: flex; align-items: center; justify-content: center; padding: 0 8px;
}
.pc-page-btn:hover:not(:disabled) { border-color: #1a3a8f; color: #1a3a8f; }
.pc-page-btn.active { background: #1a3a8f; border-color: #1a3a8f; color: #fff; }
.pc-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }


/* ═══════════════════════════
   DETAIL PAGE
═══════════════════════════ */

/* Back nav */
.pc-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #6b7280;
  cursor: pointer; background: none; border: none;
  font-family: Inter, sans-serif; padding: 0; margin-bottom: 20px;
  transition: color 0.12s;
}
.pc-back-btn:hover { color: #1a3a8f; }

/* Detail header */
.pc-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.pc-detail-id    { font-size: 12px; font-family: monospace; color: #9ca3af; margin-bottom: 4px; }
.pc-detail-title { font-size: 20px; font-weight: 900; color: #111827; letter-spacing: -0.02em; }
.pc-detail-meta  { font-size: 12px; color: #6b7280; margin-top: 4px; display: flex; gap: 16px; flex-wrap: wrap; }
.pc-detail-meta span { display: flex; align-items: center; gap: 5px; }

/* Status action card */
.pc-status-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 18px 22px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
}
.pc-status-card-left { flex: 1; min-width: 220px; }
.pc-status-card-label { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.pc-status-current  { display: flex; align-items: center; gap: 10px; }
.pc-status-name     { font-size: 15px; font-weight: 800; }
.pc-status-card-right { display: flex; flex-direction: column; gap: 10px; min-width: 300px; flex: 1; }
.pc-note-input {
  width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid #e5e7eb;
  font-size: 13px; font-family: Inter, sans-serif; color: #374151; outline: none;
  resize: vertical; min-height: 60px;
}
.pc-note-input:focus { border-color: #1a3a8f; box-shadow: 0 0 0 3px rgba(26,58,143,0.08); }
.pc-action-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Detail grid */
.pc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.pc-detail-grid.single { grid-template-columns: 1fr; }

.pc-section {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); overflow: hidden;
}
.pc-section-header {
  padding: 14px 20px 12px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; gap: 8px;
}
.pc-section-icon  { font-size: 16px; }
.pc-section-title { font-size: 13px; font-weight: 800; color: #111827; }
.pc-section-body  { padding: 16px 20px; }

/* Field rows */
.pc-fields { display: flex; flex-direction: column; gap: 0; }
.pc-field-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid #f8f9fa; gap: 12px;
}
.pc-field-row:last-child { border-bottom: none; }
.pc-field-label { font-size: 12px; color: #6b7280; font-weight: 600; flex-shrink: 0; min-width: 160px; }
.pc-field-val   { font-size: 13px; font-weight: 700; color: #111827; text-align: right; }
.pc-field-val.mono { font-family: "SF Mono","Fira Code",monospace; font-size: 12px; color: #374151; }
.pc-field-val.green { color: #065F46; }
.pc-field-val.red   { color: #991B1B; }
.pc-field-val.muted { color: #9ca3af; font-weight: 500; }

/* Channel row */
.pc-channel-row { display: flex; gap: 20px; padding: 4px 0; }
.pc-channel-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #374151; }
.pc-channel-check { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; flex-shrink: 0; }
.pc-channel-check.on  { background: #D1FAE5; color: #065F46; }
.pc-channel-check.off { background: #F3F4F6; color: #9ca3af; }

/* Document rows */
.pc-doc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #f8f9fa; gap: 12px;
}
.pc-doc-row:last-child { border-bottom: none; }
.pc-doc-left  { display: flex; align-items: center; gap: 10px; }
.pc-doc-icon  { font-size: 20px; }
.pc-doc-name  { font-size: 13px; font-weight: 600; color: #111827; }
.pc-doc-label { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.pc-doc-dl    {
  font-size: 12px; font-weight: 700; color: #1a3a8f; cursor: pointer;
  background: none; border: none; font-family: Inter, sans-serif;
  display: flex; align-items: center; gap: 4px; padding: 6px 10px;
  border-radius: 7px; transition: background 0.12s;
}
.pc-doc-dl:hover { background: #EFF6FF; }

/* Timeline */
.pc-timeline { padding: 4px 0; }
.pc-timeline-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.pc-timeline-item:last-child { padding-bottom: 0; }
.pc-timeline-item:not(:last-child)::before {
  content: ""; position: absolute; left: 11px; top: 24px;
  width: 1px; bottom: 0; background: #e5e7eb;
}
.pc-timeline-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; z-index: 1;
}
.pc-timeline-body { flex: 1; }
.pc-timeline-status { font-size: 13px; font-weight: 800; color: #111827; }
.pc-timeline-note   { font-size: 12px; color: #6b7280; margin-top: 2px; }
.pc-timeline-meta   { font-size: 11px; color: #9ca3af; margin-top: 3px; }

/* Loan highlight */
.pc-loan-banner {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd; border-radius: 12px;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex-wrap: wrap; gap: 12px;
}
.pc-loan-amount      { font-size: 26px; font-weight: 900; color: #0369A1; letter-spacing: -0.02em; }
.pc-loan-amount-label{ font-size: 11px; color: #6b7280; margin-top: 3px; }
.pc-loan-meta        { display: flex; gap: 24px; }
.pc-loan-meta-item   { text-align: right; }
.pc-loan-meta-val    { font-size: 14px; font-weight: 800; color: #111827; }
.pc-loan-meta-label  { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* Responsive */
@media (max-width: 1100px) {
  .pc-kpi-strip     { grid-template-columns: repeat(3, 1fr); }
  .pc-detail-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pc-kpi-strip     { grid-template-columns: 1fr 1fr; }
  .pc-status-card   { flex-direction: column; }
  .pc-field-label   { min-width: 120px; }
}

/* ═══════════════════════════════════════════
   Invoices Page
═══════════════════════════════════════════ */

/* ── Page and listing surfaces ── */
.invoices-list-page {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.inv-listing-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.inv-listing-card .newrevamp-listing-header {
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.inv-listing-card .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}

.inv-listing-card .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}

.inv-listing-card .newrevamp-listing-header__search .newrevamp-listing-header-search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

/* ── Summary strip ── */
.inv-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.inv-summary-card {
  min-width: 0;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid #e7ebf2;
  box-shadow: none;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.inv-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 19px;
  flex-shrink: 0;
}
.inv-summary-card:nth-child(2) .inv-summary-icon { color: #16a34a; }
.inv-summary-card:nth-child(3) .inv-summary-icon { color: #db2777; }
.inv-summary-card:nth-child(4) .inv-summary-icon { color: #d97706; }
.inv-summary-icon svg { width: 19px; height: 19px; }

.inv-summary-body { display: flex; flex-direction: column; gap: 2px; }

.inv-summary-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #667085;
}

.inv-summary-value {
  font-size: 18px;
  font-weight: 800;
  color: #182230;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.inv-summary-sub {
  font-size: 9.5px;
  color: #98a2b3;
  margin-top: 2px;
}

/* ── Status pill ── */
.inv-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.inv-status-pill .inv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ── Invoice number ── */
.inv-number-cell {
  font-size: 12.5px;
  font-weight: 700;
  color: #0562fb;
  font-family: "Roboto Mono", monospace, Inter, sans-serif;
  letter-spacing: 0.01em;
}

/* ── Company cell ── */
.inv-company-cell {
  display: flex;
  flex-direction: column;
}
.inv-company-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1f36;
}
.inv-company-id {
  font-size: 11px;
  color: #8792a2;
}

/* ── Amount cell ── */
.inv-amount-cell {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

/* ── Month chip ── */
.inv-month-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

/* ── Date cell ── */
.inv-date-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #344767;
}
.inv-date-overdue {
  color: #dc2626;
}

.invoices-list-page .newrevamp-data-grid .data-grid thead th {
  text-transform: none !important;
}

/* ═══════════════════════════════════════════
   Payments Page
═══════════════════════════════════════════ */

/* ── Summary strip ── */
.pay-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.pay-summary-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s;
}
.pay-summary-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.payments-list-page .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}

.payments-list-page .newrevamp-listing-header__search .newrevamp-listing-header-search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

.pay-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pay-summary-body   { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-summary-label  { font-size: 11px; font-weight: 600; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; }
.pay-summary-value  { font-size: 22px; font-weight: 800; color: #111827; letter-spacing: -0.02em; line-height: 1.2; }
.pay-summary-sub    { font-size: 12px; color: #6b7280; font-weight: 500; margin-top: 2px; }

/* ── Txn ID ── */
.pay-txn-cell {
  font-size: 12px;
  font-weight: 700;
  color: #0562fb;
  font-family: "Roboto Mono", monospace, Inter, sans-serif;
  letter-spacing: 0.01em;
}

/* ── Company ── */
.pay-company-name { font-size: 13px; font-weight: 600; color: #1a1f36; }
.pay-company-id   { font-size: 11px; color: #8792a2; }

/* ── Amount ── */
.pay-amount-cell { font-size: 13.5px; font-weight: 700; color: #111827; }

/* ── Mode pill ── */
.pay-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pay-mode-icon { font-size: 14px; line-height: 1; }

/* ── Status pill ── */
.pay-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.pay-status-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ── Invoice ref ── */
.pay-ref-cell {
  font-size: 12px;
  color: #6b7280;
  font-family: "Roboto Mono", monospace, Inter, sans-serif;
}

/* ── Date cell ── */
.pay-date-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #344767;
}

.payments-list-page .newrevamp-data-grid .data-grid thead th {
  text-transform: none !important;
}

/* ═══════════════════════════════════════════
   Cancellations Page
═══════════════════════════════════════════ */

/* ── Summary strip ── */
.canc-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.canc-summary-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s;
}
.canc-summary-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.cancellations-list-page .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}

.cancellations-list-page .newrevamp-listing-header__search .newrevamp-listing-header-search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

.canc-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.canc-summary-body  { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.canc-summary-label { font-size: 11px; font-weight: 600; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; }
.canc-summary-value { font-size: 22px; font-weight: 800; color: #111827; letter-spacing: -0.02em; line-height: 1.2; }
.canc-summary-sub   { font-size: 12px; color: #6b7280; font-weight: 500; margin-top: 2px; }

/* ── Company cell ── */
.canc-company-name { font-size: 13px; font-weight: 600; color: #1a1f36; }
.canc-company-id   { font-size: 11px; color: #8792a2; }

/* ── Type pill ── */
.canc-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Status pill ── */
.canc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.canc-status-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ── Plan cell ── */
.canc-plan-cell {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

/* ── MRR cell ── */
.canc-mrr-cell { font-size: 13px; font-weight: 700; color: #991B1B; }

/* ── Date cell ── */
.canc-date-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #344767;
}

.cancellations-list-page .newrevamp-data-grid .data-grid thead th {
  text-transform: none !important;
}

/* ═══════════════════════════════════════════
   Refunds Page
═══════════════════════════════════════════ */

.ref-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 60px;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
}

.ref-wrap .newrevamp-listing-header__title,
.ref-summary-value {
  font-family: var(--font-heading, "Epilogue", sans-serif);
}

.ref-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ref-summary-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s;
}
.ref-summary-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.refunds-list-page .newrevamp-listing-header__search .input-left-adornment {
  left: 10px;
}

.refunds-list-page .newrevamp-listing-header__search .newrevamp-listing-header-search-icon {
  width: 14px;
  height: 14px;
  color: #98a2b3;
}

.ref-summary-icon  { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ref-summary-body  { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ref-summary-label { font-size: 11px; font-weight: 600; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; }
.ref-summary-value { font-size: 22px; font-weight: 800; color: #111827; letter-spacing: -0.02em; line-height: 1.2; }
.ref-summary-sub   { font-size: 12px; color: #6b7280; font-weight: 500; margin-top: 2px; }

/* ── Refund ID ── */
.ref-id-cell { font-size: 12px; font-weight: 700; color: #7C3AED; font-family: "Roboto Mono", monospace, Inter, sans-serif; }

/* ── Company ── */
.ref-company-name { font-size: 13px; font-weight: 600; color: #1a1f36; }
.ref-company-id   { font-size: 11px; color: #8792a2; }

/* ── Amount ── */
.ref-amount-cell { font-size: 13.5px; font-weight: 700; color: #7C3AED; }

/* ── Type pill ── */
.ref-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Status pill ── */
.ref-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ref-status-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ── Ref cells ── */
.ref-mono { font-size: 12px; color: #6b7280; font-family: "Roboto Mono", monospace, Inter, sans-serif; }

/* ── Date ── */
.ref-date-cell { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: #344767; }

.refunds-list-page .newrevamp-data-grid .data-grid thead th {
  text-transform: none !important;
}

@media (max-width: 1100px) {
  .ref-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ref-summary-strip {
    grid-template-columns: 1fr;
  }

  .ref-summary-card {
    padding: 15px 16px;
  }
}

.custom-header{
    background-color: #efeff0;
    font-size: 14px;
}

.custom-cell{
    font-size: 12px;
    cursor: pointer;
}

.data-cell{
    cursor: pointer;
}
.custom-background-div {
  border-radius: 1.5rem;
  /* 24px */
  box-shadow: 0px 2px 10px rgba(3, 3, 3, 0.1);
  background-color: white;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  flex: 1;
}
select{
    height: 40px;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px !important;
}
.user-details-page {
  min-height: calc(100vh - 96px);
  padding: 10px 20px 32px;
  background: #f7f9fc;
}

.user-details-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.user-details-back:hover {
  color: #0562fb;
}

.user-details-hero,
.user-details-card {
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.user-details-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px 24px;
}

.user-details-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  overflow: hidden;
  border: 4px solid #eef4ff;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 20px;
  font-weight: 800;
}

.user-details-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details-hero__identity {
  min-width: 0;
  flex: 1;
}

.user-details-eyebrow {
  margin-bottom: 3px;
  color: #98a2b3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-details-hero h1 {
  margin: 0;
  color: #182230;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.user-details-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #667085;
  font-size: 11px;
}

.user-details-dot {
  color: #c4cbd5;
}

.user-details-roles,
.user-details-field__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-details-roles {
  margin-top: 11px;
}

.user-details-role {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid #d8e6ff;
  border-radius: 999px;
  background: #f3f7ff;
  color: #1d5dcc;
  font-size: 9px;
  font-weight: 700;
}

.user-details-role--empty {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #98a2b3;
}

.user-details-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
}

.user-details-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.user-details-status--inactive {
  background: #fff1f2;
  color: #be123c;
}

.user-details-status--inactive .user-details-status__dot {
  background: #f43f5e;
}

.user-details-card {
  margin-top: 14px;
  padding: 22px 24px 24px;
}

.user-details-card__heading {
  padding-bottom: 15px;
  border-bottom: 1px solid #eef1f5;
}

.user-details-card h2 {
  margin: 0;
  color: #182230;
  font-size: 14px;
  font-weight: 800;
}

.user-details-card p {
  margin: 4px 0 0;
  color: #98a2b3;
  font-size: 10px;
}

.user-details-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  padding-top: 20px;
}

.user-details-field {
  min-width: 0;
}

.user-details-field--wide {
  grid-column: 1 / -1;
}

.user-details-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #7b8798;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-details-field strong {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-details-field__roles {
  min-height: 38px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
}

.user-details-value--active {
  border-color: #bbf7d0 !important;
  background: #f0fdf4;
  color: #15803d !important;
}

.user-details-value--inactive {
  border-color: #fecdd3 !important;
  background: #fff1f2;
  color: #be123c !important;
}

.user-details-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 10px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
  color: #667085;
  font-size: 12px;
}

.user-details-state--error {
  padding: 24px;
  text-align: center;
}

.user-details-state--error h2 {
  margin: 0;
  color: #182230;
  font-size: 16px;
}

.user-details-state--error p {
  margin: 0;
}

.user-details-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff1f2;
  color: #be123c;
  font-size: 16px;
  font-weight: 800;
}

.user-details-primary-action {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #0562fb;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.user-details-primary-action:hover {
  background: #034fcf;
}

@media (max-width: 700px) {
  .user-details-page {
    padding: 8px 12px 24px;
  }

  .user-details-hero {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }

  .user-details-hero__identity {
    flex-basis: calc(100% - 84px);
  }

  .user-details-status {
    margin-left: 84px;
  }

  .user-details-card {
    padding: 18px;
  }

  .user-details-fields {
    grid-template-columns: 1fr;
  }

  .user-details-field--wide {
    grid-column: auto;
  }
}
/* ─── Projects / Board ──────────────────────────────────────────────────────── */

/* Kanban column card */
.proj-board-col {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.proj-board-col__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #F2F4F7;
  background: #F9FAFB;
}
.proj-board-col__title {
  font-size: 12px;
  font-weight: 700;
  color: #344767;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.proj-board-col__count {
  font-size: 11px;
  font-weight: 600;
  color: #1a3a8f;
  background: #EEF4FF;
  padding: 2px 9px;
  border-radius: 99px;
}
.proj-board-col__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 70vh;
}

/* Epic accordion card */
.proj-epic-card {
  border: 1px solid #E9ECF2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}
.proj-epic-card:hover { box-shadow: 0 2px 8px rgba(26,58,143,0.08); }
.proj-epic-card .MuiAccordion-root {
  box-shadow: none !important;
  position: initial !important;
  margin: 0 !important;
}
.proj-epic-card .MuiAccordionSummary-root {
  min-height: 44px !important;
  padding: 0 12px !important;
  background: transparent !important;
}
.proj-epic-card .MuiAccordionSummary-content {
  margin: 8px 0 !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #344767;
}
.proj-epic-card .MuiAccordionDetails-root { padding: 0 12px 10px !important; }
.proj-epic-card .MuiAccordion-root::before { display: none !important; }

/* Sprint row */
.proj-sprint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #F2F4F7;
  font-size: 12px;
  color: #667085;
}
.proj-sprint-row:first-child { border-top: none; }

/* Nested sprint accordion inside board card */
.proj-sprint-accordion .MuiAccordion-root {
  box-shadow: none !important;
  border-top: 1px solid #F2F4F7 !important;
  position: initial !important;
  margin: 0 !important;
}
.proj-sprint-accordion .MuiAccordionSummary-root {
  min-height: 38px !important;
  padding: 0 0 0 8px !important;
}
.proj-sprint-accordion .MuiAccordionSummary-content {
  font-size: 12px;
  color: #667085;
  margin: 6px 0 !important;
  gap: 6px;
  align-items: center;
}
.proj-sprint-accordion .MuiAccordionDetails-root { padding: 4px 0 8px 16px !important; }
.proj-sprint-accordion .MuiAccordion-root::before { display: none !important; }

/* Issue row */
.proj-issue-row {
  padding: 4px 0;
  font-size: 12px;
  color: #98a2b3;
  border-top: 1px solid #F9FAFB;
  display: flex;
  align-items: center;
  gap: 6px;
}
.proj-issue-row:first-child { border-top: none; }

/* Empty column state */
.proj-board-col__empty {
  text-align: center;
  color: #98a2b3;
  font-size: 13px;
  padding: 32px 16px;
}

/* Legacy — keep for any remaining references */
.custom-searchbar {
  border-radius: 8px;
  border: 1px solid #D0D5DD;
  background: #fff;
  padding: 0 14px;
  height: 40px;
  font-size: 13px;
  width: 280px;
  outline: none;
}
.board-page .MuiAccordion-root {
  box-shadow: none !important;
  position: initial !important;
}

/* ─── Projects — shared design system ──────────────────────────────────────── */

/* ── Page header (blue gradient) ──────────────────────────────────── */
.proj-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d5be3 100%);
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(26, 58, 143, 0.25);
  flex-wrap: wrap;
  gap: 12px;
}
.proj-page-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.proj-page-header__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proj-page-header__title {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.proj-page-header__subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.proj-page-header__btn {
  height: 38px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.proj-page-header__btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ── Toolbar ───────────────────────────────────────────────────────── */
.proj-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  gap: 12px;
  flex-wrap: wrap;
}
.proj-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Filter chip row ───────────────────────────────────────────────── */
.proj-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  padding-left: 2px;
}

/* ── DataGrid card container ───────────────────────────────────────── */
.proj-datagrid-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  overflow: hidden;
  min-height: 520px;
}

/* DataGrid header row */
.proj-datagrid-card .MuiDataGrid-columnHeaders {
  background: #F9FAFB !important;
  border-bottom: 1px solid #EAECF0 !important;
  min-height: 44px !important;
  max-height: 44px !important;
}
.proj-datagrid-card .MuiDataGrid-columnHeader {
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085 !important;
  padding: 0 16px !important;
}
.proj-datagrid-card .MuiDataGrid-columnHeaderTitle {
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085 !important;
}
/* DataGrid body rows — single-line, 52 px */
.proj-datagrid-card .MuiDataGrid-row {
  min-height: 52px !important;
  max-height: 52px !important;
  cursor: pointer;
}
.proj-datagrid-card .MuiDataGrid-row:hover {
  background: #F9FAFB !important;
}
.proj-datagrid-card .MuiDataGrid-row.Mui-selected,
.proj-datagrid-card .MuiDataGrid-row.Mui-selected:hover {
  background: #EEF4FF !important;
}
.proj-datagrid-card .MuiDataGrid-cell {
  border-bottom: 1px solid #F2F4F7 !important;
  font-size: 13px;
  color: #344767;
  align-items: center;
  overflow: hidden;
}
.proj-datagrid-card .MuiDataGrid-cell:focus,
.proj-datagrid-card .MuiDataGrid-cell:focus-within {
  outline: none !important;
}
.proj-datagrid-card .MuiDataGrid-footerContainer {
  border-top: 1px solid #EAECF0;
  min-height: 52px;
}
.proj-datagrid-card .MuiDataGrid-root {
  border: none !important;
}

/* ── Status dot ────────────────────────────────────────────────────── */
.proj-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #344767;
  white-space: nowrap;
}
.proj-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Board columns ─────────────────────────────────────────────────── */
.proj-board-col {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  overflow: hidden;
  min-height: 200px;
}
.proj-board-col__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #F2F4F7;
  background: #F9FAFB;
}
.proj-board-col__title {
  font-size: 13px;
  font-weight: 600;
  color: #344767;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.proj-board-col__count {
  font-size: 11px;
  font-weight: 600;
  color: #667085;
  background: #EFF3FF;
  padding: 2px 8px;
  border-radius: 99px;
}
.proj-board-col__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Epic item card */
.proj-epic-card {
  border: 1px solid #E9ECF2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}
.proj-epic-card:hover {
  box-shadow: 0 2px 8px rgba(26,58,143,0.08);
}
.proj-epic-card .MuiAccordion-root {
  box-shadow: none !important;
  border-radius: 0 !important;
  position: initial !important;
  margin: 0 !important;
}
.proj-epic-card .MuiAccordionSummary-root {
  min-height: 44px !important;
  padding: 0 12px !important;
}
.proj-epic-card .MuiAccordionSummary-content {
  margin: 8px 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #344767;
}
.proj-epic-card .MuiAccordionDetails-root {
  padding: 0 12px 10px !important;
}

/* Sprint row inside epic */
.proj-sprint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #F2F4F7;
  font-size: 12px;
  color: #667085;
}
.proj-sprint-row:first-child { border-top: none; }

/* Issue row inside sprint */
.proj-issue-row {
  padding: 4px 0 4px 16px;
  font-size: 12px;
  color: #667085;
  border-top: 1px solid #F9FAFB;
}

/* ── Actions menu ──────────────────────────────────────────────────── */
.proj-action-icon {
  color: #98a2b3;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px;
  transition: color 0.15s, background 0.15s;
}
.proj-action-icon:hover {
  color: #344767;
  background: #F2F4F7;
}

/* ── Timeline epic table overrides ────────────────────────────────── */
.table_section {
  height: 68vh;
  padding: 0;
  overflow: auto;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  margin-top: 4px;
}
.epic_table {
  width: 100%;
  table-layout: fixed;
  min-width: 900px;
  background-color: #fff;
  font-size: 13px;
  border-collapse: collapse;
}
.epic_thead th {
  position: sticky;
  top: 0;
  padding: 12px 16px;
  background: #F9FAFB;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
  border-bottom: 1px solid #EAECF0;
  z-index: 10;
  text-align: left;
}
.epic_table > tbody > tr > td {
  padding: 14px 16px;
  text-align: left;
  color: #344767;
  font-size: 13px;
  border-bottom: 1px solid #F2F4F7;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.epic_table > tbody > tr:hover > td {
  background: #F9FAFB;
  cursor: pointer;
}
.epic_table > tbody > tr:last-child > td {
  border-bottom: none;
}
.pagination {
  display: flex;
  justify-content: center;
  background-color: #fff;
  width: 100%;
  padding: 12px 20px;
  border-top: 1px solid #EAECF0;
  position: sticky;
  bottom: 0;
}
.data-not-found {
  background-color: #fff;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #667085;
  font-size: 14px;
}

/* Legacy compatibility */
.tasklist-datagrid-container {
  width: 100%;
  background: #fff;
  margin-top: 4px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  overflow: hidden;
  min-height: 520px;
}
.tasklist-datagrid-container .MuiDataGrid-columnHeaders {
  background: #F9FAFB !important;
  border-bottom: 1px solid #EAECF0 !important;
}
.tasklist-datagrid-container .MuiDataGrid-columnHeaderTitle {
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085 !important;
}
.tasklist-datagrid-container .MuiDataGrid-row {
  min-height: 52px !important;
  max-height: 52px !important;
  cursor: pointer;
}
.tasklist-datagrid-container .MuiDataGrid-row:hover {
  background: #F9FAFB !important;
}
.tasklist-datagrid-container .MuiDataGrid-cell {
  border-bottom: 1px solid #F2F4F7 !important;
  font-size: 13px;
  color: #344767;
}
.tasklist-datagrid-container .MuiDataGrid-cell:focus,
.tasklist-datagrid-container .MuiDataGrid-cell:focus-within {
  outline: none !important;
}
.tasklist-datagrid-container .MuiDataGrid-root {
  border: none !important;
}
.tasklist-datagrid-container .MuiDataGrid-footerContainer {
  border-top: 1px solid #EAECF0;
}

/* ─── Projects CommonHeader ─────────────────────────────────────────────────── */

/* Toolbar bar */
.common-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

/* Search input */
.custom-searchbar {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #D0D5DD;
  background: #fff;
  padding: 0 14px;
  font-size: 13px;
  color: #344767;
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.custom-searchbar::placeholder { color: #98a2b3; }
.custom-searchbar:focus { border-color: #1a3a8f; }

/* Right side actions area */
.common-header-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Filter wrapper button — transparent, no border */
.epic-botton {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* "New ___" action button */
.new-epic-btn {
  height: 38px;
  padding: 0 16px;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d5be3 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.new-epic-btn:hover { opacity: 0.88; }

.closed-sprint,
.completed-sprint {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #D0D5DD;
  background: #fff;
  color: #344767;
  transition: background 0.2s;
}
.closed-sprint:hover,
.completed-sprint:hover { background: #F9FAFB; }

/* Filter chip row */
.proj-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 2px;
}

@media (max-width: 600px) {
  .common-header-container { flex-direction: column; align-items: stretch; }
  .custom-searchbar { width: 100%; }
  .common-header-child { justify-content: flex-start; }
}

.filterBox {
  max-width: 750px !important;
}

/* single chip display box heading */
.chipDisplayBoxHeading {
  position: absolute !important;
  top: 2px !important;
  font-size: 10px !important;
  font-weight: bold !important;
}

/* single chip display box for selected filter */
.singleChipDisplayBox {
  position: relative;
  padding: 15px 10px 10px !important;
  border: 1px solid gainsboro;
  border-radius: 0.5rem;
}

.insideSingleChipDisplayBox {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-select-menu {
  padding: 0 !important;
}

/* ─── Projects / Timeline epic table ────────────────────────────────────────── */
/* (Styles are supplemented / overridden by projects.css via CommonHeader import) */

.table_section {
  height: 68vh;
  padding: 0;
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid #EAECF0;
  margin-top: 4px;
}

.epic_table {
  width: 100%;
  table-layout: fixed;
  min-width: 900px;
  background-color: #fff;
  font-size: 13px;
  border-collapse: collapse;
}

.epic_thead th {
  position: sticky;
  top: 0;
  padding: 12px 16px;
  background: #F9FAFB;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
  border-bottom: 1px solid #EAECF0;
  z-index: 10;
  text-align: left;
}

.epic_table > tbody > tr > td {
  padding: 14px 16px;
  text-align: left;
  color: #344767;
  font-size: 13px;
  border-bottom: 1px solid #F2F4F7;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epic_table > tbody > tr:hover > td {
  background: #F9FAFB;
  cursor: pointer;
}

.epic_table > tbody > tr:last-child > td {
  border-bottom: none;
}

.table_section::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.table_section::-webkit-scrollbar-track {
  background: transparent;
}
.table_section::-webkit-scrollbar-thumb {
  background: #E4E7EC;
  border-radius: 99px;
}

.pagination {
  display: flex;
  justify-content: center;
  background-color: #fff;
  width: 100%;
  padding: 12px 20px;
  border-top: 1px solid #EAECF0;
  position: sticky;
  bottom: 0;
}

.data-not-found {
  background-color: #fff;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #98a2b3;
  font-size: 14px;
  gap: 8px;
}

.epic-table {
  margin-top: 0px !important;
  border: none !important;
}
.epic-table .MuiTableHead-root {
  display: contents !important;
}
.epic-heading {
  position: sticky;
  top: 0;
  z-index: 1;
}
.epic-table-container {
  min-height: 400px;
  overflow-y: auto;
}
.epic-table .MuiTableHead-root > tr > th {
  color: #030303;
  font-size: 14px;
  font-weight: 500;
}
.epic-table .MuiTableCell-root {
  background-color: white !important;
  color: #030303;
  font-size: 14px;
  font-weight: 500;
}
.epic-table-body .MuiTableCell-root {
  border-bottom: none !important;
}
.epic-table-body > .epic-table-first-child {
  display: flex;
  justify-content: flex-start;
  align-items: left;
  gap: 8px;
}
.epic-loading-data {
  display: flex;
  justify-content: center;
  height: 60vh;
  align-items: center;
  background-color: white;
  margin-top: 7px;
  border-radius: 24px;
}
.sprint-epic-wrapper {
  background-color: #f3f4f2;
  padding: 10px;
  border-radius: 12px;
}

.custom-quill .ql-editor {
  min-height: 100px !important;
}
.custom-quill .ql-snow .ql-tooltip {
  position: initial;
}

/* Header Section */
.epic-header {
  padding: 1px;
  border-radius: 24px !important;
}

.epic-title {
  font-size: 14px !important;
}

.epic-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 10px;
  border-radius: 24px;
}

.epic-icon {
  border: 1px solid #5856d6;
  border-radius: 6px;
  box-sizing: border-box;
  color: #5856d6;
  outline: none;
  width: 44px;
  height: 44px;
  margin-top: 3px;
}

/* Body Section */
.epic-body,
.epic-body-date {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 3px;
  padding: 1px;
}

/* Dialog Box */
.dialog-box {
  overflow-y: scroll !important; /* Ensure scrolling is forced */
  max-height: 80vh;
  padding: 16px;
  margin: 6px;
  display: block;
  margin-top: -20px;
}

/* Custom Scrollbar Styling for Dialog Box */
.dialog-box::-webkit-scrollbar {
  display: block !important;
  width: 9px;
}

.dialog-box::-webkit-scrollbar-thumb {
  background-color: #a2a2a5; /* Scrollbar thumb color */
  border-radius: 4px;
  max-height: 10px !important;
}

.dialog-box::-webkit-scrollbar-track {
  background: #f1f1f1; /* Scrollbar track color */
  max-height: 10px !important;
  height: 10px !important;
}

/* Dialog Actions */
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Spinner Styling */
.spinner {
  margin-top: -10px;
}

/* Media Queries */
@media (max-width: 768px) {
  .epic-body {
    flex-direction: column;
  }
}

.deleteIcon {
  margin-left: 8px;
  color: red;
  cursor: pointer;
}
.duration-box {
  margin-top: 9px;
}
.sprint-icon-color {
  color: #ffcc00 !important;
  fill: #ffcc00;
  border: none !important;
}
.sprint-title {
  color: #030303 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 18px !important;
}
.task-create-add-more-btn {
  color: #007aff;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  background-color: transparent;
  margin-left: -14px;
}
.task-create-add-more-btn.active {
  color: #007aff;
  cursor: pointer;
}
.task-create-add-more-btn.disabled {
  color: #666;
  cursor: not-allowed;
}
.highlight-header {
  text-align: left;
  opacity: 0.7 !important;
  /* background-color: rgba(224, 223, 223, 0.519) !important; */
  color: black !important;
  border-radius: none !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: capitalize;
}
.menu-open .MuiMenu-paper {
  position: absolute !important;
  top: 200px !important;
  left: 400px !important;
}

.task-create-add-more-btn {
  color: #007aff;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  background-color: transparent;
  margin-left: -14px;
}
.tasklist-datagrid-container {
  height: 450px;
  width: 100%;
  background-color: white;
  margin-top: 7px;
  border-radius: 24px;
  box-shadow: 2px 0px 10px rgba(3, 3);
}
.tasklist-datagrid .MuiDataGrid-root {
  border: none !important;
}
.taskdetails-parent-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.copy-icon {
  color: #505050;
  cursor: pointer;
}
.taskdeatils-heading-container {
  display: flex;
  justify-items: flex-start;
  align-items: center;
  gap: 4px;
}
.taskdetails-heading {
  font-size: 19px;
  font-weight: 500;
  line-height: 32px;
}
.taskdetails-created-by {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #505050;
}
.taskdetails-title-approval-info-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}
.taskdetails-parent-wrapper {
  width: 80%;
}
.taskdetails-main-tools {
  width: 20%;
}
.taskdetails-main-wrapper {
  width: 90%;
}
.taskdetails-assignee-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: -2px;
  gap: 35px;
  margin-top: 8px;
}
.taskdetails-assignee {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  padding: -2px;
}

.assignee {
  color: #151313;
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
}
.assignee-value {
  color: #505050;
  font-size: 13px;
  font-weight: 300;
  line-height: 21px;
}
.taskdetails-task-value-wrapper {
  display: flex;
  justify-items: flex-start;
  align-items: center;
  gap: 4px;
  color: #505050;
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
  /* padding: 5px; */
  width: 170px;
  /* margin-top: 25px; */
}
.taskdetails-task-key {
  color: #505050;
  font-size: 15px;
  font-weight: 300;
}
.taskdetails-approval-info-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* gap: 3px; */
  margin-top: 5px;
}
.taskdetails-approval-info-span-div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
  gap: 10px;
}
.approval-info-title {
  font-size: 0.775rem;
}
.taskdetails-vendorName-value-title {
  font-size: 0.775rem;
}
.additional-info-main-container {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  overflow-x: scroll;
}
.purchDet-header-additional-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: max-content;
}
.additionalInfo-title {
  font-size: var(--font-size-xs);
  line-height: 1em;
}
.additional-info-value {
  color: #505050;
  font-size: 13px;
  font-weight: 400;
  line-height: 23px;
}
.additional-info-main-container {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
  overflow-x: scroll;
}
.purchDet-header-additional-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: max-content;
}
.additionalInfo-title {
  font-size: var(--font-size-xs);
  line-height: 1em;
}
.indent-details-main-container {
  margin-top: 20px;
}
.purch-det-heading-title {
  font-size: var(--font-size-md);
  font-weight: bold;
}
.purchase-details-timeline {
  width: 100%;
  /* flex: 0.2; */
  height: max-content;
}
.component-bg-br-sh-p {
  flex: 1;
  /* width: 25%; */
  padding: 10px;
}
.timeline-parent-container {
  display: flex;
  gap: 20px;
  width: 100%;
}
.summary-parent {
  width: 75%;
  margin-top: -30px;
}
.timeline-heading-summary {
  display: flex;
  gap: 20px;
}
.timeline-heading-summary > span {
  color: #505050;
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
}
/* .summary-details {
  color: #505050;
  font-size: 15px;
  line-height: 23px;
} */
.summary-details .MuiPaper-root-MuiCard-root .MuiCardContent-root {
  padding-bottom: 8px;
}
.summary-details > span {
  font-weight: 500;
}
.timesheet-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -10px;
}
.timesheet-heading > h4 {
  color: #505050;
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
}
.order-timeline {
  color: #505050;
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
}
.timesheet-heading > button {
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  border: none;
  background-color: transparent;
  color: #007aff;
}
.timesheet-details-data {
  /* display: flex !important;
  justify-content: space-between !important;
  align-items: center !important; */

  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: "12px";
  .timesheet-subdetails {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #505050;
    font-size: 18px;
    font-weight: 500;
  }
}
.linked-issues-details {
  color: #505050;
  font-size: 18px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  line-height: 23px;
}
.linked-content {
  color: #505050;
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
}
.new-btn {
  color: #007aff;
  font-size: 18px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  line-height: 23px;
}

/* .timesheet-subdetails {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #505050;
  font-size: 18px;
  font-weight: 500;
} */
.timesheet-subdetails > span {
  color: #505050;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}
.timesheet-modal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.table-container {
  margin-top: 0 !important;
}

.table-head .MuiTableHead-root {
  border-radius: 0px;
  display: contents;
}

.table-row .MuiTableCell-root {
  border-bottom: 0;
}
.linked-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.no-attachment {
  padding-bottom: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: red;
}

@media (max-width: 940px) {
  .taskdeatils-heading-container {
    gap: 0px;
  }
  .taskdetails-heading {
    font-size: 16px;
  }
}

@media (max-width: 701px) {
  .taskdetails-heading {
    font-size: 13px;
  }
}

.tabs-container {
  display: flex;
  border-bottom: 1px solid #e9eaec;
  gap: 16px;
  padding: 0 0px;
  margin: 0;
}

.tab-item {
  height: 36px;
  padding: 0 4px 16px 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #535861;
  position: relative;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito Sans', sans-serif;
}

/* Utility for labels that need the icon on the right */
.tab-label-right-icon {
  display: inline-flex;
  flex-direction: row-reverse; /* put icon on the right */
  align-items: center;
  gap: 8px;
}

.tab-item:hover {
  color: #0860e6;
}

.tab-item.active {
  color: #0860e6;
  border-color: #0860e6;
  font-weight: 600;
}

.datagrid-columns {
  text-align: left;
  opacity: 0.7 !important;
  background-color: rgba(224, 223, 223, 0.519) !important;
  color: black !important;
  border-radius: none !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: capitalize;
}

.datagrid-rows {
  margin: 0;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02857em;
  opacity: 1;
  text-transform: none;
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #67748e;
  font-weight: 500;
}

.datagrid-columns-Op,
.datagrid-rows-Op {
  display: none !important;
}

.sss-kskk {
  border: 1px solid red !important;
  height: 20px !important;
  text-transform: capitalize;
}

.blockSelectionClr {
  background-color: green !important;
  color: white;
}
.blockSelectionClr:hover {
  background-color: green !important;
  color: white;
}
.blockSelectionClr h6 {
  color: black;
}
.blockSelectionClr h6:hover {
  color: white;
}
.MuiDataGrid-columnHeaderCheckbox {
  background-color: rgba(224, 223, 223, 0.36) !important;
}
.css-1mhvdc7-MuiPaper-root-MuiMenu-paper-MuiPaper-root-MuiPopover-paper {
  box-shadow: none !important;
}
.MuiDataGrid-root .MuiDataGrid-cell:focus-within {
  outline: none !important;
}

/* ─── Rich Text Editor (React Quill) ──────────────────────────────────────── */

.rte-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}

/* Toolbar */
.rte-wrapper .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.rte-wrapper .ql-toolbar.ql-snow .ql-formats {
  margin-right: 6px;
  display: flex;
  align-items: center;
  gap: 1px;
}

/* Toolbar buttons */
.rte-wrapper .ql-toolbar.ql-snow button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}

.rte-wrapper .ql-toolbar.ql-snow button:hover,
.rte-wrapper .ql-toolbar.ql-snow button.ql-active {
  background: #e8efff !important;
  color: #1a3a8f !important;
}

.rte-wrapper .ql-toolbar.ql-snow button:hover .ql-stroke,
.rte-wrapper .ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: #1a3a8f !important;
}

.rte-wrapper .ql-toolbar.ql-snow button:hover .ql-fill,
.rte-wrapper .ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: #1a3a8f !important;
}

/* Dropdowns */
.rte-wrapper .ql-toolbar.ql-snow .ql-picker {
  height: 28px;
}

.rte-wrapper .ql-toolbar.ql-snow .ql-picker-label {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  font-size: 12px;
  height: 28px;
  display: flex;
  align-items: center;
}

.rte-wrapper .ql-toolbar.ql-snow .ql-picker-label:hover,
.rte-wrapper .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  border-color: #1a3a8f;
  color: #1a3a8f;
}

.rte-wrapper .ql-toolbar.ql-snow .ql-picker-options {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 4px;
  z-index: 9999;
}

.rte-wrapper .ql-toolbar.ql-snow .ql-picker-item:hover {
  background: #e8efff;
  border-radius: 4px;
  color: #1a3a8f;
}

/* Editor content area */
.rte-wrapper .ql-container.ql-snow {
  border: none;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.rte-wrapper .ql-editor {
  min-height: 480px;
  padding: 20px 24px;
  line-height: 1.75;
  color: #2d3748;
}

.rte-wrapper .ql-editor p {
  margin-bottom: 0.5em;
}

.rte-wrapper .ql-editor h1,
.rte-wrapper .ql-editor h2,
.rte-wrapper .ql-editor h3 {
  color: #1a202c;
  font-weight: 700;
  margin-bottom: 0.4em;
}

.rte-wrapper .ql-editor blockquote {
  border-left: 4px solid #1a3a8f;
  background: #f0f4ff;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: #4a5568;
  font-style: italic;
}

.rte-wrapper .ql-editor pre.ql-syntax {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.rte-wrapper .ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}

.rte-wrapper .ql-editor iframe,
.rte-wrapper .ql-editor .ql-video {
  width: 100%;
  min-height: 360px;
  border-radius: 8px;
  border: none;
  margin: 8px 0;
  display: block;
}

.rte-wrapper .ql-editor a {
  color: #1a3a8f;
  text-decoration: underline;
}

/* Placeholder */
.rte-wrapper .ql-editor.ql-blank::before {
  color: #a0aec0;
  font-style: normal;
  font-size: 14px;
  left: 24px;
}

/* Scrollbar */
.rte-wrapper .ql-editor::-webkit-scrollbar { width: 6px; }
.rte-wrapper .ql-editor::-webkit-scrollbar-track { background: transparent; }
.rte-wrapper .ql-editor::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

/* ─── Knowledge Center — Editor page ──────────────────────────────────────── */

.kc-editor-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 40px;
}

/* Header bar */
.kc-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d5be3 100%);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 4px 20px rgba(26, 58, 143, 0.25);
  gap: 16px;
  flex-wrap: wrap;
}

.kc-editor-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kc-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.kc-back-btn:hover { background: rgba(255, 255, 255, 0.28); }

.kc-editor-header__title {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.kc-editor-header__subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.kc-editor-header__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Metadata card */
.kc-meta-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 24px;
}

.kc-meta-card__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kc-meta-field {
  flex: 1;
  min-width: 180px;
}

.kc-meta-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.kc-required { color: #e53935; margin-left: 2px; }

.kc-meta-title-row { flex: 1; }

/* Editor card */
.kc-editor-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 24px;
}

/* TinyMCE overrides */
.tox-tinymce {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
}

.tox-notifications-container { display: none !important; }
.tox-statusbar { display: none !important; }

.tox-editor-container > .tox-sidebar-wrap > .tox-edit-area > .tox-edit-area__iframe {
  overflow-y: scroll !important;
}

/* Legacy class — kept for compatibility */
.write-blog-container {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: auto;
  margin-top: 30px;
}

.button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  gap: 8px;
}

.input-section { margin-bottom: 20px; }

.custom-filter-main-div {
    max-width: 645px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  
  .filter-custom-input > div {
    width: 100%;
  }
  
  .filter-custom-input > div > .MuiInputBase-root {
    padding: 0.5rem 0.75rem !important;
  }
  
  .filter-heading {
    display: block;
    width: 100%;
    font-weight: bold;
    width: 100%;
  }
  
  .filter-menu-main-div {
    padding: 10px;
  }
  
  .title-toolbar {
    padding-bottom: 5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .filter-actions-main-div {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .close-filter-modal-main-div {
    cursor: pointer;
  }
  
/* ─── Knowledge Center — Listing page ─────────────────────────────────────── */

/* Page header */
.kc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d5be3 100%);
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(26, 58, 143, 0.25);
}

.kc-page-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kc-page-header__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kc-page-header__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.kc-page-header__subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Table card */
.kc-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.kc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbfc;
  border-radius: 16px 16px 0 0;
  gap: 12px;
  flex-wrap: wrap;
}

/* Action icons in table */
.kc-action-icon {
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  opacity: 0.7;
}
.kc-action-icon:hover { transform: scale(1.2); opacity: 1; }
.kc-action-icon--delete { color: #e53935; }
.kc-action-icon--edit { color: #1a3a8f; }

/* Legacy selectors kept for DatagridCommon */
.data-grid-parent-div {
  background-color: white;
  margin-top: 20px;
  border-radius: 16px;
}
.searchbar-parent-div {
  display: flex;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  background-color: var(--primary-background-color);
  border-radius: 16px 16px 0 0;
}

.delete-icon-service {
    margin-top: 5px !important;
}
.small-input-varient {
  margin: auto;
  padding: 4px;
  width: 100%;
}

.wrapper-table-input-I {
  border: 1px solid lightgrey;
  width: 100%;
  color: #344767 !important;
  font-size: 0.8em !important;
  /* height: 100%; */
  font-weight: 500;
  text-align: center;
  border: 5px;
}

.wrapper-table-input-I:focus {
  outline: none;
}

.wrapper-table-input-I::placeholder {
  color: #344767 !important;
  font-weight: 500 !important;
  font-size: 0.8em !important;
}

.widthclass {
  max-width: 80px !important;
}

.no-data-text-I {
  font-size: 0.8em !important;
  font-size: 800 !important;
  text-align: center !important;
  color: #344767 !important;
}

.No-data-text-box {
  height: 525px !important;
  margin: auto;
  font-size: 1em !important;
  opacity: 0.5;
}

.src-dummy-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.all-products-filter-wrapper {
  /* margin-top: 20px; */
  /* flex-wrap: unset !important; */
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px;
}

.css-11dh2is-MuiInputBase-root-MuiInput-root {
  border: none !important;
  width: 10px !important;
  padding: 0px !important;
}

.css-a5rdam-MuiGrid-root > .MuiGrid-item {
  padding-top: 0px !important;
}

@media only screen and (max-width: 765px) {
  .css-uczt91-MuiInputBase-root-MuiOutlinedInput-root {
    /* max-width: 5rem !important; */
    float: right !important;
  }
}

.loyalty-select-tag {
  background-color: white !important;
  border-radius: 7px !important;
}

.loyalty-details-card {
  padding: 15px;
  line-height: 3rem !important;
  background-color: whitesmoke;
}

.loyalty-details-card:hover {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.loyalty-icon-config:hover {
  color: white !important;
}

.red-clr {
  border: 2px solid red !important;
  background-color: #efeff0 !important;
}

.blue-clr {
  border: 2px solid #127df2;
  background-color: #efeff0 !important;
}

.red-clr:hover {
  background-color: red !important;
}

.blue-clr:hover {
  background-color: #127df2 !important;
}

.loyalty-button-config {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px !important;
  width: 30px !important;
  border-radius: 50%;
}

.loyalty-details-icons {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.whatsapp-chip-loyalty {
  margin-right: 10px;
}

.chip-common-style:hover {
  transform: scale(1.1);
  box-shadow: rgba(40, 40, 40, 0.24) 0px 2px 6px;
}

.loyalty-new-button-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disabled-program {
  opacity: 0.4;
}

.activated-program {
  opacity: 1;
}

.loyalty-config-card {
  background-color: rgb(163, 191, 139) !important;
  color: white !important;
  width: 25rem !important;
  margin: auto;
  height: 100%;
  margin-top: 0;
}

.loyalty-config-card-image {
  position: absolute;
  top: -11rem;
  right: -2.5rem;
  overflow: hidden;
  width: 25rem;
  border-radius: 50%;
  aspect-ratio: 1/1;
  z-index: 10;
}

.loyalty-details-icons {
  position: absolute;
  top: 80%;
  right: 13px;
  overflow: hidden;
  aspect-ratio: 1/1;
  z-index: 10000;
}

.loyalty-settings-card-img {
  position: absolute;
  top: 0.5rem;
  right: -2rem;
  overflow: hidden;
  width: 14rem;
  aspect-ratio: 1/1;
  z-index: 1000;
  height: 100%;
}

.No-data-text-box-loyalty {
  height: 325px !important;
  margin: auto;
  font-size: 1em !important;
  opacity: 0.5;
}

.src-imgg-data-loyalty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 214px;
}

.loyalty-card-image-box {
  width: 100%;
  height: 268px;
}

.loyalty-config-avatar {
  top: 9rem;
  right: -3rem;
  aspect-ratio: 1/1;
  width: 6rem !important;
  height: 6rem !important;
  z-index: 100;
  color: rgb(163, 191, 139) !important;
  background-color: black !important;
}

.bottom-navbar-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  font-size: 1.4rem;
}

.bottom-navbar-icon-selected {
  color: var(--blue);
}

.bottom-navbar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background-color: whitesmoke !important;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  width: 100%;
}

.icon-main-div {
  width: 40% !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.loyalty-main-card {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.loyalty-branding-box {
  display: flex !important;
  justify-content: space-between;
}

@media only screen and (min-width: 666px) and (max-width: 768px) {
  .loyalty-main-card {
    flex-direction: column !important;
  }

  .loyalty-config-card {
    background-color: rgb(163, 191, 139) !important;
    color: white !important;
    width: 60% !important;
    margin: auto;
    height: 100%;
    margin-top: 0;
  }

  .loyalty-config-card-image {
    position: absolute;
    top: -11rem;
    right: -1rem;
    overflow: hidden;
    width: 24.5rem;
    border-radius: 50%;
    aspect-ratio: 1/1;
    z-index: 10;
  }

  .loyalty-config-avatar {
    top: 7rem;
    right: -3rem;
    aspect-ratio: 1/1;
    width: 6rem !important;
    height: 6rem !important;
    z-index: 100;
    color: rgb(163, 191, 139) !important;
    background-color: black !important;
  }

  .icon-main-div {
    width: 80% !important;
    margin: auto;
  }
}

@media only screen and (max-width: 665px) {
  .loyalty-config-card-image {
    position: absolute;
    top: -9rem;
    right: -1rem;
    overflow: hidden;
    width: 20rem;
    border-radius: 50%;
    aspect-ratio: 1/1;
    z-index: 10;
  }

  .bottom-navbar {
    position: fixed;
    bottom: 0;
    z-index: 3;
    background-color: whitesmoke !important;
    display: flex;
    border-radius: 5px;
    justify-content: space-around;
    align-items: center;
    height: 4rem;
    width: 100%;
    left: 0;
  }

  .loyalty-main-card {
    flex-direction: column !important;
  }

  .loyalty-config-avatar {
    top: 5.5rem;
    right: -3rem;
    aspect-ratio: 1/1;
    width: 5rem !important;
    height: 5rem !important;
    z-index: 100;
    color: rgb(163, 191, 139) !important;
    background-color: black !important;
  }

  .loyalty-config-card {
    background-color: rgb(163, 191, 139) !important;
    color: white !important;
    width: 21rem !important;
    margin: auto;
    height: 100%;
    margin-top: 0;
  }

  .icon-main-div {
    height: 50rem;
    position: relative;
    width: 85% !important;
    margin: auto;
  }
}

.bottom-navbar-text {
  font-size: 1rem !important;
  font-weight: bold;
}

.bottom-navbar-text-selected {
  font-size: 1rem !important;
  font-weight: bold;
  color: rgb(5, 98, 251) !important;
}

.bottom-navbar-box {
  text-align: center;
}

.points-insp-box {
  display: flex;
  justify-content: flex-start;
}

.points-insp-chip {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(229, 231, 236) !important;
  border: transparent;
  border-radius: 0.5rem;
  padding: 0.2rem 0.5rem;
}

.points-insp-chip-selected {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(163, 191, 139, 0.859) !important;
  border: transparent;
  border-radius: 0.5rem;
  padding: 0.2rem 0.5rem;
}

.points-insp-image {
  width: 25px;
  height: 25px;
}

.points-insp-main-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.points-text-box {
  font-size: 1rem !important;
  line-height: 20px !important;
  background: linear-gradient(92.67deg, #127df2 -2.4%, #32d3d3 94.01%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.points-preview-box {
  color: rgba(96, 112, 222, 0.859) !important;
  text-decoration: underline;
  font-weight: 500 !important;
  font-size: 1.2rem !important;
}

.points-preview-main-box {
  background-color: rgb(230, 233, 245) !important;
  padding: 0.5rem 1.2rem !important;
  margin-top: 20px !important;
  border-radius: 0.5rem;
}

.loyalty-reward-checkbox-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loyalty-reward-main-card {
  border: 0.5px solid rgb(218, 221, 225);
  border-radius: 0.5rem;
  margin: 1rem 0rem;
  padding: 10px;
}

.loyalty-reward-input {
  margin-top: 10px;
}

.loyalty-terms-checkbox-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0.5px solid rgb(218, 221, 225);
  border-radius: 0.5rem;
  margin: 1rem 0rem;
  padding: 10px;
}

.loyalty-channel-checkbox-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.5rem;
  margin: 1rem 0rem;
  padding: 10px 10px 10px 0px;
}

.loyalty-terms-textarea {
  border: 0.5px solid rgb(218, 221, 225);
  border-radius: 0.5rem;
  margin: 1rem 0rem;
  padding: 10px;
  font-size: 0.8rem;
}

.loyalty-terms-hr {
  opacity: 0.3;
  margin: 1rem 0rem;
}

.loyalty-config-next-btn-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white !important;
}

.bonus-points-main-box {
  display: flex;
  justify-content: space-between;
}

.bonus-points-content-box {
  flex: 0.7;
}

.bonus-points-phone-box {
  flex: 0.7;
}

.loyalty-config-next-btn {
  color: white !important;
  background-color: rgb(5, 98, 251) !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 1rem !important;
}

.loyalty-reminder-box {
  display: flex;
  justify-content: flex-start;
  line-height: 1rem;
  margin-bottom: 10%;
}

.loyalty-reminder-main-box {
  width: 40%;
  margin-right: 3% !important;
}

.loyalty-reminder-content-box {
  width: 40%;
}

.loyalty-remainder-days-select {
  flex: 0.4 !important;
}

.loyalty-remainder-select-box {
  flex: 1;
}

.loyalty-mutliple-select {
  flex: 0.4 !important;
}

.loyalty-mutliple-days {
  flex: 1;
}

.loyalty-reminder-checkbox-card {
  display: flex;
  justify-content: flex-start;
}

.nonClickableDiv {
  pointer-events: none;
  opacity: 0.5 !important;
}

.channel-main-box {
  display: flex;
  justify-content: center;
}

.channel-phone-box {
  flex: 1;
  margin: auto;
}

.channel-content-box {
  flex: 0.7;
  margin-right: 20px;
}

.channel-silder-box {
  width: 300px;
  margin: auto;
}

.multiple-order-btn {
  background-color: transparent;
  border: none;
  font-size: 15px;
  color: #127df2;
}

.multiple-input-box {
  border: 0.5px solid rgb(211, 212, 212);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
}

.loyalty-multiple-checkbox-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.5rem;
  margin: 0;
  padding: 0.5rem;
  width: 100%;
  background-color: white !important;
}

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

.multiple-text-highlight {
  color: #127df2;
  font-weight: 500;
}

.multiple-input-tag:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.multiple-input-tag {
  font-size: 0.8rem !important;
  width: 90%;
  background-color: rgb(244, 245, 248) !important;
}

.multiple-input-tag::placeholder {
  font-size: 0.8rem !important;
}

.multiple-order-container {
  background-color: rgb(244, 245, 248) !important;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-top: 20px;
}

.channel-most-used {
  background-color: white !important;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.loyalty-review-box {
  display: flex;
  justify-content: flex-start;
}

.loyalty-review-cont {
  display: flex;
  justify-content: space-between;
}

.text-underline-dec {
  text-decoration: dashed;
  text-decoration-color: #127df2;
}

.preview-cookies-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-container-box {
  line-height: 20px !important;
}

.preview-container-box > * {
  margin: 20px 0;
}

.preview-terms-box {
  border: 1px dashed rgba(213, 220, 227, 0.804);
  padding: 0.5rem;
  text-align: left;
  border-radius: 0.5rem;
}

.proceed-btn-alert {
  color: white !important;
}

.icon-margin {
  margin-right: 7px !important;
}

.valid-till-box {
  margin-top: 10px !important;
}

.loyalty-preview-box {
  width: 40% !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.loyalty-type-select {
  width: 100%;
}

.blacklist-terms {
  font-size: 0.8rem !important;
  font-weight: bold !important;
  margin-top: 1rem !important;
}

.loyalty-terms-scroll {
  height: calc(100vh - 300px);
  overflow: scroll;
}

.custom-header {
  background-color: #efeff0;
  font-size: 14px;
}

.custom-cell {
  font-size: 12px;
  cursor: pointer;
}

.data-cell {
  cursor: pointer;
}


/* loyalitypoints.css */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.loyalty-terms-scroll {
  /* Add responsiveness */
  max-width: 100%;
}

.loyalty-remainder-select-box {
  width: 100%;
}

.points-preview-main-box {
  width: 100%;
  word-wrap: break-word;
}


.coupons-page,.create-page{padding:26px 32px 56px;max-width:1500px;margin:auto;color:#344767}.coupon-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:10px 0 28px}.eyebrow{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:#71849c;font-weight:800}.coupon-hero h1,.create-heading h1{font-size:32px;line-height:1.12;margin:8px 0 10px;color:#223552;font-weight:700}.coupon-hero p,.create-heading p{margin:0;color:#71849c;font-size:14px}.create-coupon-btn{background:#486ba7!important;border-radius:9px!important;box-shadow:0 8px 18px rgba(72,107,167,.2)!important;text-transform:none!important;font-weight:700!important;padding:11px 18px!important}.coupon-stats{display:grid;grid-template-columns:repeat(3,1fr) 1.25fr;gap:1px;background:#e6edf4;border:1px solid #e6edf4;border-radius:14px;overflow:hidden;margin-bottom:24px}.coupon-stats>div{background:#fbfcfe;padding:20px 22px;display:flex;flex-direction:column;gap:5px}.coupon-stats span{font-size:12px;color:#8291a6}.coupon-stats strong{font-size:25px;color:#263c5a}.coupon-stats small{font-size:11px;color:#9ba8b8}.coupon-stats .stats-note{flex-direction:row;align-items:center;justify-content:center;background:#f3f7fb;color:#486ba7;gap:12px}.stats-note svg{font-size:25px}.stats-note span{color:#486ba7;font-size:12px;line-height:1.5}.coupon-card{background:#fff;border:1px solid #e5eaf0;border-radius:14px;box-shadow:0 5px 22px rgba(50,70,100,.04);overflow:hidden}.toolbar{display:flex;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #edf0f4}.search-box{display:flex;align-items:center;gap:10px;background:#f7f9fb;border:1px solid #e8edf3;border-radius:8px;padding:0 13px;width:340px}.search-box svg{color:#8291a6;font-size:20px}.search-box .MuiInputBase-root{font-size:13px;width:100%;padding:8px 0}.status-select{min-width:155px;background:#fff}.coupon-table-wrap{overflow-x:auto}.coupon-table{border-collapse:collapse;width:100%;min-width:900px}.coupon-table th{text-align:left;padding:13px 20px;color:#8b99aa;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:800;background:#fbfcfd}.coupon-table td{padding:16px 20px;border-top:1px solid #eff2f5;font-size:12px;color:#52647d}.coupon-table tbody tr{cursor:pointer;transition:background .18s}.coupon-table tbody tr:hover{background:#f8fbff}.code-cell{display:flex;flex-direction:column;gap:5px}.code{font-family:monospace;font-size:13px;color:#253b5d;font-weight:800;letter-spacing:.5px}.code-cell span:last-child{font-size:11px;color:#8291a6}.coupon-benefit{color:#3d5571;font-size:12px;white-space:nowrap}.coupon-benefit strong{font-size:14px;color:#253b5d}.date-range{line-height:1.6}.date-range em{font-style:normal;color:#9aa8b7;font-size:11px}.status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:700;white-space:nowrap}.status-pill i{width:6px;height:6px;border-radius:50%;background:currentColor}.status-pill.active{background:#e9f6f1;color:#2b856e}.status-pill.paused{background:#fff5dd;color:#a57620}.status-pill.archived{background:#f0f2f4;color:#7f8a97}.status-pill.draft{background:#edf3fb;color:#5070a2}.table-state,.empty-state{min-height:310px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#8291a6}.empty-mark{width:52px;height:52px;border-radius:16px;background:#edf3fb;color:#5578aa;display:grid;place-items:center}.empty-mark svg{font-size:25px}.empty-state h3{margin:8px 0 0;color:#344767}.empty-state p{margin:0 0 10px;font-size:13px}.coupon-alert{margin:14px 20px}.coupon-drawer{width:430px;max-width:100vw}.drawer-head{padding:30px 28px 22px;background:#f5f8fc;display:flex;justify-content:space-between}.drawer-head h2{font-family:monospace;letter-spacing:1px;color:#253b5d;margin:9px 0 12px}.drawer-body{padding:24px 28px}.drawer-highlight{display:flex;gap:13px;padding:16px;background:#f3f7fb;border-radius:10px;margin-bottom:24px;color:#486ba7}.drawer-highlight>svg{font-size:25px}.drawer-highlight span{display:block;font-size:11px;color:#8291a6;margin-bottom:5px}.drawer-highlight .coupon-benefit{font-size:14px}.drawer-body h3{color:#263c5a;margin:0 0 8px}.drawer-copy{color:#71849c;font-size:13px;line-height:1.6}.coupon-facts{margin:22px 0}.coupon-facts div{padding:12px 0;border-bottom:1px solid #edf0f4}.coupon-facts dt{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#98a5b4;font-weight:800}.coupon-facts dd{font-size:12px;margin:5px 0 0;color:#445974}.drawer-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch}.action-btn{border-color:#b8c9dc!important;color:#466993!important;text-transform:none!important}.action-primary{background:#486ba7!important;color:#fff!important}.archive-btn{color:#a66666!important;text-transform:none!important}.create-page{max-width:1220px}.back-link{display:flex;gap:6px;align-items:center;border:0;background:none;color:#71849c;font-size:13px;cursor:pointer;padding:4px 0}.back-link svg{font-size:17px}.create-heading{margin:30px 0}.stepper{display:flex;align-items:center;gap:0;margin-bottom:25px}.step{display:flex;align-items:center;gap:9px;color:#9ba8b8;font-size:12px;font-weight:700}.step:not(:last-child)::after{content:"";width:75px;height:1px;background:#dfe6ee;margin:0 14px}.step b{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d7e0eb;border-radius:50%;font-size:10px}.step.active{color:#486ba7}.step.active b{background:#486ba7;border-color:#486ba7;color:white}.create-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,.8fr);gap:24px}.form-panel,.preview-panel{background:#fff;border:1px solid #e4eaf1;border-radius:14px;padding:28px}.form-panel h2{margin:0;color:#263c5a;font-size:20px}.form-intro{color:#8291a6;font-size:13px;margin:8px 0 24px}.form-panel .MuiTextField-root{width:100%;margin-bottom:20px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.benefit-options{gap:9px;margin-bottom:20px}.benefit-option{display:flex;align-items:flex-start;border:1px solid #e2e9f0;border-radius:9px;padding:13px 12px;cursor:pointer}.benefit-option.selected{border-color:#7897c0;background:#f4f8fc}.benefit-option span{display:flex;flex-direction:column;gap:4px;margin-top:7px}.benefit-option strong{font-size:13px;color:#344767}.benefit-option small{color:#8492a4;font-size:11px}.check-group{display:flex;flex-direction:column;margin:2px 0 17px}.check-group .MuiFormControlLabel-label{font-size:12px;color:#52647d}.field-label{font-size:11px;color:#71849c;font-weight:700;display:block;margin-bottom:9px}.plan-picker{display:flex;gap:8px;flex-wrap:wrap}.plan-chip{border:1px solid #dce5ef;background:#fff;color:#62758e;border-radius:20px;padding:7px 12px;font-size:11px;cursor:pointer}.plan-chip.selected{background:#eaf1fa;border-color:#7393bd;color:#426794}.preview-panel{background:#f4f8fc;height:max-content}.preview-top{display:flex;gap:8px;align-items:center;color:#486ba7;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1px}.preview-top svg{font-size:18px}.preview-panel h3{font-size:17px;color:#263c5a;margin:30px 0 8px}.preview-code{font-family:monospace;font-size:12px;color:#8291a6;letter-spacing:1px}.preview-benefit{font-size:26px;font-weight:700;color:#486ba7;margin:28px 0 10px}.preview-panel p{font-size:12px;color:#71849c;line-height:1.6}.preview-line{display:flex;justify-content:space-between;padding:13px 0;border-top:1px solid #dfe7f0;font-size:11px}.preview-line span{color:#8291a6}.preview-line strong{color:#52647d}.preview-note{margin-top:24px;padding:13px;background:#fff;border-radius:8px;color:#71849c;font-size:11px;line-height:1.55}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.form-actions button{border-radius:8px;text-transform:none}.success-page{text-align:center;padding-top:100px}.success-icon{width:64px;height:64px;background:#e9f6f1;color:#2b856e;border-radius:20px;display:grid;place-items:center;margin:0 auto 20px}.success-icon svg{font-size:32px}.success-page h1{font-family:monospace;color:#253b5d;letter-spacing:2px;margin:14px 0}.success-page p{max-width:450px;margin:0 auto 25px;color:#71849c;font-size:13px;line-height:1.6}.success-summary{max-width:360px;margin:0 auto 28px;padding:16px 20px;background:#f5f8fc;border-radius:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left;font-size:12px}.success-summary span{color:#8291a6}.success-summary strong{color:#344767;text-align:right}
@media (max-width:800px){.coupons-page,.create-page{padding:20px 16px 42px}.coupon-hero{align-items:flex-start;flex-direction:column}.coupon-hero h1,.create-heading h1{font-size:27px}.coupon-stats{grid-template-columns:1fr 1fr}.coupon-stats .stats-note{grid-column:span 2;justify-content:flex-start}.toolbar{flex-direction:column}.search-box{width:auto}.create-grid{grid-template-columns:1fr}.preview-panel{order:-1}.field-grid{grid-template-columns:1fr}.step:not(:last-child)::after{width:28px;margin:0 7px}.step span{display:none}.coupon-drawer{width:100%}}
.form-section{padding-top:20px;margin-top:4px;border-top:1px solid #edf0f4}.form-section:first-of-type{padding-top:0;border-top:0}.form-section h3{margin:0 0 6px;color:#344767;font-size:14px}.cancellation-rules{margin-top:24px}.cancellation-rules>p{margin:0 0 16px;color:#8291a6;font-size:12px}.cancellation-rules .MuiTextField-root{margin-bottom:8px}.cancellation-rules .MuiFormControlLabel-root{align-items:flex-start}.cancellation-rules .MuiFormControlLabel-label{font-size:12px;line-height:1.5;color:#52647d;margin-top:9px}
/* ─── Header Card ──────────────────────────────────────────────────────────── */

.cd-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #EAECF0;
  box-shadow: 0 1px 3px rgba(16,24,40,0.06), 0 4px 20px rgba(16,24,40,0.06);
  overflow: hidden;
  margin-top: 4px;
}

.cd-top-bar {
  height: 5px;
  width: 100%;
}

.cd-card-body {
  padding: 24px 28px 20px;
}

/* Identity */
.cd-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.cd-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.cd-name-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cd-trade-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f36;
  line-height: 1.2;
}

.cd-legal-name {
  font-size: 13px;
  color: #667085;
  font-weight: 400;
}

.cd-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.cd-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cd-plan-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #F3E8FF;
  color: #6B21A8;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.cd-kyc-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Divider */
.cd-divider {
  height: 1px;
  background: #F2F4F7;
  margin-bottom: 20px;
}

/* Info groups */
.cd-groups {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.cd-info-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd-group-sep {
  width: 1px;
  background: #F2F4F7;
  margin: 0 28px;
  align-self: stretch;
}

.cd-group-title {
  font-size: 10px;
  font-weight: 700;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.cd-info-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.cd-info-row-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cd-info-label {
  font-size: 10px;
  color: #9AA3AF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.cd-info-value {
  font-size: 12.5px;
  color: #344767;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Products strip */
.cd-products-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #F2F4F7;
}

.cd-products-label {
  font-size: 10px;
  font-weight: 700;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.cd-products-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.cd-product-pill {
  display: inline-block;
  padding: 3px 12px;
  background: #F0F4FF;
  color: #3B5BDB;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ─── Tabs ──────────────────────────────────────────────────────────────────── */

.cd-tabs-section {
  margin-top: 16px;
}

.cd-tab-bar {
  display: flex;
  gap: 2px;
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 12px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cd-tab-bar::-webkit-scrollbar { display: none; }

.cd-tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 7px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #667085;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.cd-tab-btn:hover {
  background: #F9FAFB;
  color: #344767;
}

.cd-tab-btn--active {
  background: #1a1f36 !important;
  color: #fff !important;
  font-weight: 700;
}

.cd-tab-content {
  margin-top: 14px;
}

/* ─── Legacy selectors kept for other tabs ──────────────────────────────────── */
.details-page-box {
  border-radius: 16px;
  box-shadow: rgba(37,37,37,0.126) 0px 5px 50px;
  margin-top: 20px;
}

.customer-info-tabs-div { display: none; } /* replaced by cd-tab-bar */

/* ─── Root ───────────────────────────────────────────────────────────────────── */
.kyc-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Overall status card ────────────────────────────────────────────────────── */
.kyc-overall-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  padding: 18px 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.kyc-overall-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kyc-overall-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.kyc-overall-sub {
  font-size: 12px;
  color: #667085;
  font-weight: 500;
}

.kyc-overall-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  min-width: 240px;
}

/* Progress bar */
.kyc-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.kyc-progress-bar-track {
  flex: 1;
  height: 7px;
  background: rgba(0,0,0,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.kyc-progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.kyc-progress-pct {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Per-doc status dots */
.kyc-doc-dots {
  display: flex;
  gap: 16px;
  align-items: center;
}

.kyc-doc-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.kyc-doc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.kyc-doc-dot-label {
  font-size: 9.5px;
  color: #9AA3AF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ─── Two-column body grid ───────────────────────────────────────────────────── */
.kyc-body-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}

/* ─── Document list (left column) ────────────────────────────────────────────── */
.kyc-docs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Document card ──────────────────────────────────────────────────────────── */
.kyc-doc-card {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.kyc-doc-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.kyc-doc-card--approved     { border-left: 3px solid #4CAF50; }
.kyc-doc-card--pending      { border-left: 3px solid #FFC107; }
.kyc-doc-card--rejected     { border-left: 3px solid #EF5350; }
.kyc-doc-card--not-uploaded { border-left: 3px solid #CFD8DC; }

/* Header */
.kyc-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.kyc-doc-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.kyc-doc-icon-wrap {
  width: 36px;
  height: 36px;
  background: #F9FAFB;
  border: 1px solid #EAECF0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kyc-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kyc-doc-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1f36;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kyc-required-mark {
  font-size: 9.5px;
  font-weight: 600;
  color: #9AA3AF;
  background: #F2F4F7;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.kyc-doc-desc {
  font-size: 11.5px;
  color: #9AA3AF;
  font-weight: 400;
}

.kyc-doc-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Status badge */
.kyc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.kyc-status-badge--pending {
  border: 1px solid #F6D365;
}

.kyc-status-badge--approved {
  border: 1px solid #A5D6A7;
}

.kyc-status-badge--rejected {
  border: 1px solid #FFCDD2;
}

.kyc-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kyc-upload-date {
  font-size: 11px;
  color: #9AA3AF;
  font-weight: 500;
  white-space: nowrap;
}

/* View button */
.kyc-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #F0F4FF;
  color: #3B5BDB;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.kyc-view-btn:hover { background: #E0EAFF; }

/* ─── Action row (approve / reject) ─────────────────────────────────────────── */
.kyc-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 14px;
}

.kyc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border 0.15s, color 0.15s;
}

/* Approve */
.kyc-action-btn--approve {
  background: #F6FEF9;
  color: #2E7D32;
  border-color: #A5D6A7;
}
.kyc-action-btn--approve:hover { background: #E8F5E9; }
.kyc-action-btn--active-approve {
  background: #2E7D32 !important;
  color: #fff !important;
  border-color: #2E7D32 !important;
}

/* Pending */
.kyc-action-btn--pending {
  background: #FFF9E8;
  color: #9A6700;
  border-color: #F6D365;
}
.kyc-action-btn--pending:hover { background: #FFF3CD; }
.kyc-action-btn--active-pending {
  background: #B7791F !important;
  color: #fff !important;
  border-color: #B7791F !important;
}

/* Reject */
.kyc-action-btn--reject {
  background: #FFF8F8;
  color: #C62828;
  border-color: #FFCDD2;
}
.kyc-action-btn--reject:hover { background: #FFEBEE; }
.kyc-action-btn--active-reject {
  background: #C62828 !important;
  color: #fff !important;
  border-color: #C62828 !important;
}

/* ─── Universal comment thread panel (right column) ──────────────────────────── */
.kyc-thread-panel {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 120px);
}

/* Panel header */
.kyc-thread-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #F2F4F7;
  background: #FAFBFC;
  flex-shrink: 0;
}

.kyc-thread-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1f36;
  flex: 1;
}

.kyc-thread-panel-count {
  font-size: 11px;
  font-weight: 600;
  color: #9AA3AF;
  background: #F2F4F7;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Scrollable message area */
.kyc-thread-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.kyc-no-comments {
  font-size: 12px;
  color: #9AA3AF;
  text-align: center;
  padding: 16px 0;
}

/* ─── Comment bubbles ────────────────────────────────────────────────────────── */
.kyc-comment {
  display: flex;
}

.kyc-comment--customer { justify-content: flex-start; }
.kyc-comment--admin    { justify-content: flex-end; }

.kyc-comment-bubble {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12.5px;
}

.kyc-comment--customer .kyc-comment-bubble {
  background: #fff;
  border: 1px solid #EAECF0;
  border-bottom-left-radius: 3px;
}

.kyc-comment--admin .kyc-comment-bubble {
  background: #EEF4FF;
  border: 1px solid #C7D7FD;
  border-bottom-right-radius: 3px;
}

/* Document reference tag inside bubble */
.kyc-comment-doc-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #3B5BDB;
  background: #EEF4FF;
  border: 1px solid #C7D7FD;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-start;
  margin-bottom: 2px;
}

.kyc-comment--admin .kyc-comment-doc-tag {
  background: #fff;
  border-color: #C7D7FD;
}

.kyc-comment-author {
  font-size: 10.5px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kyc-comment-text {
  color: #344767;
  line-height: 1.5;
}

.kyc-comment-date {
  font-size: 10px;
  color: #9AA3AF;
  margin-top: 2px;
}

/* ─── Thread input area ──────────────────────────────────────────────────────── */
.kyc-thread-input-area {
  border-top: 1px solid #F2F4F7;
  background: #FAFBFC;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* Document tag selector */
.kyc-doc-ref-select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #EAECF0;
  border-radius: 8px;
  font-size: 12px;
  color: #344767;
  background: #fff;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border 0.15s;
}
.kyc-doc-ref-select:focus { border-color: #3B5BDB; }

/* Reply row */
.kyc-reply-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.kyc-reply-input {
  flex: 1;
  resize: none;
  border: 1px solid #EAECF0;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12.5px;
  color: #344767;
  font-family: inherit;
  outline: none;
  line-height: 1.5;
  min-height: 38px;
  max-height: 100px;
  transition: border 0.15s;
  background: #fff;
}
.kyc-reply-input:focus { border-color: #3B5BDB; }
.kyc-reply-input::placeholder { color: #B0BAC6; }

.kyc-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #EAECF0;
  color: #9AA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.kyc-send-btn--active {
  background: #1a1f36;
  color: #fff;
}
.kyc-send-btn:disabled { cursor: default; }

/* ─── Document viewer modal ──────────────────────────────────────────────────── */
.kyc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #EAECF0;
}

.kyc-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1f36;
}

.kyc-modal-preview {
  height: 520px;
  background: #F2F4F7;
}

.kyc-modal-iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.kyc-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #EAECF0;
  background: #FAFAFA;
}

.kyc-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kyc-modal-btns {
  display: flex;
  gap: 10px;
}

.kyc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.kyc-document-modal {
  width: min(900px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.kyc-modal-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: transparent;
  cursor: pointer;
}
.kyc-modal-close:hover { background: #F2F4F7; color: #1a1f36; }

.kyc-preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #F2F4F7;
}

.kyc-preview-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.kyc-modal-error {
  padding: 8px 20px;
  color: #B42318;
  background: #FEF3F2;
  border-top: 1px solid #FECDCA;
  font-size: 12px;
}

.kyc-modal-open-link {
  padding: 0 20px 14px;
  font-size: 12px;
}
.kyc-modal-open-link a { color: #3B5BDB; font-weight: 600; }

.kyc-empty {
  padding: 36px 20px;
  border: 1px dashed #D0D5DD;
  border-radius: 14px;
  background: #FAFBFC;
  color: #667085;
  font-size: 13px;
  text-align: center;
}
.kyc-empty--error { color: #B42318; background: #FEF3F2; border-color: #FDA29B; }

@media (max-width: 720px) {
  .kyc-modal-backdrop { padding: 12px; }
  .kyc-document-modal { max-height: calc(100vh - 24px); }
  .kyc-modal-preview { height: 360px; }
  .kyc-modal-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .kyc-modal-btns { flex-wrap: wrap; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .kyc-body-grid {
    grid-template-columns: 1fr;
  }
  .kyc-thread-panel {
    position: static;
    max-height: 480px;
  }
}

@media (max-width: 768px) {
  .kyc-overall-card  { flex-direction: column; align-items: flex-start; }
  .kyc-overall-right { width: 100%; align-items: flex-start; }
  .kyc-doc-header    { flex-direction: column; align-items: flex-start; }
  .kyc-doc-right     { justify-content: flex-start; }
  .kyc-comment-bubble { max-width: 90%; }
}

/* ─── Root ───────────────────────────────────────────────────────────────────── */
.sp-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Plan summary card ──────────────────────────────────────────────────────── */
.sp-plan-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  padding: 20px 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.sp-plan-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}

.sp-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F0F0FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-plan-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sp-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1f36;
}

.sp-plan-amount {
  font-size: 12px;
  color: #667085;
  font-weight: 500;
}

/* Dates */
.sp-plan-dates {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sp-plan-date-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-plan-date-label {
  font-size: 10px;
  font-weight: 700;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sp-plan-date-val {
  font-size: 13px;
  font-weight: 600;
  color: #344767;
}

.sp-plan-date-sep {
  width: 1px;
  height: 32px;
  background: #EAECF0;
}

/* Status counts */
.sp-plan-counts {
  display: flex;
  align-items: center;
  gap: 0;
  border-left: 1px solid #EAECF0;
  padding-left: 24px;
}

.sp-count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 18px;
  border-right: 1px solid #EAECF0;
}

.sp-count-item:last-child { border-right: none; }

.sp-count-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.sp-count-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sp-count-item--active   .sp-count-num   { color: #2E7D32; }
.sp-count-item--active   .sp-count-label { color: #2E7D32; }
.sp-count-item--cancelled .sp-count-num  { color: #C62828; }
.sp-count-item--cancelled .sp-count-label{ color: #C62828; }
.sp-count-item--inactive .sp-count-num   { color: #78909C; }
.sp-count-item--inactive .sp-count-label { color: #78909C; }

/* ─── Filter bar ─────────────────────────────────────────────────────────────── */
.sp-filter-bar {
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.sp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #667085;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.sp-filter-btn:hover { background: #F9FAFB; color: #344767; }

.sp-filter-btn--active {
  background: #1a1f36 !important;
  color: #fff !important;
  font-weight: 700;
}

.sp-filter-count {
  background: rgba(255,255,255,0.2);
  padding: 1px 6px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
}

.sp-filter-btn:not(.sp-filter-btn--active) .sp-filter-count {
  background: #F2F4F7;
  color: #667085;
}

/* ─── Section ────────────────────────────────────────────────────────────────── */
.sp-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sp-section-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #9AA3AF;
  background: #F2F4F7;
  padding: 1px 7px;
  border-radius: 20px;
}

/* ─── Cards grid ─────────────────────────────────────────────────────────────── */
.sp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ─── Product card ───────────────────────────────────────────────────────────── */
.sp-card {
  background: #fff;
  border: 1px solid #EAECF0;
  border-left-width: 3px;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
}

.sp-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Card top row */
.sp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sp-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-card-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.sp-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1f36;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-card-desc {
  font-size: 10.5px;
  color: #9AA3AF;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status badge */
.sp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.sp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Detail row */
.sp-card-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #667085;
  font-weight: 500;
  padding-top: 6px;
  border-top: 1px solid #F2F4F7;
}

.sp-card-detail strong { color: #344767; font-weight: 700; }

.sp-card-detail--cancelled { color: #C62828; }
.sp-card-detail--cancelled strong { color: #C62828; }
.sp-card-detail--inactive { color: #B0BEC5; font-style: italic; }

.sp-arrow {
  color: #B0BEC5;
  font-weight: 400;
}

/* Duration pill */
.sp-duration-pill {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
}

.sp-duration-pill--cancelled {
  background: #FFEBEE;
  color: #C62828;
}

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

@media (max-width: 640px) {
  .sp-cards-grid { grid-template-columns: 1fr; }
  .sp-plan-card  { flex-direction: column; align-items: flex-start; }
  .sp-plan-counts { border-left: none; border-top: 1px solid #EAECF0; padding: 16px 0 0; width: 100%; }
}

/* ─── Customer detail subscription view ────────────────────────────────────── */
.customer-subscriptions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 20px;
}

.subscription-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.subscription-eyebrow,
.subscription-card-label,
.subscription-detail-label {
  display: block;
  color: #8b98aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.subscription-section-heading h2 {
  margin: 4px 0 3px;
  color: #172033;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subscription-section-heading p {
  margin: 0;
  color: #78869a;
  font-size: 12px;
}

.subscription-count,
.billing-item-count {
  flex-shrink: 0;
  border: 1px solid #d8e0eb;
  border-radius: 999px;
  background: #f8fbff;
  color: #2876ed;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
}

.subscription-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subscription-plan-card,
.subscription-empty-card {
  overflow: hidden;
  border: 1px solid #e4eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 52, 91, 0.05);
}

.subscription-plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf1f7;
  background: linear-gradient(105deg, #fbfdff 0%, #fff 68%);
}

.subscription-plan-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.subscription-plan-icon,
.subscription-detail-icon,
.subscription-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2876ed;
}

.subscription-plan-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #d8e8ff;
  border-radius: 12px;
  background: #edf5ff;
}

.subscription-plan-icon svg { font-size: 21px; }

.subscription-plan-identity h3 {
  overflow: hidden;
  margin: 4px 0 0;
  color: #172033;
  font-size: 17px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-status,
.billing-status {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  text-transform: capitalize;
}

.subscription-status-dot,
.billing-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.subscription-status--active,
.billing-status--active {
  background: #ecfdf3;
  color: #147d4a;
}
.subscription-status--active .subscription-status-dot,
.billing-status--active .billing-status-dot { background: #20a464; }

.subscription-status--trial,
.billing-status--trial {
  background: #fff8e6;
  color: #a16207;
}
.subscription-status--trial .subscription-status-dot,
.billing-status--trial .billing-status-dot { background: #e5a11b; }

.subscription-status--expired,
.billing-status--expired,
.subscription-status--cancelled,
.billing-status--cancelled {
  background: #fff1f2;
  color: #c24155;
}
.subscription-status--expired .subscription-status-dot,
.subscription-status--expired .billing-status-dot,
.subscription-status--cancelled .subscription-status-dot,
.billing-status--cancelled .billing-status-dot { background: #e05264; }

.subscription-status--unknown,
.billing-status--unknown {
  background: #f3f6fa;
  color: #64748b;
}
.subscription-status--unknown .subscription-status-dot,
.billing-status--unknown .billing-status-dot { background: #94a3b8; }

.subscription-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 22px;
}

.subscription-detail-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  border: 1px solid #edf1f7;
  border-radius: 11px;
  background: #fbfdff;
  padding: 12px;
}

.subscription-detail-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f0f6ff;
}

.subscription-detail-icon svg { font-size: 16px; }

.subscription-detail-card strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.subscription-detail-card small {
  display: block;
  margin-top: 2px;
  color: #8b98aa;
  font-size: 10px;
}

.subscription-products-section {
  padding: 0 22px 20px;
}

.subscription-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf1f7;
  padding-top: 16px;
  color: #415168;
  font-size: 12px;
  font-weight: 800;
}

.subscription-products-heading > span:last-child {
  border-radius: 999px;
  background: #edf5ff;
  color: #2876ed;
  font-size: 10px;
  padding: 3px 8px;
}

.subscription-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.subscription-product-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  color: #344767;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 10px;
}

.subscription-product-card > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-product-icon svg { font-size: 16px; }
.subscription-products-empty,
.subscription-empty-card {
  color: #78869a;
  font-size: 12px;
}

.subscription-products-empty {
  margin-top: 10px;
  border: 1px dashed #d8e0eb;
  border-radius: 10px;
  padding: 12px;
}

.subscription-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 190px;
  text-align: center;
}

.subscription-empty-card svg {
  margin-bottom: 4px;
  color: #8ca3c2;
  font-size: 30px;
}

.subscription-empty-card strong {
  color: #344767;
  font-size: 14px;
}

@media (max-width: 640px) {
  .subscription-section-heading { align-items: flex-start; flex-direction: column; }
  .subscription-detail-grid,
  .subscription-product-grid { grid-template-columns: 1fr; }
  .subscription-plan-card-header { align-items: flex-start; flex-direction: column; }
}

.ov-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 3-column grid */
.ov-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Section card */
.ov-section {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  padding: 20px 22px;
}

.ov-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F2F4F7;
}

/* Field row */
.ov-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #F9FAFB;
  gap: 12px;
}

.ov-field:last-child {
  border-bottom: none;
}

.ov-field-label {
  font-size: 11.5px;
  color: #9AA3AF;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.ov-field-value {
  font-size: 12.5px;
  color: #344767;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.ov-field-value--accent {
  color: #2E7D32;
}

/* Products inside section */
.ov-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ov-product-pill {
  display: inline-block;
  padding: 3px 10px;
  background: #F0F4FF;
  color: #3B5BDB;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Address grid (2-col inside address section) */
.ov-address-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 20px;
}

.ov-address-grid .ov-field {
  flex-direction: column;
  align-items: flex-start;
  border-bottom: none;
  gap: 3px;
  padding: 8px 0;
}

.ov-address-grid .ov-field-value {
  text-align: left;
}

@media (max-width: 960px) {
  .ov-grid-3 { grid-template-columns: 1fr; }
  .ov-address-grid { grid-template-columns: repeat(2, 1fr); }
}

.orders-main-div {
  margin-top: 20px;
}

.data-grid-main-div {
  background-color: white;
  border-radius: 24px;
}

.orders-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.orders-heading,
.orders-location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.orders-title {
  color: #1a1f36;
  font-size: 16px;
  font-weight: 700;
}

.orders-subtitle,
.orders-location-id {
  margin-top: 4px;
  color: #8792a2;
  font-size: 12px;
}

.orders-total-summary,
.orders-location-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: #667085;
  font-size: 12px;
}

.orders-total-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.orders-total-summary svg {
  color: #3b5bdb;
}

.orders-location-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.orders-location-card {
  overflow: hidden;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #fff;
}

.orders-location-header {
  padding: 18px;
  border-bottom: 1px solid #f2f4f7;
}

.orders-location-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-location-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #3b5bdb;
}

.orders-location-title {
  color: #344767;
  font-size: 14px;
  font-weight: 700;
}

.orders-location-summary strong {
  color: #1a1f36;
}

.orders-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid #f8f9fb;
}

.orders-status-pill {
  padding: 5px 9px;
  border-radius: 14px;
  background: #f2f4f7;
  color: #667085;
  font-size: 11px;
  text-transform: capitalize;
}

.orders-status-pill strong {
  color: #344767;
}

.orders-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.orders-table th {
  padding: 11px 14px;
  background: #fafbfc;
  color: #8792a2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .45px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.orders-table td {
  padding: 12px 14px;
  border-top: 1px solid #f2f4f7;
  color: #52647d;
  font-size: 12px;
  white-space: nowrap;
}

.orders-table tbody tr:hover {
  background: #fafbfc;
}

.orders-id-cell {
  color: #344767 !important;
  font-weight: 700;
}

.orders-align-right {
  text-align: right !important;
}

.orders-location-empty,
.orders-empty {
  padding: 38px 20px;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.orders-empty {
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  background: #fafbfc;
}

.orders-empty--error {
  border-color: #fda29b;
  background: #fef3f2;
  color: #b42318;
}

@media (max-width: 720px) {
  .orders-heading,
  .orders-location-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .orders-total-summary,
  .orders-location-summary {
    justify-content: flex-start;
  }
}

/* ─── Root ───────────────────────────────────────────────────────────────────── */
.mx-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── Block (Sales / Purchases) ─────────────────────────────────────────────── */
.mx-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Section header ─────────────────────────────────────────────────────────── */
.mx-section-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 2px;
}

.mx-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1f36;
}

.mx-section-sub {
  font-size: 11.5px;
  color: #9AA3AF;
}

/* ─── KPI row ─────────────────────────────────────────────────────────────────── */
.mx-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mx-kpi-card {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mx-kpi-label {
  font-size: 11px;
  color: #9AA3AF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mx-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #1a1f36;
  line-height: 1.2;
}

.mx-kpi-change {
  font-size: 11px;
  font-weight: 600;
}

.mx-kpi-change--up   { color: #2E7D32; }
.mx-kpi-change--down { color: #C62828; }

/* ─── Card ────────────────────────────────────────────────────────────────────── */
.mx-card {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 14px;
  padding: 20px 22px;
}

.mx-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #344767;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

/* ─── Pipeline ────────────────────────────────────────────────────────────────── */
.mx-pipeline {
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mx-pipeline-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0;
  flex: 1;
  min-width: 90px;
}

.mx-pipeline-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mx-pipeline-bar {
  width: 48px;
  border-radius: 6px 6px 0 0;
  transition: height 0.3s ease;
}

.mx-pipeline-count {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.mx-pipeline-stage-name {
  font-size: 10.5px;
  color: #667085;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.mx-pipeline-value {
  font-size: 11px;
  color: #9AA3AF;
  font-weight: 500;
}

.mx-pipeline-arrow {
  font-size: 20px;
  color: #D0D5DD;
  margin: 0 2px;
  padding-bottom: 46px;
  flex-shrink: 0;
}

/* ─── Table ───────────────────────────────────────────────────────────────────── */
.mx-table {
  width: 100%;
  border-collapse: collapse;
}

.mx-table thead th {
  font-size: 10.5px;
  font-weight: 700;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid #F2F4F7;
  text-align: left;
  white-space: nowrap;
}

.mx-th-right { text-align: right !important; }

.mx-table tbody td {
  font-size: 13px;
  color: #344767;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #F9FAFB;
  font-weight: 500;
}

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

.mx-table tbody tr:hover td { background: #F9FAFB; }

.mx-td-right     { text-align: right; }
.mx-td-returned  { color: #C62828; font-weight: 600; }
.mx-td-net       { color: #2E7D32; font-weight: 700; }

.mx-channel-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.mx-channel-logo {
  font-size: 15px;
}

/* ─── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mx-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

.metrics-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metrics-heading,
.metrics-location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metrics-title {
  color: #1a1f36;
  font-size: 16px;
  font-weight: 700;
}

.metrics-subtitle,
.metrics-location-id {
  margin-top: 4px;
  color: #8792a2;
  font-size: 12px;
}

.metrics-location-count,
.metrics-location-status {
  padding: 5px 10px;
  border-radius: 16px;
  background: #eef4ff;
  color: #4169a1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.metrics-location-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.metrics-location-card {
  padding: 18px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #fff;
}

.metrics-location-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metrics-location-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #3b5bdb;
}

.metrics-location-title {
  color: #344767;
  font-size: 14px;
  font-weight: 700;
}

.metrics-location-status {
  background: #f2f4f7;
  color: #667085;
  font-weight: 600;
}

.metrics-location-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.metrics-value-card {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  background: #fafbfc;
}

.metrics-value-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8792a2;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.metrics-value-card strong {
  color: #1a1f36;
  font-size: 17px;
  font-weight: 700;
}

.metrics-empty {
  padding: 38px 20px;
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  background: #fafbfc;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.metrics-empty--error {
  border-color: #fda29b;
  background: #fef3f2;
  color: #b42318;
}

@media (max-width: 900px) {
  .metrics-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .metrics-heading,
  .metrics-location-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics-location-grid { grid-template-columns: 1fr; }
}

.metrics-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
}

.metrics-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.metrics-table th {
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid #eaecf0;
  color: #8792a2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .45px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.metrics-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f2f4f7;
  color: #52647d;
  font-size: 12px;
  white-space: nowrap;
}

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

.metrics-table tbody tr:hover {
  background: #fafbfc;
}

.metrics-location-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
}

.metrics-location-cell > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metrics-location-cell strong {
  color: #344767;
  font-size: 12px;
  font-weight: 700;
}

.metrics-location-cell small {
  color: #8792a2;
  font-size: 10.5px;
}

.metrics-status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .25px;
}

.metrics-status--active {
  background: #e8f5e9;
  color: #2e7d32;
}

.metrics-status--inactive {
  background: #f2f4f7;
  color: #667085;
}

/* Match the Sales Leaderboard listing workspace and shared data grid. */
.metrics-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 0 34px;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
}

.metrics-listing-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: none;
}

.metrics-listing-card .newrevamp-listing-header {
  padding: 13px 14px 11px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.metrics-listing-card .newrevamp-listing-header__row {
  gap: 14px;
}

.metrics-listing-card .newrevamp-listing-header__identity {
  gap: 0;
  min-width: 150px;
}

.metrics-listing-card .newrevamp-listing-header__titles {
  gap: 3px;
}

.metrics-listing-card .newrevamp-listing-header__title {
  color: #182230;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.metrics-listing-card .newrevamp-listing-header__subtitle {
  color: #98a2b3;
  font-size: 10px;
}

.metrics-listing-card .newrevamp-data-grid .container-grid-parent {
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 0;
}

.metrics-listing-card .newrevamp-data-grid .data-grid thead th {
  height: 32px;
  padding: 0 10px !important;
  background: #fbfcfe !important;
  border-bottom: 1px solid #eef1f5 !important;
  color: #7b8798 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none;
}

.metrics-listing-card .newrevamp-data-grid .data-grid tbody tr {
  height: 40px !important;
}

.metrics-listing-card .newrevamp-data-grid .data-grid tbody td {
  height: 40px;
  padding: 0 10px !important;
  border-bottom-color: #f0f2f5 !important;
  color: #475467 !important;
  font-size: 10px !important;
}

.metrics-listing-card .newrevamp-data-grid .data-grid tbody tr:hover td {
  background: #f8fbff !important;
}

.metrics-listing-card .newrevamp-data-grid .pagination-datagrid {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #eef1f5;
}

.metrics-listing-card .newrevamp-data-grid .paginated-datagrid-range-arrow-par {
  justify-content: space-between;
  color: #8b95a5;
  font-size: 10px;
}

.metrics-listing-card .newrevamp-data-grid .pagination-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  color: #475467;
}

.metrics-listing-card .newrevamp-data-grid .pagination-button:hover {
  background: #f1f5f9;
}

.metrics-location-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 28px;
}

.metrics-location-cell > div:last-child {
  min-width: 0;
  overflow: hidden;
}

.metrics-location-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #e7f0ff;
  color: #3d69b1;
}

.metrics-location-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-location-id {
  margin-top: 2px;
  overflow: hidden;
  color: #98a2b3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-status {
  padding: 3px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .metrics-page {
    padding-top: 4px;
  }
}

/* ─── Root ───────────────────────────────────────────────────────────────────── */
.bl-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 20px;
}

/* ─── Stat Tiles ─────────────────────────────────────────────────────────────── */
.bl-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bl-stat-tile {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s;
}
.bl-stat-tile:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.bl-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bl-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bl-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.bl-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #1a1f36;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.bl-stat-sub {
  font-size: 11px;
  color: #9AA3AF;
  font-weight: 500;
}

/* ─── Mid grid (Plan + Breakdown) ─────────────────────────────────────────────── */
.bl-mid-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  align-items: start;
}

/* ─── Plan Card ──────────────────────────────────────────────────────────────── */
.bl-plan-card {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Dark gradient header */
.bl-plan-header {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bl-plan-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bl-plan-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.bl-plan-tier {
  font-size: 10px;
  font-weight: 700;
  color: #1a1f36;
  background: #F4D03F;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bl-plan-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.bl-plan-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Plan details */
.bl-plan-details {
  padding: 0 24px;
  border-bottom: 1px solid #F2F4F7;
}

.bl-plan-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #F9FAFB;
  gap: 16px;
}
.bl-plan-detail-row:last-child { border-bottom: none; }

.bl-plan-detail-label {
  font-size: 12.5px;
  color: #9AA3AF;
  font-weight: 500;
}

.bl-plan-detail-value {
  font-size: 13px;
  color: #1a1f36;
  font-weight: 600;
  text-align: right;
}

/* Plan actions */
.bl-plan-actions {
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bl-plan-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, box-shadow 0.15s;
}

.bl-plan-action-btn--deactivate {
  background: #FFEBEE;
  color: #C62828;
  border-color: #FFCDD2;
}
.bl-plan-action-btn--deactivate:hover { background: #FFCDD2; }

.bl-plan-action-btn--activate {
  background: #E8F5E9;
  color: #2E7D32;
  border-color: #A5D6A7;
}
.bl-plan-action-btn--activate:hover { background: #C8E6C9; }

.bl-plan-action-btn--coupon {
  background: #F3E5F5;
  color: #7B1FA2;
  border-color: #CE93D8;
}
.bl-plan-action-btn--coupon:hover { background: #E1BEE7; }

/* ─── Receipt Card ───────────────────────────────────────────────────────────── */
.bl-receipt-card {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 16px;
}

.bl-receipt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #F2F4F7;
  background: #FAFBFC;
}

.bl-receipt-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1f36;
  flex: 1;
}

.bl-receipt-period {
  font-size: 11px;
  color: #9AA3AF;
  font-weight: 500;
  background: #F2F4F7;
  padding: 2px 8px;
  border-radius: 20px;
}

.bl-receipt-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bl-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #344767;
}

.bl-receipt-row--discount {
  color: #2E7D32;
  font-size: 12.5px;
}

.bl-receipt-row--sub {
  color: #667085;
  font-size: 12.5px;
  font-weight: 600;
}

.bl-receipt-row--total {
  font-size: 15px;
  font-weight: 800;
  color: #1a1f36;
  letter-spacing: -0.2px;
}

.bl-receipt-code-tag {
  font-size: 10px;
  font-weight: 700;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.bl-receipt-divider {
  border-top: 2px dashed #EAECF0;
  margin: 8px 0;
}

.bl-receipt-footer {
  padding: 12px 20px;
  border-top: 1px solid #F2F4F7;
  background: #FAFBFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl-receipt-mode-label {
  font-size: 11px;
  color: #9AA3AF;
  font-weight: 500;
}

.bl-receipt-mode-value {
  font-size: 12px;
  color: #344767;
  font-weight: 600;
}

/* ─── Invoice History Table ───────────────────────────────────────────────────── */
.bl-table-card {
  background: #fff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.bl-table-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #F2F4F7;
  gap: 16px;
  flex-wrap: wrap;
}

.bl-table-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bl-table-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1f36;
}

.bl-table-count {
  font-size: 11px;
  color: #9AA3AF;
  font-weight: 600;
  background: #F2F4F7;
  padding: 2px 8px;
  border-radius: 20px;
}

.bl-table-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Status filter pills */
.bl-status-filters {
  display: flex;
  gap: 6px;
}

.bl-status-filter-btn {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #EAECF0;
  background: transparent;
  color: #667085;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.bl-status-filter-btn:hover { background: #F9FAFB; }
.bl-status-filter-btn--active {
  background: #1a1f36;
  color: #fff;
  border-color: #1a1f36;
}

/* Search */
.bl-search-input {
  padding: 7px 13px;
  border: 1px solid #EAECF0;
  border-radius: 10px;
  font-size: 12.5px;
  color: #344767;
  font-family: inherit;
  outline: none;
  width: 200px;
  transition: border 0.15s;
  background: #FAFBFC;
}
.bl-search-input:focus { border-color: #3B5BDB; background: #fff; }
.bl-search-input::placeholder { color: #B0BAC6; }

/* Table */
.bl-table-wrap {
  overflow-x: auto;
}

.bl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bl-table thead tr {
  background: #FAFBFC;
  border-bottom: 1px solid #EAECF0;
}

.bl-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #9AA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.bl-table-row {
  border-bottom: 1px solid #F9FAFB;
  transition: background 0.12s;
}
.bl-table-row:last-child { border-bottom: none; }
.bl-table-row:hover { background: #FAFBFC; }

.bl-table td {
  padding: 12px 16px;
  color: #344767;
  vertical-align: middle;
}

.bl-table-inv-no {
  font-weight: 700;
  color: #1a1f36 !important;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px !important;
}

.bl-table-muted {
  color: #667085 !important;
  font-size: 12.5px !important;
}

.bl-table-amount {
  font-weight: 700;
  color: #1a1f36 !important;
  white-space: nowrap;
}

.bl-table-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.bl-table-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bl-table-empty {
  text-align: center;
  padding: 40px !important;
  color: #9AA3AF;
  font-size: 13px;
}

/* Action icon button */
.bl-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #EAECF0;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}
.bl-icon-btn:hover { background: #F2F4F7; border-color: #D0D5DD; }

/* ─── Modals ─────────────────────────────────────────────────────────────────── */
.bl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #EAECF0;
}

.bl-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1f36;
}

.bl-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #EAECF0;
  background: transparent;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.bl-modal-close:hover { background: #F2F4F7; }

.bl-reminder-invoice-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: #F2F4F7;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #344767;
  margin-bottom: 18px;
}

.bl-status-inline {
  font-weight: 700;
}

/* Fields */
.bl-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.bl-field-group:last-child { margin-bottom: 0; }

.bl-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bl-field-input {
  padding: 9px 13px;
  border: 1px solid #EAECF0;
  border-radius: 10px;
  font-size: 13px;
  color: #344767;
  font-family: inherit;
  outline: none;
  transition: border 0.15s;
  background: #FAFBFC;
  width: 100%;
  box-sizing: border-box;
}
.bl-field-input:focus { border-color: #3B5BDB; background: #fff; }
.bl-field-input::placeholder { color: #B0BAC6; }
.bl-field-input[readonly] { background: #F5F5F5; color: #9AA3AF; cursor: default; }

.bl-field-textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 72px;
}

.bl-field-select {
  cursor: pointer;
  appearance: auto;
}

/* 2-col form grid */
.bl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

/* Coupon row */
.bl-coupon-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.bl-coupon-row .bl-field-group {
  margin-bottom: 0;
}

.bl-coupon-validate-btn {
  flex-shrink: 0;
  white-space: nowrap;
  height: 40px;
}

/* Discount type tabs */
.bl-type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bl-type-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #EAECF0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.bl-type-tab:hover { background: #F9FAFB; }
.bl-type-tab--active {
  background: #1a1f36;
  color: #fff;
  border-color: #1a1f36;
}

/* Coupon preview */
.bl-coupon-preview {
  background: #F9FAFB;
  border: 1px solid #EAECF0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bl-coupon-preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #344767;
  padding: 3px 0;
}

.bl-coupon-preview-discount {
  color: #2E7D32;
  font-weight: 600;
}

.bl-coupon-preview-divider {
  border-top: 1px dashed #EAECF0;
  margin: 4px 0;
}

.bl-coupon-preview-total {
  font-size: 14px;
  font-weight: 800;
  color: #1a1f36;
}

/* Plan toggle desc */
.bl-toggle-desc {
  font-size: 13.5px;
  color: #667085;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.bl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.bl-btn--primary {
  background: var(--ui-color-primary, #0562fb);
  color: #fff;
  border-color: var(--ui-color-primary, #0562fb);
}
.bl-btn--primary:hover { background: var(--ui-color-primary-hover, #034fcf); }
.bl-btn--primary:disabled { background: #9AA3AF; border-color: #9AA3AF; cursor: default; }

.bl-btn--success {
  background: #2E7D32;
  color: #fff;
  border-color: #2E7D32;
}
.bl-btn--success:hover { background: #1B5E20; }

.bl-btn--danger {
  background: #C62828;
  color: #fff;
  border-color: #C62828;
}
.bl-btn--danger:hover { background: #B71C1C; }

.bl-btn--ghost {
  background: transparent;
  color: #667085;
  border-color: #EAECF0;
}
.bl-btn--ghost:hover { background: #F9FAFB; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bl-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-mid-grid  { grid-template-columns: 1fr; }
  .bl-receipt-card { position: static; }
}

@media (max-width: 768px) {
  .bl-stat-grid    { grid-template-columns: 1fr 1fr; }
  .bl-form-grid    { grid-template-columns: 1fr; }
  .bl-table-topbar { flex-direction: column; align-items: flex-start; }
  .bl-table-topbar-right { width: 100%; }
  .bl-search-input { width: 100%; }
  .bl-status-filters { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .bl-stat-grid { grid-template-columns: 1fr; }
}

/* ─── Customer detail billing & plan view ───────────────────────────────────── */
.customer-billing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 20px;
}

.billing-section-heading h2 {
  margin: 4px 0 3px;
  color: #172033;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.billing-eyebrow,
.billing-card-label {
  display: block;
  color: #8b98aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.billing-section-heading p {
  margin: 0;
  color: #78869a;
  font-size: 12px;
}

.billing-plan-card,
.billing-services-card,
.billing-profile-card,
.billing-empty-card {
  overflow: hidden;
  border: 1px solid #e4eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 52, 91, 0.05);
}

.billing-plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(105deg, #fbfdff 0%, #fff 68%);
}

.billing-plan-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.billing-plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid #d8e8ff;
  border-radius: 12px;
  background: #edf5ff;
  color: #2876ed;
}

.billing-plan-icon svg { font-size: 21px; }

.billing-plan-identity h3 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 17px;
  font-weight: 800;
}

.billing-plan-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid #edf1f7;
  padding: 16px 22px;
}

.billing-plan-detail,
.billing-profile-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.billing-plan-detail > svg,
.billing-profile-row > svg {
  flex-shrink: 0;
  color: #2876ed;
  font-size: 19px;
}

.billing-plan-detail span,
.billing-profile-row span {
  display: block;
  color: #8b98aa;
  font-size: 11px;
}

.billing-plan-detail strong,
.billing-profile-row strong {
  display: block;
  margin-top: 3px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.billing-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 14px;
}

.billing-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f7;
  padding: 17px 20px;
}

.billing-card-heading h3 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.billing-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 20px 20px;
}

.billing-service-item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  color: #344767;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
}

.billing-service-item > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-service-icon {
  display: inline-flex;
  color: #2876ed;
}

.billing-service-icon svg { font-size: 16px; }

.billing-profile-card {
  padding-bottom: 8px;
}

.billing-profile-row {
  align-items: flex-start;
  padding: 13px 20px;
}

.billing-profile-row + .billing-profile-row {
  border-top: 1px solid #f1f4f8;
}

.billing-muted-card {
  margin: 16px 20px 20px;
  border: 1px dashed #d8e0eb;
  border-radius: 10px;
  color: #78869a;
  font-size: 12px;
  padding: 12px;
}

.billing-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 190px;
  color: #78869a;
  font-size: 12px;
  text-align: center;
}

.billing-empty-card svg {
  margin-bottom: 4px;
  color: #8ca3c2;
  font-size: 30px;
}

.billing-empty-card strong {
  color: #344767;
  font-size: 14px;
}

@media (max-width: 760px) {
  .billing-plan-card-top { align-items: flex-start; flex-direction: column; }
  .billing-plan-details,
  .billing-content-grid,
  .billing-service-grid { grid-template-columns: 1fr; }
}

.wallet-page {
  padding: 12px 0;
}

/* ═══════════════════════════════════════════════════════════════
   Lead CRM Detail Page
═══════════════════════════════════════════════════════════════ */

/* ── Back link ── */
.ld-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  font-family: Inter, sans-serif;
  transition: color 0.15s;
}
.ld-back-btn:hover { color: #0562fb; }

/* ── Stage funnel bar ── */
.ld-funnel-bar {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.ld-funnel-step {
  flex: 1;
  font-family: Inter, sans-serif;
  padding: 10px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  border-right: 1px solid #e5e7eb;
  color: #9ca3af;
  position: relative;
  user-select: none;
}
.ld-funnel-step:last-child { border-right: none; }
.ld-funnel-step:hover { background: rgba(5,98,251,0.06); color: #0562fb; }
.ld-funnel-step:disabled {
  cursor: default;
  opacity: 0.9;
}
.ld-funnel-step:disabled:hover {
  background: inherit;
  color: inherit;
}
.ld-funnel-step.past {
  background: rgba(5,98,251,0.08);
  color: #0562fb;
}
.ld-funnel-step.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #0562fb 100%);
  color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.ld-funnel-step.won {
  background: linear-gradient(135deg, #065f46 0%, #17c964 100%);
  color: #fff;
}
.ld-funnel-step.lost {
  background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%);
  color: #fff;
}
.ld-funnel-step-label { display: block; font-size: 11px; font-weight: 600; }
.ld-funnel-step-sub   { display: block; font-size: 9px; opacity: 0.75; margin-top: 1px; }

/* ── Full-width detail layout ── */
.ld-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.ld-main {
  width: 100%;
  order: 1;
}

/* ── Overview tab content ── */
.ld-overview-content {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  order: 2;
}

.ld-overview-content--hidden {
  display: none;
}

.ld-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

.ld-card-header {
  padding: 14px 18px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ld-card-body { padding: 14px 18px; }

.ld-section-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ld-section-action-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, opacity 0.15s;
}

.ld-section-action-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.ld-section-action-btn--secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4b5563;
}

.ld-section-action-btn--secondary:hover:not(:disabled) {
  border-color: #0562fb;
  color: #0562fb;
}

.ld-section-action-btn--primary {
  border: 1px solid #0562fb;
  background: #0562fb;
  color: #fff;
}

.ld-section-action-btn--primary:hover:not(:disabled) {
  background: var(--ui-color-primary-hover, #034fcf);
}

.ld-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ld-readonly-value {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ld-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.ld-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
}
.ld-info-row:last-child { margin-bottom: 0; }

.ld-info-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  min-width: 72px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ld-info-value {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

/* ── Free trial status ── */
.ld-trial-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ld-trial-plan {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.ld-trial-date {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
}

.ld-trial-status {
  display: inline-flex;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.ld-trial-status--success {
  background: #dcfce7;
  color: #166534;
}

.ld-trial-status--warning {
  background: #fef3c7;
  color: #92400e;
}

.ld-trial-status--danger {
  background: #fee2e2;
  color: #991b1b;
}

.ld-trial-progress {
  height: 6px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.ld-trial-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s ease;
}

.ld-trial-progress-fill--success { background: #22c55e; }
.ld-trial-progress-fill--warning { background: #f59e0b; }
.ld-trial-progress-fill--danger { background: #ef4444; }

.ld-trial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ld-trial-extension-note {
  color: #6b7280;
  font-size: 10.5px;
  line-height: 1.35;
}

.ld-trial-extend-btn {
  flex-shrink: 0;
  padding: 6px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ld-trial-extend-btn:hover:not(:disabled) {
  border-color: #2563eb;
  background: #dbeafe;
}

.ld-trial-extend-btn:disabled {
  cursor: default;
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #9ca3af;
}

/* ── Agent card ── */
.ld-agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.ld-agent-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-reassign-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s;
  font-family: Inter, sans-serif;
  white-space: nowrap;
}
.ld-reassign-btn:hover { border-color: #0562fb; color: #0562fb; }

/* ── Main area ── */
.ld-main { display: flex; flex-direction: column; gap: 16px; }

/* ── Header card ── */
.ld-header-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 20px 24px;
}

.ld-header-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.ld-lead-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-lead-name { font-size: 20px; font-weight: 800; color: #111827; line-height: 1.2; margin: 0; }
.ld-lead-company { font-size: 13px; color: #6b7280; margin: 3px 0 0; }

.ld-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

/* ── Activity log ── */
.ld-activity-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

.ld-activity-toolbar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}

.ld-log-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  font-family: Inter, sans-serif;
  white-space: nowrap;
}
.ld-log-btn:hover  { border-color: #0562fb; color: #0562fb; background: rgba(5,98,251,0.04); }
.ld-log-btn.active { border-color: #0562fb; color: #fff; background: linear-gradient(135deg,#1a3a8f,#0562fb); box-shadow: 0 2px 8px rgba(5,98,251,0.3); }

/* ── Log form ── */
.ld-log-form {
  padding: 16px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ld-log-form textarea,
.ld-log-form input[type="text"],
.ld-log-form input[type="date"],
.ld-log-form select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  font-size: 13px;
  font-family: Inter, sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ld-log-form textarea:focus,
.ld-log-form input:focus,
.ld-log-form select:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.1); }
.ld-log-form textarea { resize: vertical; min-height: 80px; }

.ld-log-form-row { display: flex; gap: 10px; }
.ld-log-form-row > * { flex: 1; }

.ld-submit-btn {
  padding: 9px 20px;
  border-radius: 9px;
  border: none;
  background: var(--ui-color-primary, #0562fb);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: Inter, sans-serif;
  box-shadow: 0 2px 8px rgba(5,98,251,0.3);
  transition: opacity 0.15s;
  align-self: flex-end;
}
.ld-submit-btn:hover { opacity: 0.9; }
.ld-cancel-btn {
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
}

/* ── Timeline ── */
.ld-timeline { padding: 20px 18px; }

.ld-timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 24px;
  position: relative;
}
.ld-timeline-item:last-child { padding-bottom: 0; }

.ld-timeline-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: #f0f2f5;
}
.ld-timeline-item:last-child::before { display: none; }

.ld-timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ld-timeline-body { flex: 1; min-width: 0; }
.ld-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.ld-timeline-title { font-size: 13px; font-weight: 700; color: #111827; }
.ld-timeline-meta  { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.ld-timeline-text  { font-size: 12px; color: #374151; line-height: 1.55; }
.ld-timeline-agent { font-size: 11px; color: #9ca3af; margin-top: 5px; }

/* ── Score badge ── */
.ld-score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Main tab bar ── */
.ld-main-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.ld-main-tabs {
  overflow-x: auto;
}

.ld-main-tab-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.ld-main-tab-btn:hover  { background: #f3f4f6; color: #111827; }
.ld-main-tab-btn:disabled {
  cursor: default;
  opacity: 0.55;
}
.ld-main-tab-btn:disabled:hover { background: transparent; color: #6b7280; }
.ld-main-tab-btn.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #0562fb 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,98,251,0.25);
}

.ld-main-tab-count {
  background: rgba(255,255,255,0.25);
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.ld-main-tab-btn:not(.active) .ld-main-tab-count {
  background: #e5e7eb;
  color: #6b7280;
}

/* ── Store stepper ── */
.ld-stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.15s;
  font-family: Inter, sans-serif;
}
.ld-stepper-btn:hover { border-color: #0562fb; color: #0562fb; }

.ld-stepper-input {
  width: 56px;
  text-align: center;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  font-family: Inter, sans-serif;
  outline: none;
  -moz-appearance: textfield;
}
.ld-stepper-input::-webkit-inner-spin-button,
.ld-stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ld-stepper-input:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }

/* ── Inline date input (Deal Info sidebar) ── */
.ld-date-input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  font-family: Inter, sans-serif;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  flex: 1;
}
.ld-date-input:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }

/* ── Input ── */
.ld-input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  font-size: 13px;
  font-family: Inter, sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ld-input:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }

/* ── Field label ── */
.ld-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

/* ── Link-style button ── */
.ld-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #0562fb;
  cursor: pointer;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ld-link-btn:hover { text-decoration: underline; }

/* ── Operation states ── */
.ld-state-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}
.ld-state-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1;
  padding: 0 1px;
  font-family: Inter, sans-serif;
  opacity: 0.6;
}
.ld-state-remove:hover { opacity: 1; }

.ld-states-picker {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.ld-state-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 0;
}

/* ── Founder block ── */
.ld-founder-block {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.ld-founder-block-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ld-founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ld-field { display: flex; flex-direction: column; }
.ld-field--full { grid-column: 1 / -1; }

.ld-remove-btn {
  background: none;
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  cursor: pointer;
  font-family: Inter, sans-serif;
}
.ld-remove-btn:hover { background: #fef2f2; }

.ld-linkedin-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #0562fb;
  text-decoration: none;
}
.ld-linkedin-link:hover { text-decoration: underline; }

/* ── Product selector ── */
.ld-product-section {
  border-bottom: 1px solid #f3f4f6;
  padding: 14px 18px;
}
.ld-product-section:last-child { border-bottom: none; }

.ld-product-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ld-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.12s;
  margin-bottom: 2px;
}
.ld-product-row:hover { background: #f8fafc; }

.ld-product-check {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #0562fb;
  cursor: pointer;
}

.ld-product-row-info { flex: 1; min-width: 0; }
.ld-product-row-name { display: block; font-size: 13px; font-weight: 600; color: #111827; }
.ld-product-row-desc { display: block; font-size: 11px; color: #9ca3af; }

.ld-product-row-price {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

/* ── Activity summary strip ── */
.ld-activity-summary {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f3f4f6;
}

.ld-activity-summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid #f3f4f6;
}
.ld-activity-summary-item:last-child { border-right: none; }
.ld-activity-summary-item--highlight {
  background: #f8fafc;
}

.ld-activity-summary-icon  { font-size: 16px; line-height: 1; }
.ld-activity-summary-count { font-size: 18px; font-weight: 800; color: #111827; line-height: 1.1; }
.ld-activity-summary-label { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }

.ld-activity-summary-item--highlight .ld-activity-summary-count { color: #0562fb; }
.ld-activity-summary-item--highlight .ld-activity-summary-label { color: #0562fb; }

/* ── Decision maker block ── */
.ld-dm-block {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.ld-dm-block-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* ── Deal value breakdown ── */
.ld-deal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ld-deal-name  { flex: 1; font-size: 13px; color: #374151; font-weight: 500; }
.ld-deal-calc  { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.ld-deal-value { font-size: 13px; font-weight: 700; color: #374151; white-space: nowrap; }

@media (max-width: 720px) {
  .ld-overview-content {
    grid-template-columns: 1fr;
  }

  .ld-main-tab-btn {
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  .ld-header-top {
    flex-wrap: wrap;
  }

  .ld-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   New Lead Page
═══════════════════════════════════════════ */

.nl-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4px 0 60px;
  box-sizing: border-box;
}

/* ── Back + title row ── */
.nl-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.nl-back-btn {
  margin-bottom: 10px;
}

.nl-page-title { font-size: 22px; font-weight: 800; color: #111827; letter-spacing: -0.02em; }
.nl-page-sub   { font-size: 13px; color: #9ca3af; margin-top: 3px; }

/* ── Section cards ── */
.nl-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  overflow: hidden;
}

.nl-card-header {
  padding: 16px 22px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nl-card-body { padding: 20px 22px; }

/* ── Grid ── */
.nl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}
.nl-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.nl-col-full { grid-column: 1 / -1; }

/* ── Field ── */
.nl-field { display: flex; flex-direction: column; gap: 5px; }
.nl-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nl-required { color: #ef4444; }
.nl-error    { font-size: 11px; color: #ef4444; font-weight: 500; margin-top: 2px; }
.nl-field-hint {
  margin-top: 2px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.4;
}

/* ── Stepper ── */
.nl-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nl-stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, sans-serif;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.nl-stepper-btn:hover { border-color: #0562fb; color: #0562fb; }
.nl-stepper-input {
  width: 64px;
  text-align: center;
  padding: 7px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  font-family: Inter, sans-serif;
  outline: none;
  -moz-appearance: textfield;
}
.nl-stepper-input-wrapper {
  width: 74px;
  flex: 0 0 74px;
}
.nl-stepper-input::-webkit-inner-spin-button,
.nl-stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.nl-stepper-input:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }

/* ── States picker ── */
.nl-states-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.nl-state-count {
  font-size: 11px;
  font-weight: 700;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 9px;
  border-radius: 10px;
}
.nl-states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 8px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
}
.nl-state-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 0;
  font-size: 12px;
  color: #374151;
  font-family: Inter, sans-serif;
}

/* ── Footer actions ── */
.nl-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 22px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Premium MUI control treatment ── */
.nl-page {
  max-width: 1520px;
  padding-top: 12px;
}

.nl-back-btn {
  width: fit-content;
}

.nl-page-header {
  align-items: center;
  margin-bottom: 28px;
}
.nl-page-kicker,
.nl-card-eyebrow {
  color: #2876ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
}
.nl-page-title {
  margin: 4px 0 0 !important;
  color: #0f172a !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.1 !important;
}
.nl-page-sub {
  margin-top: 7px;
  color: #64748b;
  font-size: 14px;
}
.nl-header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #dbe6f6;
  border-radius: 999px;
  background: #f8fbff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}
.nl-header-note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.11);
}

.nl-card {
  border: 1px solid #e4eaf3;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(26, 52, 91, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nl-card:hover {
  border-color: #d3e1f5;
  box-shadow: 0 14px 34px rgba(26, 52, 91, 0.075);
}
.nl-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid #edf1f7;
  background: linear-gradient(105deg, #fbfdff 0%, #ffffff 62%);
}
.nl-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d8e8ff;
  border-radius: 12px;
  background: #edf5ff;
  color: #216de3;
  flex: 0 0 auto;
}
.nl-card-eyebrow { margin-bottom: 3px; }
.nl-card-title {
  color: #172033 !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}
.nl-card-description {
  margin-top: 4px;
  color: #78869a;
  font-size: 12px;
  line-height: 1.45;
}
.nl-card-body { padding: 22px; }

.nl-label {
  color: #415168;
  font-size: 12px;
  font-weight: 700;
}
.nl-country-control { width: 100%; }
.nl-country-control .MuiOutlinedInput-root {
  border-radius: 11px;
  background: #ffffff;
  color: #172033;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.nl-country-control .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: #aabbd1;
}
.nl-country-control .MuiOutlinedInput-notchedOutline {
  border-color: #d8e0eb;
}
.nl-country-control .MuiOutlinedInput-root.Mui-focused {
  background: #fbfdff;
  box-shadow: 0 0 0 4px rgba(37, 117, 235, 0.11);
}
.nl-country-control .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #2876ed;
  border-width: 1px;
}
.nl-country-control .MuiInputBase-input,
.nl-country-control .MuiSelect-select {
  min-height: 20px;
  padding: 10px 12px;
  color: #1e293b;
  font-family: "Nunito Sans", Inter, sans-serif;
  font-size: 13px;
}
.nl-country-control .MuiSelect-select { display: flex; align-items: center; }
.nl-country-control .MuiInputBase-input::placeholder { color: #a2afc0; opacity: 1; }
.nl-country-control .MuiSvgIcon-root { color: #7f8da0; }

.nl-stepper {
  gap: 9px;
  min-height: 40px;
}
.nl-stepper-btn {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid #d8e0eb !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  color: #2876ed !important;
}
.nl-stepper-btn:hover {
  border-color: #98bee9 !important;
  background: #edf5ff !important;
}
.nl-stepper-input {
  width: 74px;
  min-height: 38px;
  border-color: #d8e0eb;
  border-radius: 10px;
  background: #fff;
  color: #172033;
}

.nl-footer {
  position: sticky;
  bottom: 14px;
  z-index: 3;
  justify-content: space-between;
  border-color: #dce6f2;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(22, 45, 79, 0.12);
}
.nl-footer-actions {
  display: flex;
  gap: 10px;
}
.nl-footer-hint {
  color: #7a8799;
  font-size: 12px;
  font-weight: 600;
}
.nl-footer-required { color: #ef4444; margin-right: 3px; }
@media (max-width: 1100px) {
  .nl-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nl-page {
    padding-bottom: 32px;
  }

  .nl-grid,
  .nl-grid--3 {
    grid-template-columns: 1fr;
  }

  .nl-card-header,
  .nl-card-heading,
  .nl-card-body,
  .nl-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nl-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .nl-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nl-footer-button {
    width: 100%;
  }

  .nl-header-note { display: none; }
  .nl-page-title { font-size: 26px !important; }
}

/* ═══════════════════════════════════════════════════
   Payment Detail Page
═══════════════════════════════════════════════════ */

.pd-wrap { padding: 4px 0 60px; }

/* ── Back button ── */
.pd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: Inter, sans-serif;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.pd-back-btn:hover { color: #0562fb; }

/* ── Hero card ── */
.pd-hero {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  padding: 24px 28px 20px;
  margin-bottom: 20px;
}

.pd-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pd-hero-ids { display: flex; flex-direction: column; gap: 6px; }

.pd-inv-no {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.pd-txn-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-txn-badge {
  font-size: 12px;
  font-weight: 700;
  color: #0562fb;
  font-family: "Roboto Mono", monospace, Inter, sans-serif;
  background: #EFF6FF;
  padding: 3px 9px;
  border-radius: 6px;
}

.pd-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.pd-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.pd-amount {
  font-size: 32px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pd-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ── Action buttons ── */
.pd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
}

.pd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.15s;
}
.pd-action-btn:hover { background: #f9fafb; border-color: #d1d5db; }

.pd-action-btn.primary {
  background: var(--ui-color-primary, #0562fb);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(5,98,251,0.28);
}
.pd-action-btn.primary:hover { opacity: 0.9; }

.pd-action-btn.danger {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fff5f5;
}
.pd-action-btn.danger:hover { background: #fee2e2; }

/* ── Body layout ── */
.pd-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

/* ── Cards ── */
.pd-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 18px;
  overflow: hidden;
}
.pd-card:last-child { margin-bottom: 0; }

.pd-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pd-card-body { padding: 18px 20px; }

/* ── Detail rows ── */
.pd-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f8f9fa;
}
.pd-detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.pd-detail-label { font-size: 12px; color: #9ca3af; font-weight: 500; }
.pd-detail-value { font-size: 13px; color: #111827; font-weight: 600; text-align: right; max-width: 60%; word-break: break-all; }
.pd-detail-value.mono { font-family: "Roboto Mono", monospace, Inter, sans-serif; font-size: 11.5px; }

/* ── Timeline ── */
.pd-timeline { padding: 4px 0; }

.pd-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}

.pd-tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.pd-tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid;
}

.pd-tl-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  margin-top: 2px;
  background: #e5e7eb;
}

.pd-tl-content { flex: 1; padding-bottom: 6px; }
.pd-tl-event   { font-size: 13px; font-weight: 600; color: #111827; }
.pd-tl-time    { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }

/* ── Refunds section ── */
.pd-refund-empty {
  text-align: center;
  padding: 28px 0;
  color: #9ca3af;
  font-size: 13px;
}
.pd-refund-empty-icon { font-size: 28px; margin-bottom: 8px; }

.pd-refund-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.pd-refund-item:last-child { border-bottom: none; }

.pd-refund-id   { font-size: 12px; font-weight: 700; color: #7C3AED; font-family: "Roboto Mono", monospace, Inter, sans-serif; }
.pd-refund-meta { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.pd-refund-amt  { font-size: 14px; font-weight: 800; color: #7C3AED; }

/* ── Sidebar ── */
.pd-sidebar {}

.pd-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #f3f4f6;
}
.pd-contact-row:last-child { border-bottom: none; }
.pd-contact-icon { font-size: 14px; width: 18px; flex-shrink: 0; }
.pd-contact-text { font-size: 12.5px; color: #374151; font-weight: 500; word-break: break-all; }

.pd-company-name { font-size: 15px; font-weight: 800; color: #111827; margin-bottom: 2px; }
.pd-company-id   { font-size: 11.5px; color: #9ca3af; font-weight: 600; margin-bottom: 14px; }

/* ── Amount breakdown ── */
.pd-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
}
.pd-breakdown-row.total {
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 15px;
  color: #111827;
}
.pd-breakdown-row.refunded { color: #7C3AED; }
.pd-breakdown-label { color: #6b7280; font-weight: 500; }
.pd-breakdown-value { font-weight: 700; color: #374151; }

/* ═══════════════════════════════════════════════════
   Refund Modal
═══════════════════════════════════════════════════ */
.pd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.pd-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
}

.pd-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pd-modal-title { font-size: 17px; font-weight: 800; color: #111827; }
.pd-modal-sub   { font-size: 12px; color: #9ca3af; margin-top: 2px; }

.pd-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #9ca3af;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.pd-modal-close:hover { color: #374151; }

.pd-modal-body { padding: 20px 24px; }

.pd-modal-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

/* Type toggle */
.pd-type-toggle {
  display: flex;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.pd-type-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.15s;
}
.pd-type-btn.active {
  background: linear-gradient(135deg, #1a3a8f 0%, #0562fb 100%);
  color: #fff;
}

.pd-modal-input,
.pd-modal-select,
.pd-modal-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: Inter, sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.pd-modal-input:focus,
.pd-modal-select:focus,
.pd-modal-textarea:focus {
  border-color: #0562fb;
  box-shadow: 0 0 0 3px rgba(5,98,251,0.08);
}
.pd-modal-textarea { resize: vertical; min-height: 80px; margin-bottom: 0; }

.pd-modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 9px;
  font-size: 12px;
  color: #92400E;
  margin-top: 14px;
}

.pd-modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #f3f4f6;
}

.pd-modal-cancel {
  padding: 10px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: background 0.15s;
}
.pd-modal-cancel:hover { background: #f3f4f6; }

.pd-modal-confirm {
  padding: 10px 24px;
  border: none;
  border-radius: 9px;
  background: #7C3AED;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: Inter, sans-serif;
  box-shadow: 0 2px 8px rgba(124,58,237,0.3);
  transition: opacity 0.15s;
}
.pd-modal-confirm:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════════════
   Proforma Invoice Detail Page
═══════════════════════════════════════════════════ */

.prf-wrap { padding: 4px 0 60px; }

/* ── Back ── */
.prf-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: Inter, sans-serif;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.prf-back-btn:hover { color: #0562fb; }

/* ── Hero ── */
.prf-hero {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  padding: 24px 28px 20px;
  margin-bottom: 20px;
}

.prf-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.prf-hero-left { display: flex; flex-direction: column; gap: 8px; }

.prf-number-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.prf-number {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
  font-family: "Roboto Mono", monospace, Inter, sans-serif;
}

.prf-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.prf-status-dot { width: 6px; height: 6px; border-radius: 50%; }

.prf-meta-row { display: flex; gap: 18px; flex-wrap: wrap; }
.prf-meta-item { display: flex; flex-direction: column; gap: 2px; }
.prf-meta-label { font-size: 10.5px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.prf-meta-value { font-size: 13px; font-weight: 600; color: #374151; }

.prf-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.prf-gross { font-size: 34px; font-weight: 900; color: #111827; letter-spacing: -0.03em; line-height: 1; }
.prf-due-label { font-size: 12px; color: #9ca3af; }
.prf-due-value { font-size: 13px; font-weight: 600; color: #374151; }

/* ── Actions ── */
.prf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
}

.prf-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.15s;
}
.prf-action-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.prf-action-btn.primary {
  background: var(--ui-color-primary, #0562fb);
  color: #fff; border: none;
  box-shadow: 0 2px 8px rgba(5,98,251,0.28);
}
.prf-action-btn.primary:hover { opacity: 0.9; }
.prf-action-btn.success {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
  color: #fff; border: none;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.prf-action-btn.success:hover { opacity: 0.9; }

/* ── Body ── */
.prf-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

/* ── Cards ── */
.prf-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 18px;
  overflow: hidden;
}
.prf-card:last-child { margin-bottom: 0; }

.prf-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prf-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.prf-card-body { padding: 0 20px 18px; }

/* ── Line items table ── */
.prf-table { width: 100%; border-collapse: collapse; }
.prf-table thead tr { border-bottom: 1px solid #f3f4f6; }
.prf-table th {
  padding: 12px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}
.prf-table th:not(:first-child) { text-align: right; }
.prf-table td {
  padding: 10px 8px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f8f9fa;
}
.prf-table td:not(:first-child) { text-align: right; font-weight: 500; }
.prf-table tr:last-child td { border-bottom: none; }
.prf-table .prf-desc { font-weight: 600; color: #1a1f36; }

/* ── Totals block ── */
.prf-totals {
  margin: 4px 0 0;
  padding: 16px 8px 4px;
  border-top: 2px solid #f3f4f6;
}
.prf-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.prf-total-row.grand {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}
.prf-total-label { color: #6b7280; font-weight: 500; }
.prf-total-value { font-weight: 700; color: #374151; }

/* ── Payments list ── */
.prf-payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}
.prf-payment-item:last-child { border-bottom: none; }

.prf-pay-left { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.prf-pay-id   { font-size: 12px; font-weight: 700; color: #0562fb; font-family: "Roboto Mono", monospace; }
.prf-pay-meta { font-size: 11.5px; color: #9ca3af; }

.prf-pay-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
}

.prf-pay-amt  { font-size: 14px; font-weight: 800; color: #065F46; white-space: nowrap; }

.prf-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #0562fb;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2px;
}

.prf-empty {
  text-align: center;
  padding: 28px 0;
  color: #9ca3af;
  font-size: 13px;
}
.prf-empty-icon { font-size: 28px; margin-bottom: 8px; }

/* ── Sidebar ── */
.prf-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f8f9fa;
}
.prf-detail-row:last-child { border-bottom: none; }
.prf-detail-label { font-size: 12px; color: #9ca3af; font-weight: 500; }
.prf-detail-value { font-size: 13px; color: #111827; font-weight: 600; text-align: right; max-width: 58%; word-break: break-all; }

.prf-company-name { font-size: 15px; font-weight: 800; color: #111827; margin-bottom: 2px; }
.prf-company-id   { font-size: 11.5px; color: #9ca3af; font-weight: 600; margin-bottom: 14px; }
.prf-contact-row  { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f3f4f6; }
.prf-contact-row:last-child { border-bottom: none; }
.prf-contact-icon { font-size: 14px; width: 18px; flex-shrink: 0; }
.prf-contact-text { font-size: 12.5px; color: #374151; font-weight: 500; word-break: break-all; }

/* ── Balance card ── */
.prf-balance-track {
  background: #f8fafc;
  border-radius: 10px;
  height: 8px;
  margin: 10px 0 6px;
  overflow: hidden;
}
.prf-balance-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}
.prf-balance-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}
.prf-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
}
.prf-balance-row:last-child { border-bottom: none; }
.prf-balance-row.outstanding { font-weight: 800; font-size: 15px; color: #111827; }

/* ═══════════════════════════════════════════════════
   Add Payment Modal
═══════════════════════════════════════════════════ */
.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.pm-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.pm-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 18px 18px 0 0;
}
.pm-modal-title { font-size: 17px; font-weight: 800; color: #111827; }
.pm-modal-sub   { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.pm-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: #9ca3af; padding: 0; line-height: 1; transition: color 0.15s;
}
.pm-modal-close:hover { color: #374151; }

.pm-modal-body { padding: 20px 24px; }

.pm-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
  display: block;
}

/* Mode selector grid */
.pm-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.pm-mode-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  font-family: Inter, sans-serif;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.2;
}
.pm-mode-tile:hover { border-color: #93c5fd; color: #1d4ed8; background: #eff6ff; }
.pm-mode-tile.active {
  border-color: #0562fb;
  background: #EFF6FF;
  color: #1d4ed8;
}
.pm-mode-icon { font-size: 20px; }

.pm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pm-input,
.pm-select,
.pm-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: Inter, sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.pm-input:focus,
.pm-select:focus,
.pm-textarea:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }
.pm-input.error { border-color: #ef4444; }
.pm-textarea { resize: vertical; min-height: 70px; }

/* Attachment zone */
.pm-attachment-zone {
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 14px;
}
.pm-attachment-zone:hover { border-color: #93c5fd; background: #f8faff; }
.pm-attachment-zone.has-file { border-color: #10b981; background: #f0fdf4; border-style: solid; }
.pm-attachment-icon { font-size: 24px; margin-bottom: 6px; }
.pm-attachment-text { font-size: 12.5px; color: #6b7280; font-weight: 500; }
.pm-attachment-text strong { color: #0562fb; }
.pm-attachment-file-name { font-size: 12px; color: #059669; font-weight: 600; margin-top: 4px; }
.pm-attachment-input { display: none; }

.pm-modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #f3f4f6;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 0 0 18px 18px;
}
.pm-cancel {
  padding: 10px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: background 0.15s;
}
.pm-cancel:hover { background: #f3f4f6; }
.pm-confirm {
  padding: 10px 24px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: Inter, sans-serif;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
  transition: opacity 0.15s;
}
.pm-confirm:hover { opacity: 0.9; }
.pm-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════
   Agent Detail Page
═══════════════════════════════════════════════════ */

.ad-wrap { padding: 4px 0 60px; }

.ad-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #6b7280;
  background: none; border: none; cursor: pointer;
  padding: 0; font-family: Inter, sans-serif; margin-bottom: 16px;
  transition: color 0.15s;
}
.ad-back-btn:hover { color: #0562fb; }

/* ── Profile hero ── */
.ad-hero {
  background: linear-gradient(135deg, #1a3a8f 0%, #0562fb 100%);
  border-radius: 16px; padding: 26px 28px 22px; margin-bottom: 20px;
  color: #fff; display: flex; align-items: center; gap: 20px;
}
.ad-hero-avatar {
  width: 66px; height: 66px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  border: 3px solid rgba(255,255,255,0.3); flex-shrink: 0;
}
.ad-hero-info { flex: 1; }
.ad-hero-name  { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.ad-hero-desig { font-size: 13px; opacity: 0.8; margin-top: 3px; }
.ad-hero-meta  { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.ad-hero-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.85; }
.ad-hero-meta-icon { font-size: 14px; }
.ad-hero-rank {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.15); border-radius: 12px; padding: 12px 18px;
}
.ad-hero-rank-num   { font-size: 32px; font-weight: 900; line-height: 1; }
.ad-hero-rank-label { font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── KPI strip ── */
.ad-kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.ad-kpi-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ad-kpi-label { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.ad-kpi-value { font-size: 24px; font-weight: 900; color: #111827; letter-spacing: -0.02em; line-height: 1; }
.ad-kpi-sub   { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.ad-kpi-chip  {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 700;
}

/* ── Cards ── */
.ad-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 18px; overflow: hidden;
}
.ad-card:last-child { margin-bottom: 0; }
.ad-card-header {
  padding: 13px 18px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
}
.ad-card-title { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.07em; }
.ad-card-body  { padding: 14px 18px; }

/* ── Win ratio donut (SVG) ── */
.ad-win-donut-wrap { display: flex; align-items: center; gap: 18px; padding: 8px 0 4px; }
.ad-win-donut { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.ad-win-donut svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.ad-win-donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ad-win-donut-pct   { font-size: 16px; font-weight: 900; color: #111827; }
.ad-win-donut-label { font-size: 9px; color: #9ca3af; font-weight: 600; text-transform: uppercase; }
.ad-win-legend { display: flex; flex-direction: column; gap: 8px; }
.ad-win-leg-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #374151; }
.ad-win-leg-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ad-win-leg-val { font-weight: 700; margin-left: auto; }

/* ── Target vs actuals bars ── */
.ad-period-row { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #f3f4f6; }
.ad-period-row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* ── Contact rows ── */
.ad-contact-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f3f4f6; }
.ad-contact-row:last-child { border-bottom: none; }
.ad-contact-icon { font-size: 14px; width: 18px; flex-shrink: 0; }
.ad-contact-text { font-size: 12.5px; color: #374151; font-weight: 500; }

.ad-stage-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700;
}

/* ── Chart section ── */
.ad-chart-section {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 18px;
}
.ad-chart-header {
  padding: 16px 20px 12px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ad-chart-title  { font-size: 14px; font-weight: 800; color: #111827; }
.ad-chart-sub    { font-size: 12px; color: #9ca3af; }
.ad-chart-legend { display: flex; gap: 16px; }
.ad-chart-leg-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; font-weight: 500; }
.ad-chart-leg-swatch { width: 24px; height: 3px; border-radius: 2px; }
.ad-chart-body   { padding: 16px 20px 20px; }

.ad-period-toggle { display: flex; gap: 4px; }
.ad-period-btn {
  padding: 5px 12px; border-radius: 7px; font-size: 11px; font-weight: 600;
  border: 1px solid #e5e7eb; background: #fff; color: #6b7280;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.15s;
}
.ad-period-btn.active { background: #1a3a8f; color: #fff; border-color: #1a3a8f; }

/* Chart controls use the same tab treatment as the main agent tabs. */
.ad-chart-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  background: #f1f5f9;
}
.ad-chart-control-group {
  display: flex;
  align-items: center;
  gap: 3px;
}
.ad-chart-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}
.ad-chart-tab-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #374151;
}
.ad-chart-tab-btn.active {
  background: #fff;
  color: #0562fb;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(5, 98, 251, 0.08);
}
.ad-chart-control-divider {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: #cbd5e1;
}

/* ══════════════════════════════════════════════════════
   FUNNEL
══════════════════════════════════════════════════════ */

.ad-funnel-section {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 18px; overflow: hidden;
}
.ad-funnel-header {
  padding: 14px 20px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
}
.ad-funnel-title { font-size: 14px; font-weight: 800; color: #111827; }
.ad-funnel-sub   { font-size: 12px; color: #9ca3af; }

.ad-funnel-body {
  padding: 24px 20px 20px;
  display: grid;
  grid-template-columns: 1fr 520px 1fr;
  gap: 0;
  align-items: center;
}

.ad-funnel-labels-left  { display: flex; flex-direction: column; }
.ad-funnel-labels-right { display: flex; flex-direction: column; }

/* Each funnel stage is a trapezoid via clip-path */
.ad-funnel-viz   { display: flex; flex-direction: column; align-items: center; position: relative; }
.ad-funnel-stage-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-funnel-trap {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  transition: opacity 0.15s;
}
.ad-funnel-trap:hover { opacity: 0.9; }

.ad-funnel-stage-label {
  position: relative; z-index: 1;
  font-size: 12.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  pointer-events: none; display: flex; align-items: center; gap: 6px;
}

.ad-funnel-arrow {
  width: 0; height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  margin: 0 auto;
}

.ad-funnel-conv {
  font-size: 11px; font-weight: 700; color: #9ca3af;
  text-align: center; padding: 2px 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.ad-funnel-conv-arrow { font-size: 10px; }

/* Left/right label rows — align to each stage */
.ad-funnel-left-item,
.ad-funnel-right-item {
  height: 52px;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 12px;
}
.ad-funnel-conv-spacer { height: 22px; } /* matches conv row height */
.ad-funnel-item-label { font-size: 12px; font-weight: 700; color: #374151; }
.ad-funnel-item-count { font-size: 11px; color: #6b7280; margin-top: 1px; }
.ad-funnel-item-val   { font-size: 12px; font-weight: 700; color: #065F46; }
.ad-funnel-item-sub   { font-size: 10.5px; color: #9ca3af; margin-top: 1px; }

/* Won outcome */
.ad-funnel-won-wrap {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.ad-funnel-won-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px;
  background: #D1FAE5; border: 1.5px solid #6EE7B7;
}
.ad-funnel-won-icon  { font-size: 22px; }
.ad-funnel-won-label { font-size: 13px; font-weight: 800; color: #065F46; }
.ad-funnel-won-val   { font-size: 13px; font-weight: 700; color: #059669; }

/* ══════════════════════════════════════════════════════
   PIPELINE + CLOSURE SECTION
══════════════════════════════════════════════════════ */

.ad-pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* Pipeline bars */
.ad-pipe-row {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}
.ad-pipe-row:last-child { border-bottom: none; }
.ad-pipe-header { display: flex; align-items: center; justify-content: space-between; }
.ad-pipe-stage  { font-size: 12px; font-weight: 600; color: #374151; }
.ad-pipe-val    { font-size: 12px; font-weight: 800; color: #111827; }
.ad-pipe-meta   { font-size: 10.5px; color: #9ca3af; }
.ad-pipe-bar    { height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.ad-pipe-fill   { height: 100%; border-radius: 3px; }

/* Closure buckets */
.ad-bucket {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.ad-bucket:last-child { margin-bottom: 0; }
.ad-bucket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ad-bucket-label { font-size: 12px; font-weight: 700; color: #374151; }
.ad-bucket-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.ad-bucket-lead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px dashed #f3f4f6; font-size: 12px;
}
.ad-bucket-lead:last-child { border-bottom: none; }
.ad-bucket-co   { color: #374151; font-weight: 600; }
.ad-bucket-date { color: #9ca3af; font-size: 11px; }
.ad-bucket-amt  { color: #059669; font-weight: 700; }

/* ══════════════════════════════════════════════════════
   CALENDAR SECTION
══════════════════════════════════════════════════════ */

.ad-cal-section {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 18px; overflow: hidden;
}
.ad-cal-header {
  padding: 14px 20px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
}
.ad-cal-title { font-size: 14px; font-weight: 800; color: #111827; }
.ad-cal-sub   { font-size: 12px; color: #9ca3af; }

.ad-cal-body {
  display: grid;
  grid-template-columns: 1fr 300px;
}

/* ── Monthly grid ── */
.ad-cal-grid-wrap { padding: 16px 20px; border-right: 1px solid #f3f4f6; }

.ad-cal-dow-row {
  display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px;
}
.ad-cal-dow {
  text-align: center; font-size: 11px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 0;
}

.ad-cal-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.ad-cal-cell {
  border-radius: 9px; min-height: 68px; padding: 5px 6px;
  cursor: pointer; transition: background 0.12s;
  position: relative;
}
.ad-cal-cell:hover { background: #f8faff; }
.ad-cal-cell.empty { cursor: default; }
.ad-cal-cell.today { background: #EFF6FF !important; }
.ad-cal-cell.today .ad-cal-day-num { color: #0562fb; font-weight: 900; }
.ad-cal-cell.selected { background: #EFF6FF; outline: 2px solid #0562fb; outline-offset: -2px; }
.ad-cal-cell.has-event {}

.ad-cal-day-num {
  font-size: 12px; font-weight: 600; color: #374151;
  display: block; margin-bottom: 4px;
}
.ad-cal-dots { display: flex; flex-wrap: wrap; gap: 2px; }
.ad-cal-dot  { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; }

.ad-cal-event-chip {
  font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; display: block; margin-top: 2px; line-height: 1.4;
}

/* ── Side panel ── */
.ad-cal-panel { padding: 16px; overflow-y: auto; max-height: 480px; }
.ad-cal-panel-date {
  font-size: 14px; font-weight: 800; color: #111827; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid #f3f4f6;
}
.ad-cal-panel-today-badge {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 700;
  background: #0562fb; color: #fff; padding: 1px 7px; border-radius: 20px; margin-left: 8px;
}
.ad-cal-event-card {
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border-left: 3px solid;
}
.ad-cal-event-card:last-child { margin-bottom: 0; }
.ad-cal-event-title { font-size: 12.5px; font-weight: 700; color: #111827; line-height: 1.3; }
.ad-cal-event-time  { font-size: 11px; color: #6b7280; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.ad-cal-event-agent { font-size: 10.5px; color: #6b7280; margin-top: 3px; }
.ad-cal-event-company,
.ad-cal-event-notes {
  font-size: 10.5px; color: #6b7280; margin-top: 3px; line-height: 1.35;
  overflow-wrap: anywhere;
}
.ad-cal-event-notes { color: #4b5563; }
.ad-cal-event-status {
  flex-shrink: 0;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.ad-cal-event-type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; margin-top: 5px;
}

.ad-cal-empty {
  text-align: center; padding: 28px 0;
  font-size: 12.5px; color: #9ca3af;
}
.ad-cal-empty-icon { font-size: 26px; margin-bottom: 6px; }

/* ── Upcoming list (below calendar) ── */
.ad-cal-upcoming { padding: 0 20px 20px; border-top: 1px solid #f3f4f6; margin-top: 0; }
.ad-cal-upcoming-title {
  font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 14px 0 10px;
}
.ad-cal-upcoming-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #f8f9fa;
}
.ad-cal-upcoming-row:last-child { border-bottom: none; }
.ad-cal-upcoming-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.ad-cal-upcoming-info  { flex: 1; min-width: 0; }
.ad-cal-upcoming-title2 { font-size: 12.5px; font-weight: 700; color: #111827; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-cal-upcoming-meta  { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.ad-cal-upcoming-date  { font-size: 11px; font-weight: 700; color: #374151; white-space: nowrap; text-align: right; }

/* ── Calendar header action buttons ── */
.ad-gcal-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 9px;
  border: 1.5px solid #d1d5db; background: #fff; color: #374151;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: Inter, sans-serif; transition: all 0.15s;
}
.ad-gcal-btn:hover { border-color: #0562fb; color: #0562fb; background: #eff6ff; }

.ad-new-task-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 9px; border: none;
  background: var(--ui-color-primary, #0562fb); color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: Inter, sans-serif; transition: opacity 0.15s;
}
.ad-new-task-btn:hover { opacity: 0.85; }

/* ── Task action buttons inside event cards ── */
.ad-task-action {
  padding: 4px 10px; border-radius: 6px; border: 1px solid;
  font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: Inter, sans-serif; transition: opacity 0.12s;
}
.ad-task-action.done       { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.ad-task-action.undo       { background: #F3F4F6; color: #6b7280; border-color: #D1D5DB; }
.ad-task-action.reschedule { background: #EDE9FE; color: #5B21B6; border-color: #C4B5FD; }
.ad-task-action:hover      { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════
   MODAL SYSTEM (agent detail — create task / reschedule)
═══════════════════════════════════════════════════════ */

.ad-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ad-modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  animation: adModalIn 0.2s ease;
}
@keyframes adModalIn {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ad-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid #f3f4f6;
}
.ad-modal-title { font-size: 15px; font-weight: 800; color: #111827; }
.ad-modal-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: #f3f4f6; color: #6b7280; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: Inter, sans-serif; transition: background 0.12s;
}
.ad-modal-close:hover { background: #e5e7eb; }
.ad-modal-body   { padding: 18px 22px 8px; }
.ad-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 22px 18px; border-top: 1px solid #f3f4f6; margin-top: 8px;
}

.ad-modal-field  { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.ad-modal-label  { font-size: 10.5px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.05em; }
.ad-modal-input  {
  padding: 9px 12px; border-radius: 9px; border: 1.5px solid #e5e7eb;
  font-size: 13px; font-family: Inter, sans-serif; color: #111827;
  background: #fff; outline: none; transition: border-color 0.15s;
  width: 100%; box-sizing: border-box;
}
.ad-modal-input:focus { border-color: #0562fb; box-shadow: 0 0 0 3px rgba(5,98,251,0.08); }
.ad-modal-time-select { cursor: pointer; }

.ad-modal-type-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.ad-modal-type-tile {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 4px; border-radius: 9px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280; font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.12s;
}
.ad-modal-type-tile:hover  { border-color: #9ca3af; }
.ad-modal-type-tile.active { box-shadow: 0 0 0 2px currentColor; }

.ad-modal-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px;
  border: 1px solid #e5e7eb; background: #fff; color: #374151;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: Inter, sans-serif;
  transition: background 0.15s;
}
.ad-modal-ghost:hover { background: #f9fafb; }
.ad-modal-submit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 9px; border: none;
  background: var(--ui-color-primary, #0562fb); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: Inter, sans-serif;
  transition: opacity 0.15s;
}
.ad-modal-submit:hover    { opacity: 0.88; }
.ad-modal-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Body layout (sidebar + main) ── */
.ad-body {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 18px; align-items: start; margin-bottom: 18px;
}

/* ══════════════════════════════════════════════════════
   TAB BAR
══════════════════════════════════════════════════════ */

.ad-tabs {
  display: flex; gap: 3px;
  background: #f1f5f9; border-radius: 14px; padding: 5px;
  margin-bottom: 20px;
}
.ad-tab-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; border: none; background: transparent;
  font-size: 13px; font-weight: 600; color: #6b7280;
  cursor: pointer; font-family: Inter, sans-serif; transition: all 0.15s;
  white-space: nowrap;
}
.ad-tab-btn:hover { background: rgba(255,255,255,0.7); color: #374151; }
.ad-tab-btn.active {
  background: #fff; color: #0562fb;
  box-shadow: 0 1px 5px rgba(0,0,0,0.09), 0 0 0 1px rgba(5,98,251,0.08);
}
.ad-tab-icon { font-size: 15px; line-height: 1; }
.ad-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  font-size: 10px; font-weight: 700; background: #e5e7eb; color: #6b7280; line-height: 1;
}
.ad-tab-btn.active .ad-tab-badge { background: #dbeafe; color: #1d4ed8; }

/* Make the leads card header wrap gracefully */
.ad-card-header {
  flex-wrap: wrap;
  row-gap: 8px;
}

.src-dummy-img{
    height: 250px;
    width: auto;
}
.billing-address-modal{
    width: 400px !important;
    height:500px !important;
    margin:auto;
    overflow: hidden;
}
.billing-address-input{
    font-size: 14px !important;
}
.billing-address-container{
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    overflow:auto;
    height:100%;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;
}
.billing-address-container::-webkit-scrollbar{
    display: none;
}
.billing-address-container:focus{
    outline: none;
}
/* .billing-details-btn{
    
} */
.bills-details-save{
    color:white !important;
    background-color:rgb(235,168,90) !important;
}
.bills-details-cancel{
    background-color:white !important;
    color:rgb(235,168,90) !important;
    width:80px;
    margin-left: 20px !important;
}
.billing-address-container1{
    display: flex;
}
.billing-address-details{
    font-size: 13px !important;
    color: grey;
}
.bill-margin{
margin-left:40px !important
}
.dot-size-billing{
    font-size: 13px !important;
    margin-left:20px;
}
.add-link-color{
    color:rgb(0,100,254) !important
}
.colu{
    color:rgb(0,100,254) !important;
}
.billing-address-add-select{
    width: 300px !important;
    height: 35px !important;
    border:1px solid grey;
    border-radius:7px
}

.billing-address-add-select:focus{
    outline: none !important;
    border:3px solid rgb(235,168,90);
    box-shadow: 0 0 10px #719ECE;
}


.default-shipping-billing{
    margin-top:0.5rem;
    display:flex;
    flex-direction:column;
    /* align-items: center; */
}

.default-billing{
    margin-top:0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    /* justify-content: space-between; */
}

.default-shipping{
    display: flex;
    /* justify-content: space-between; */
}
.modal-checkbox:checked{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 22 22'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 10l3 3l6-6'/%3e%3c/svg%3e"), linear-gradient(310deg, #141727, #253dd5);
     border-color: #141727;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body{
  background-color: #F8F9FA !important;
}
.login-wrapper-div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  width: 100%;
  /* margin: 20px 10px 20px 0; */
  box-sizing: border-box;
  overflow: hidden;
  /* border: 1px solid black; */
  background: white;
}

.login-video-gif {
  position: absolute;
  height: 350px;
  width: auto;
  bottom: -10px;
  right: 10px;
  z-index: 99;
  /* opacity: 0.5; */
}
.login-input-div {
  height: 90vh;
  width: 60%;
  /* margin: 20px 0 20px 10px; */
  /* border: 1px solid black; */
  padding-top: 50px;
}

.pallet-logo {
  opacity: 1 !important;
  height: 55px;
  width: auto;
  z-index: 999;
}

@media (max-width: 900px) {
  .login-wrapper-div {
    display: block;
    background-color: white;
  }

  .login-input-div {
    padding-top: 70px;
    margin: 0 auto !important;
    width: 85%;
  }
  .login-input-div-wrapper {
    /* border: 1px solid black; */

    width: 100% !important;
  }
}

.login-ui-design-div {
  position: relative;
  height: 96%;
  width: 60%;
  /* background:linear-gradient(45deg,#0029FF,#002affde,#00A4FF,#00a6ffde); */
  background: linear-gradient(312deg, rgb(0, 164, 255) 35%, rgb(0, 35, 255) 100%) !important;
  border-radius: 0 10px 10px 0;
  margin: 20px 10px 20px -100px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: 10px; */
  /* background: transparent !important; */
}
.login-video {
  position: absolute !important;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.pallet-logo {
  height: 200px;
  width: 200px;
}

@media (max-width: 900px) {
  .login-ui-design-div {
    display: none;
    height: 150px;
    width: 96%;
    border-radius: 0 0 10px 10px;
    margin: -25px auto;
    padding-top: 10px;
  }
}

.fruits-text{
    font-size: 0.55em !important;
    font-weight: 400 !important;
    color: #21C0FD !important;
}
.price-prod-box-flex{
    display: flex; 
    align-items: center;
    justify-content: space-between;   
}

.first-price-box{
    border-radius: 7px;
    margin-bottom: 10px;
}

.hidden-input{
    /* border: 1px solid lightgray; */
    border-radius: 7px;
    padding: 5px;
    font-size: 0.7em !important;
    margin-left: 3px ;
}

.badge-box{
    display: flex;
    gap: 7px;
}

.mrp {
    padding-right: 0.5rem;
    text-decoration: line-through;
}

.barcode-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
  }
.main {
  color: white;
  font-size: 14px;
  height: 100% !important;
  min-width: 50px !important;
  width: max-content;
  padding: 10px;
  border: none;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.action {
  color: white;
  font-size: 20px !important;
  height: 100% !important;
  min-width: 50px !important;
  width: max-content;
  padding: 10px;
  border: none;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pending {
  background-color: #1890ff;
  border: 1px solid #1890ff;
}

.rejected {
  background-color: red;
  border: 1px solid red;
}

.approved {
  background-color: green;
  border: 1px solid green;
}

.textarea-input {
  padding: 10px;
}

.approved:hover,
.rejected:hover,
.pending:hover {
  border: 1px solid black;
  transform: scale(1.05);
  transition: all 0.3s;
}

.verified-main {
  font-size: 14px !important;
  border-radius: 8px !important;
  padding: 5px !important;
}

.verified-pending {
  border: 2px solid #1890ff;
  color: #1890ff;
  background-color: #1890ff15;
}
.verified-approved {
  border: 2px solid green;
  background-color: #0080002d;
}
.verified-rejected {
  border: 2px solid red;
  background-color: #ff00002d;
}

.tox-tinymce {
  height: 100% !important;
}

/* .tox-editor-header{
    position: sticky;
    top: 500px !important;
} */

.tox-editor-container  > .tox-sidebar-wrap > .tox-edit-area > .tox-edit-area__iframe{
    overflow-y: scroll !important;
}

.tox-notifications-container{
  display: none !important;
}

 /* #document{
    background-color: yellow !important;
 } */

.date-pick-input {
    margin-right: 5px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid lightgrey;
    padding: 0 10px 0 10px;
}
#__range-picker-container > div {
    left: 300px !important;
}

.date-picker-app-wrapper > .user-placeholder > .default-placeholder{
    /* margin-top: 20px !important; */
    border-radius: 10px !important;
    height: 45px !important;
}
.upload{
    /* width: 100px; */
    position: relative;
    margin: auto;
    margin-bottom: 20px;
  }
  
  .upload img{
    border-radius: 50%;
    border: 2px solid #eaeaea;
  }
  
  .upload .round{
    position: absolute;
    bottom: 0;
    right: 0;
    background: #00B4FF;
    width: 32px;
    height: 32px;
    line-height: 33px;
    text-align: center;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .upload .round input[type = "file"]{
    position: absolute;
    transform: scale(2);
    opacity: 0;
  }

  input[type=file]{
    visibility: hidden;
  }
  
  input[type=file]::-webkit-file-upload-button{
      cursor: pointer;
      visibility: hidden;
  }

  .fa{
    color: #fff !important;
  }

  .body-label{
    font-size: 0.6em !important;
    text-align: center !important;
    color: #00B4FF !important;
  }

  .multiple-box{
    border: 1px dashed lightgray;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
  }

  .images-box{
    border: 1px solid rgb(246, 241, 241);
    display: flex;
    padding: 10px;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .uil{
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 7px;
    margin-left: 10px;
  }
  .del-btn{
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border: 1px solid lightgray;
    border-radius: 30px;
    margin-left: 10px;
    margin-bottom: 10px;
  }
.hja-box {
  display: flex;
  align-items: center;
}

.span-text-info {
  font-size: 0.6em !important;
  font-weight: 600 !important;
}

.info-prod-check {
  width: 20px !important;
  height: 18px !important;
  margin-right: 5px;
}
.add-more-text {
  color: #21b0fd !important;
}

.close-box-icon {
  margin-top: 40px !important;
}

/* .desc-box{
    border: 1px solid lightgray;
    border-radius: 7px;
} */
.product-title-heading {
  margin-bottom: 10px !important;
}

.barcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.image-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.boom-box{
  border: 1px solid lightgray;
  display: flex;
  border-radius: 10px;
}

.boom-input{
  border: none !important;
  width: 85%;
  border-radius: 10px;
}
.boom-input:focus{
  outline: none !important;
}

.boom-soft-select{
  border: none !important;
}
.boom-box{
    border: 1px solid lightgray;
    display: flex;
    border-radius: 10px;
}

.boom-input{
    border: none !important;
    width: 85%;
    border-radius: 10px;
}
.boom-input:focus{
    outline: none !important;
}

.boom-soft-select{
    border: none !important;
}

.spec-text{
    font-size: 0.6em !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.css-y9gdep-MuiInputBase-root{
    display: flex !important;
}
:root {
  /* Canonical application UI contract. Keep new work on these tokens instead
     of introducing page-specific control colours and spacing. */
  --ui-color-primary: #0562fb;
  --ui-color-primary-hover: #034fcf;
  --ui-color-primary-soft: #eff6ff;
  --ui-color-text: #172033;
  --ui-color-muted: #64748b;
  --ui-color-placeholder: #94a3b8;
  --ui-color-border: #d8e0eb;
  --ui-color-border-strong: #b9c5d5;
  --ui-color-surface: #ffffff;
  --ui-color-surface-subtle: #F8F9FA;
  --ui-color-danger: #dc3545;
  --ui-color-success: #16803a;
  --ui-focus-ring: 0 0 0 3px rgba(5, 98, 251, 0.14);
  --ui-radius-sm: 8px;
  --ui-radius-md: 10px;
  --ui-radius-lg: 16px;
  --ui-shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.06);
  --ui-shadow-md: 0 12px 28px rgba(26, 52, 91, 0.08);
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-control-height: 40px;
  --ui-breakpoint-tablet: 768px;
  --ui-breakpoint-desktop: 1200px;
  --primary-background-color: var(--ui-color-primary);
  --base-font-size: 16px;
  --common-box-shadow: var(--ui-shadow-sm);

  /* Calculate root em (rem) based on the base font size */
  font-size: var(--base-font-size); /* This sets the base font size to 16px */

  /* Responsive font sizes in rem */
  --font-size-xsmall: 0.75rem; /* 12px */
  --font-size-small: 0.875rem; /* 14px */
  --font-size-medium: 1rem; /* 16px */
  --font-size-large: 1.25rem; /* 20px */
  --font-size-xlarge: 1.5rem; /* 24px */
}

/* Primary actions across legacy and MUI-based screens use the Leads blue. */
body .create-page .create-coupon-btn,
body .coupon-drawer .action-primary {
  background: var(--ui-color-primary, #0562fb) !important;
}

body .create-page .create-coupon-btn {
  box-shadow: 0 8px 18px rgba(5, 98, 251, 0.2) !important;
}

::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar-track {
  display: none;
}

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

* {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role='button']:focus-visible {
  outline: none;
  box-shadow: var(--ui-focus-ring);
}

.ui-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  :root {
    --ui-control-height: 44px;
  }
}

/* Common font sizes */

.text-xlarge {
  font-size: var(--font-size-xlarge);
}
.text-large {
  font-size: var(--font-size-large);
}

.text-medium {
  font-size: var(--font-size-medium);
}

.text-small {
  font-size: var(--font-size-small);
}

.text-xsmall {
  font-size: var(--font-size-xsmall);
}

/* Responsiveness Font SIzes*/

/* :root:{
  
} */

/*Other Common Css  */

.soft-select__menu-portal {
  z-index: 10001 !important;
}

.soft-select__option {
  padding: 10px !important;
}

.soft-select__value-container {
  overflow-x: scroll;
}

.soft-select__multi-value {
  min-width: max-content !important;
}

.soft-select__indicator {
  padding: 0.2rem !important;
}

.additional-details-main-div {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.additional-details-card {
  /* width: 100%; */
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.additional-detail-value {
  /* bold */
  font-weight: 500;
  font-size: 15px !important;
}

table {
    width: 100%;
    margin-top: 10px;
    border-top: none;
    /* border: 1px solid red !important; */
    border: 1px solid lightgray;
}

th,
td {
    /* text-align: left !important; */
    /* margin-left: 15px !important; */
    text-align: center;
    /* border: 1px solid lightgray; */

}

th {
    background-color: rgb(235, 235, 235);
}

/* td{
    font-size: 0.9em !important;
    font-weight: 400 !important;
} */

.th-text {
    text-transform: capitalize;
    font-size: 0.65em !important;
    font-weight: 500 !important;
    color: #000;
    /* border: 1px solid lightgrey; */
    padding: 5px !important;

}

.td-text {
    display: flex !important;
    gap: 5px;
    align-items: center;
    border: 1px solid lightgrey;
}

.small-table-text {
    font-size: 0.7em !important;
    margin-left: 5px !important;
    font-weight: 600;
    border: 1px solid lightgrey;
}

.small-table-text-I {
    font-size: 0.7em !important;
    margin-left: 5px !important;
    font-weight: 600;
    width: 60%;
    /* margin: auto; */
    text-align: left;
}

.table-tr {
    border-radius: 7px;

}
.td-text-dis {
    font-size: 1rem !important;
}

.bills-details-top-box {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.st-dot-box-I {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bills-details-typo {
    font-size: 1rem !important;
    font-weight: bold !important;
}

.order-details-top-card {
    padding: 1rem !important;
    width: 100%;
    height: 15rem !important;
}

.order-details-id-copy {
    margin: 0 1rem 0 .5rem !important;
}

.bills-details-createdBy {
    font-size: 0.8rem !important;
}

.bills-details-customerName-val {
    font-size: 1rem !important;
    color: #0562fb !important;
    font-weight: bold !important;

}

.bills-details-customerName {
    font-size: .9rem !important;
    font-weight: bold !important;
    margin-top: 1rem !important;
}

.color-0562fb {
    color: #0562fb !important;
}

.bills-details-tax-invoice {
    font-size: .9rem !important;
    font-weight: bold !important;
}

.bills-details-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;

}

.bills-details-heading {
    margin-bottom: 20px;
}

.bills-details-heading h2 {
    margin: 0;
    font-size: .9rem;

}

.bills-details-heading p {
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.bills-details-order-value {
    font-size: .9rem !important;
    font-weight: 600 !important;

}

.bills-details-order-value-col {
    font-size: .9rem !important;
    font-weight: 500 !important;
}

.bills-details-updates-status {
    display: flex;
    justify-content: space-between;
    align-items: center;

}


.bills-details-date {
    display: flex;
    justify-content: flex-start;
    color: rgba(0, 0, 0, 0.551) !important;
    align-items: center;

}

.bills-details-order-date {
    width: 60%;
    font-size: .9rem !important;
    font-weight: 500;
}

.bills-details-fulfillment {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    color: rgba(0, 0, 0, 0.551) !important;
    width: 60%;
}


.bills-details-fulfillment-box {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem !important;
    align-items: center;

}

.bills-details-address {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
    align-items: center;
}

.bills-details-address-box {
    flex: 1;
    height: 250px;
    padding: 1rem;
}

.bills-details-address-head {
    font-size: 1rem !important;
    font-weight: bold !important;
    margin-bottom: 1.5rem !important;
}

.bills-details-address-text {
    font-size: .9rem !important;
}

.billing-details-base {
    border-right: 4px solid rgba(128, 128, 128, 0.625);
    flex: 1;
    text-align: end;
    margin-bottom: 2rem !important;
}

.billing-details-base-box {
    display: flex;
    border-bottom: 4px solid grey;
}

.bill-details-no-payments {
    font-size: .9rem !important;
}
.serviceability-components-card {
    padding: 1rem;
    margin-bottom: 2rem;
}

.serviceability-delivery-charges {
    min-height: 400px !important;
}

.serviceability-buttons {
    display: flex;
    gap: 1rem;
    justify-content: right;
}

/* Map Container */
.map-container {
    text-align: center;
    width: 100% !important;
}


.map-container button {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;

}

/* Container for Centering */
/* .map-outer-container {
      border: 1px solid blue;
  
    }
     */
/* Container for Fixed Width and Height */
.map-inner-container {
    width: 790px;
    height: 250px;
    border: 1px solid #ccc;
    position: relative;
    margin-top: 2rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin-right: 21.8rem;
}

.gm-svpc {
    display: none !important;
}

/* CSS for autocomplete suggestion list */
.suggestion-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    background-color: white;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1;
    width: 42%;
    background-color: white;
    border-radius: 1px;
    font-size: 1rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    margin-top: 14rem;
}

.suggestion-list li {
    cursor: pointer;
    border-bottom: 1px solid lightblue;
    text-align: left !important;
    padding: 2px;
}

.suggestion-list li:hover {
    background-color: #f2f2f2;
}

.radius-map {
    width: 100% !important;
    display: flex;
    padding: 0;
    margin: 0;
}

.map-input {
    padding: 3px;
    border: 1px solid lightgray;
    border-radius: 7px;
    margin-left: 10px;
}

.map-input:focus {
    outline: none;
}

.map-input::placeholder {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .2rem;
}

.map-input-edit {
    padding: 3px;
    border-radius: 7px;
    margin-left: 10px;
    width: 60%;
    margin-top: -7px;
    font-size: 1rem;
    border: none;
    margin-right: 1rem;
}

.map-input-edit:focus {
    outline: none;
}

.map-input-edit::placeholder {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .2rem;
}

.address-container-box {
    display: flex;
    align-items: center;
}


.address-container-boxI {
    display: flex;
    align-items: center;
    width: 80%;
}


.address-txt {
    margin-top: 7px;
    font-size: .7rem;
    font-weight: 600;
    margin-left: 10px;
    margin-right: 10px;

}

.input-radius-wrapper {
    border: 1px solid lightgray;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    height: 40px;
    border-radius: 7px;
}

.input-radius-wrapper:hover {
    border: 2px solid #0562fb;
}

.input-radius-wrapper-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    margin-left: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-top: .3rem;

}

.map-input-wrapper-radius {
    padding: 1px;
    border-radius: 5px !important;
    border: .5px solid rgba(179, 178, 178, 0.551);
    font-size: 1rem;
    width: 200px !important;
    height: 2.3rem;
}

.map-input-wrapper-radius:focus {
    outline: none !important;
}

.map-input-wrapper-radius-edit {
    border: none !important;
    padding: 1px;
    border-radius: 7px;
    font-size: 1rem;
    width: 50px;
    margin-top: -6px;
}

.map-input-wrapper-radius-edit:focus {
    outline: none !important;
}

.symbol-txt {
    letter-spacing: .1em;
    text-transform: capitalize;
    margin-top: .62rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: .7rem;
    color: #0562fb;
}

.SoftInput {
    width: 80% !important;
    margin-top: 0px !important;
    border-radius: 5px !important;
    border: .5px solid rgba(179, 178, 178, 0.551);

}

.delivery-dest-input-label {
    font-weight: bold !important;
    font-size: 14px !important;
    color: #344767 !important;
    margin-top: .5rem
}

.pincode-suggestion-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem
}

.pincode-suggestion-input {
    width: 30%;
}

.delivery-dest-input {
    border-radius: 5px !important;
    border: .5px solid rgba(179, 178, 178, 0.551);
}

.cancel-cursor {
    margin-top: 1.5rem !important;
}

.map-suggestion-input {
    width: 60%;
    text-align: left;
}

.extra-margin-input {
    margin-top: .75rem !important;
}

.instant-delivery-head,
.delviery-charges-slab {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #344767 !important;
    margin-bottom: .5rem !important;
}

#demo-radio-buttons-group-label,
.input-label-text-cutoff {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #344767 !important;
    margin-top: 1rem !important;
}

.form-control-type-select {
    margin-bottom: .5rem !important;
}

.slotted-delivery-label {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #344767 !important;
    margin-bottom: 1rem !important;
}

.slotted-delivery-day-label {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #344767 !important;
}

.pickup-details-field {
    flex: 1 !important;

}

.pickup-details-input-field {
    height: 35px !important;
    border-radius: 5px !important;
    border: .5px solid rgba(179, 178, 178, 0.551);
}

.location-address-input {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem !important;
    width: 100% !important;

}

.location-address-label {
    font-weight: bold !important;
    font-size: 14px !important;
    color: #344767;
    min-width: 150px !important;
}

.slotted-delivery-input {
    height: 35px !important;
    border-radius: 5px !important;
    border: .5px solid rgba(179, 178, 178, 0.551);
}

.extra-input-width {
    min-width: 200px !important;
}

.slotted-delivery-delete-btn {
    margin: 25px 0px 0px 10px !important;
    border-radius: 50% !important;
    background-color: #007bff !important;
    padding: 5px !important;
    color: white !important;

}
.serviceability-type-card {
    padding: 1rem !important;
    margin-bottom: 2rem !important;
}

.serviceability-main-head {
    font-weight: bold !important;
    font-size: 1.2rem !important;
    color: #344767;
    margin: 1rem 0 !important;
}
.wave-img-bg{
    background: rgba(49, 170, 59, 0.364) !important;
}

.wave-card-details{
 height: 250px !important;
}

.wave-card-arrow{
    position: absolute !important; 
    bottom: 0 !important;
    right: 0 !important;
    margin-bottom: 30px !important;
    margin-right: 20px !important;

}
.task-header {
  margin-top: 16px;
  padding: 5px;
}
.task-content {
  gap: 8px !important;
}
.task-icon-color {
  color: #5856d6 !important;
  fill: #5856d6;
  border: none !important;
}

.comment-main-component {
  margin-top: 10px;
  margin-bottom: 10px;
}

.comments-main-container {
  max-height: 200px;
  overflow-y: scroll;
  padding-bottom: 2px;
}

.comments-main-container::-webkit-scrollbar {
  display: none;
}

.comment-user-info {
  display: flex;
  align-items: flex-start;
  /* gap: -5px; */
}

.comment-user-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
}

.comment-username {
  font-size: var(--font-size-sm);
  font-weight: bold;
}

.comment-date-desc {
  font-size: var(--font-size-xs);
}

.comment-user-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.comment-input__input {
  width: 100%;
  flex: 1;
  /* background-color: #eeeeee; */
  border-radius: 24px;
  box-shadow: 0px 2px 10px rgba(3, 3, 3, 0.1);
  border: none !important;
  outline: none !important;
  padding-left: 20px;
  font-size: 15px !important;
  text-align: left;
  line-height: 30px;
  /* font-family: sans-serif; */
}
.comment-input__input::placeholder {
  font-size: var(--font-size-sm);
  padding: 1px;
}
.comment-input__suggestions__list {
  font-size: small;
  position: absolute;
  bottom: 100%;
  transform: translateY(-8px);
  background-color: white;
  z-index: 1000;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.comment-input__suggestions__item {
  padding-left: 8px;
}
.mention > ul {
  padding: 10px;
  font-size: 15px;
  border-radius: 12px;
  color: grey;
}
.comment-date-desc {
  margin-top: -8px;
}
.comment-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.comment-user-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
}
.commentLoader {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comment-send-icon {
  cursor: pointer;
  color: #0562fb !important;
  height: 20px !important;
  width: 20px !important;
}
@media only screen and (max-width: 600px) {
  .comment-main-component {
    display: flex;
    padding: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    border-radius: 0.5rem;
    background: var(--Surface-G0, #f5f5f5);
    box-shadow: none;
    margin-top: 0px;
    width: 100%;
  }

  .comments-main-div {
    display: flex;
    height: 6rem;
    padding: 0.75rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 0.5rem;
    background: var(--Surface-White, #fefefe);
    height: auto;
  }

  .comment-username {
    color: var(--Surface-Black, #0b0b0b);
    font-size: var(--text-0_75rem, 0.75rem);
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 0.75rem */
  }

  .comment-date-desc {
    color: var(--Surface-G4, #6b6b6b);
    font-size: var(--text-0_75rem, 0.75rem);
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 0.975rem */
  }

  .comment-input {
    display: flex;
    padding: 0.5rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 0.125rem;
    background: var(--Surface-G1, #e6e6e6);
    font-size: var(--text-0_75rem, 0.75rem);
    width: 100%;
  }

  .comment-input::placeholder {
    color: var(--Surface-G5, #333);
    font-size: var(--text-0_75rem, 0.75rem);
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 0.75rem */
    height: auto;
  }
  .comments-title {
    /* color: var(--Surface-Black, #0b0b0b); */
    color: #505050;
    font-size: var(--text-1rem, 1rem);
    font-style: normal;
    font-weight: 500;
    padding: 4px;
    margin-bottom: 1px;
    line-height: 130%; /* 1.3rem */
    width: 20%;
  }
}

input[type="file"].override-visibility {
  visibility: visible !important;
}

.comment-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.project-comment-username {
  color: #505050;
  font-weight: 600;
  font-size: 14px;
}
.project-image-container {
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  margin-top: 3px;
  position: absolute;
  right: 10px;
}
.comment-user-names {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  padding: 1px;
  width: 100%;
}
.project-comment-info {
  margin: 4px;
  display: flex;
}
.project-data-desc {
  color: #505050;
  font-weight: 300;
}
.icon-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem;
}
.comment-left {
  text-align: left;
  background-color: #f0f0f0;
  border-radius: 8px;
  margin: 5px 50px 5px 0;
  padding: 10px;
  width: 50%;
  gap: 4px;
}

.comment-right {
  /* text-align: right; */
  background-color: #d1f7c4;
  border-radius: 8px;
  margin: 5px 0 5px 50px;
  padding: 10px;
  width: 50%;
  float: right;
}
.video_new_tab {
  display: block;
  text-align: center;
  margin-top: 5px;
  text-decoration: none;
  color: #505050;
  font-size: 12px;
}
.btn-comment {
  width: 50px !important;
  height: 30px !important;
  background-color: transparent !important;
  color: #007aff !important;
}
.comment-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
}
.pagination-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.button-refresh {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 8px;
}
.format-time {
  color: rgb(80, 80, 80);
  font-weight: 600;
  font-size: 9px;
  margin-top: 12px;
  display: flex;
  align-self: flex-end;
  /* position: absolute;
  bottom: 0px;
  left: 10px; */
}

/* ─── Task / Issue Details Page ─────────────────────────────────────────────── */

/* ── Hero header ─────────────────────────────────────────── */
.td-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(135deg, #1a3a8f 0%, #2d5be3 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(26, 58, 143, 0.25);
  flex-wrap: wrap;
  gap: 16px;
}
.td-hero__left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.td-hero__icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.td-hero__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.25;
  word-break: break-word;
}
.td-hero__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.td-hero__meta-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.td-hero__meta-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}
.td-hero__id-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: monospace;
}
.td-hero__id-btn:hover { background: rgba(255, 255, 255, 0.22); }
.td-hero__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.td-hero__edit-btn {
  height: 36px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.td-hero__edit-btn:hover { background: rgba(255, 255, 255, 0.26); }

/* ── Meta card ───────────────────────────────────────────── */
.td-meta-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #EAECF0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.td-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px 24px;
  margin-bottom: 16px;
}
.td-meta-field { display: flex; flex-direction: column; gap: 4px; }
.td-meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
}
.td-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: #344767;
}

/* Info pills row */
.td-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #F2F4F7;
}
.td-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F9FAFB;
  border: 1px solid #EAECF0;
  border-radius: 8px;
  padding: 5px 12px;
}
.td-info-pill__label {
  font-size: 10px;
  color: #667085;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.td-info-pill__sep { color: #D0D5DD; font-size: 12px; }
.td-info-pill__value {
  font-size: 12px;
  color: #344767;
  font-weight: 500;
}

/* ── Section cards ───────────────────────────────────────── */
.td-section-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #EAECF0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  margin-bottom: 16px;
}
.td-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid #F2F4F7;
  background: #F9FAFB;
}
.td-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #344767;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.td-section-action-btn {
  height: 30px;
  padding: 0 12px;
  background: linear-gradient(135deg, #1a3a8f, #2d5be3);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.td-section-action-btn:hover { opacity: 0.85; }
.td-section-body { padding: 16px 20px; }

/* ── Summary ─────────────────────────────────────────────── */
.td-summary-goal { margin-bottom: 16px; }
.td-summary-text {
  margin: 6px 0 0;
  font-size: 13px;
  color: #344767;
  line-height: 1.6;
}
.td-attachments-section { margin-top: 8px; }
.td-attachment-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F9FAFB;
  border: 1px solid #EAECF0;
  border-radius: 8px;
  padding: 7px 12px;
  text-decoration: none;
  color: #344767;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s;
}
.td-attachment-file:hover { background: #EEF4FF; color: #1a3a8f; }

/* ── Linked issues ───────────────────────────────────────── */
.td-linked-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #F2F4F7;
  font-size: 13px;
}
.td-linked-row:last-child { border-bottom: none; }
.td-linked-id {
  font-size: 11px;
  font-weight: 700;
  color: #1a3a8f;
  background: #EEF4FF;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.td-linked-name {
  flex: 1;
  color: #344767;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.td-linked-by {
  font-size: 12px;
  color: #667085;
  white-space: nowrap;
}
.td-empty-state {
  text-align: center;
  color: #98a2b3;
  font-size: 13px;
  padding: 28px 0;
}

/* ── Modal upgrade ───────────────────────────────────────── */
.td-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  max-width: 95vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.td-modal-title {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: #344767;
  margin: 0 0 4px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .td-hero { padding: 18px 20px; }
  .td-hero__title { font-size: 18px; }
  .td-meta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .td-hero { flex-direction: column; }
  .td-meta-grid { grid-template-columns: 1fr 1fr; }
}

.timeline-info {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  /* padding: 0.75rem; */
  width: 100%;
  gap: 0.375rem;
  align-self: stretch;
  border-radius: 0.5rem;
  background: var(--Surface-White, #fefefe);
}

/* .timeline-name{
      margin-bottom: 8px !important;
  } */

.timeline-info-userDesc {
  font-size: var(--font-size-2xs);
  line-height: 1.3em;
  white-space: normal;
  word-break: break-word;
}

.timeline-info-date {
  font-size: var(--font-size-2xs);
  line-height: 1.3em;
}

.timeline-icon {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 2px;
  width: max-content;
}

.timeline-icon > span {
  font-size: var(--font-size-xs);
  font-weight: bold;
  /* line-height: 1em; */
  /* margin-bottom: 0px; */
}

.timeline-main-container {
  position: relative;
  overflow: hidden;
  height: auto;
  padding-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.side-line-timeline {
  height: 61px;
  width: 0px;
  border: 1px solid lightgray;
  position: absolute;
  left: 11.5px;
  top: 24px;
}

.time-icon-div > svg {
  height: 1.5rem;
  width: 1.5rem;
}

.timeline-info-view {
  border: 1px solid #0562fb;
  border-radius: 5px;
  font-size: 12px;
  padding: 0px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.time-icon-div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-circularprogress {
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.timeline-name {
  font-size: var(--font-size-xs);
  font-weight: bold;
}

.no-timeline-data {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.timeline-main-container::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 11px;
  width: 2px;
  height: 82%;
  background-color: lightgray;
}

.timeline-main-container:last-child::after {
  display: none;
}

@media only screen and (max-width: 600px) {
  .timeline-info-userDesc {
    font-size: var(--font-size-xs);
  }

  .timeline-info-date {
    font-size: var(--font-size-2xs);
  }

  .timeline-icon > span {
    font-size: var(--font-size-sm);
  }
}

.menu .MuiMenuItem-root {
  padding: 24px !important;
}

/* import poppins font */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap'); */
:root {
  --font-ui: "Nunito Sans", sans-serif;
  --font-heading: "Epilogue", sans-serif;
}

body {
  font-family: var(--font-ui);
  margin: 0;
  color: var(--ui-color-text, #172033);
  background: var(--ui-color-surface-subtle, #f8f9fa);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Shared application shell defaults. Domain screens can add layout-specific
   presentation, but controls and page states should use the UI kit tokens. */
#app {
  min-height: 100vh;
}

a {
  color: var(--ui-color-primary, #0562fb);
}

/* hides the sort icon from mui datagrid */
.MuiDataGrid-main .MuiDataGrid-iconButtonContainer {
  display: none !important;
}

/* hides the menu icon from mui datagrid */
/* .MuiDataGrid-main .css-1xwgyfb-MuiSvgIcon-root {
  display: none !important;
} */
.MuiDataGrid-menuIcon {
  display: none !important;
}

.softbox-box-shadow {
  box-shadow: none !important;
}

/* Keep primary surfaces flat while retaining their existing content and layout. */
.MuiCard-root,
.MuiTableContainer-root,
[class~="card"],
[class*="-card"],
[class*="Card"],
[class~="container"],
[class*="-container"],
[class*="Container"],
[class*="_container"],
[class*="_Container"] {
  box-shadow: none !important;
}

.MuiSnackbar-root {
  z-index: 121000 !important;
}

/* datagrid table header font  */
/* .css-z8fhq1-MuiDataGrid-columnHeaders {
  font-family: 'Poppins', 'Roboto', 'Helvetica', 'Arial', 'sans-serif' !important;
} */

/* datagrid table data font  */
/* .css-vflpy4-MuiDataGrid-root .MuiDataGrid-cell {
  font-family: 'Poppins', 'Roboto', 'Helvetica', 'Arial', 'sans-serif' !important;
} */

/* search bar and filters container, colors */
:root {
  --search-bar-filter-container-bg: #0562fb;
  --bg-button: #0562fb;
  --blue: #0562fb;
  --light-blue: #5271ff;
  --main-bg-white: white;
  --main-boxshadow-xl: none;
  --border-radius-xl: 1.5rem;
  --main-app-color: #0562fb;
  /* 24px */
  --font-size-3xl: 2rem;
  --font-size-2xl: 1.75rem;
  --font-size-xl: 1.5rem;
  --font-size-lg: 1.25rem;
  --font-size-md: 1.125rem;
  --font-size-sm: 1rem;
  --font-size-xs: 0.875rem;
  --font-size-2xs: 0.75rem;
  --font-size-3xs: 0.6rem;

  /* Font Sizes */

  --text-0_125rem: 0.125rem;
  --text-0_25rem: 0.25rem;
  --text-0_375rem: 0.375rem;
  --text-0_5rem: 0.5rem;
  --text-0_625rem: 0.625rem;
  --text-0_75rem: 0.75rem;
  --text-1rem: 1rem;
  --text-1_25rem: 1.25rem;
  --text-1_5rem: 1.5rem;
  --text-2rem: 2rem;
  --text-2_5rem: 2.5rem;
  --text-3rem: 3rem;
  --text-4rem: 4rem;
  --text-5rem: 5rem;
  --text-6_25rem: 6.25rem;
  --text-8rem: 8rem;

  /* New Mobile Ui Colors */

  /* White || Gray || Black */
  --Surface-White: #fefefe;
  --Surface-G0: #f5f5f5;
  --Surface-G1: #e6e6e6;
  --Surface-G2: #bdbdbd;
  --Surface-G3: #949494;
  --Surface-G4: #6b6b6b;
  --Surface-G5: #333333;
  --Surface-Black: #0b0b0b;

  /* Blue */
  --Blue-B0: #0860e6;
  --Blue-B1: #2a71ff;
  --Blue-B2: #67b5dc;
  --Blue-B3: #bfeaff;
  --Blue-B4: #d9f2ff;

  /* Green */
  --Green-G0: #0b742c;
  --Green-G1: #219647;
  --Green-G2: #87c55d;
  --Green-G3: #d9ffbf;
  --Green-G4: #e8ffd8;

  /* Yellow */
  --Yellow-Solid: #fee00e;
  --Yellow-Light: #fff5b2;

  /* Red */
  --Red-Solid: #e90000;
  --Red-Light: #ffe9e9;

  /* Sand */
  --Sand-Solid: #eba85a;
  --Sand-Light: #f2deac;
}

/* main div  */
.search-bar-filter-and-table-container {
  border-radius: 10px !important;
  /* background-color: #fff !important; */
  border: 1px solid #e6e6e6 !important;
  box-shadow: none !important;
}

/* header  */
.search-bar-filter-container {
  padding: 15px !important;
  background-color: var(--search-bar-filter-container-bg) !important;
  border-top-right-radius: 10px !important;
  border-top-left-radius: 10px !important;
}

/* BUTTON COLORS CSS */

.contained-softbutton {
  background-color: #0562fb !important;
  color: white !important;
}

.outlined-softbutton {
  background-color: white !important;
  border: 1px solid #0562fb !important;
  color: #0562fb !important;
}

/* Global component css */

.component-bg-br-sh-p {
  background-color: var(--main-bg-white);
  border: 1px solid #e6e6e6;
  box-shadow: none;
  border-radius: var(--border-radius-xl);
  padding: 20px;
  position: relative;
}

.comp-title {
  font-size: var(--font-size-md);
  font-weight: bold;
}

.comp-date {
  font-size: var(--font-size-2xs);
}

/* Common Css for new Mobile screens  */

.listing-card-main-bg {
  display: flex;
  padding: 0.75rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
  border-radius: 0.5rem;
  border: 1px solid var(--Surface-G1, #e6e6e6);
  background: var(--Surface-White, #fefefe);
  width: 100%;
  justify-content: space-between;
}

.listing-card-bg-secondary {
  display: flex;
  padding: var(--text-0_75rem, 0.75rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  align-self: stretch;
  border-radius: 0.5rem;
  background: var(--Surface-White, #fefefe);
  width: 100%;
}

.stack-row-center-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-cloumn-start {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.width-100 {
  width: 100%;
}

.flex-colum-align-start {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.flex-colum-align-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}
.flex-colum-align-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.flex-colum-align-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.horizontal-line-app-ros {
  height: 0rem;
  align-self: stretch;
  stroke-width: 1px;
  stroke: var(--Surface-G1, #e6e6e6);
  margin: 0rem;
}

.icon-circular-loader-ros-app {
  height: 1rem !important;
  width: 1rem !important;
}

.main-padding-wrapper {
  display: flex;
  padding: 1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  align-self: stretch;
}

.stack-row-center-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.border-right {
  border-right: 1px solid var(--Surface-G1, #e6e6e6);
}

@media only screen and (max-width: 576px) {
  #app {
    height: 100%;
  }
  .search-bar-filter-and-table-container {
    margin-top: 10px;
  }
  .scroll-container::-webkit-scrollbar {
    display: none;
  }

  body {
    font-family: "Nunito Sans", sans-serif !important;
  }
}

.MuiButtonBase-root.MuiMenuItem-root {
  font-size: small;
  font-weight: bolder !important;
  color: #1b1919 !important;
  min-height: "20px" !important;
  padding: 0 !important;
}

.product-by {
  display: "flex";
  flex-direction: column;
}

.sale-price {
  margin-top: 1rem;
  display: "flex";
  flex-direction: column;
}

.category {
  margin-top: 1rem;
  display: "flex";
  flex-direction: column;
}

.manufacturers {
  margin-top: 1rem;
  display: "flex";
  flex-direction: column;
}

.product {
  margin-top: 1rem;
  display: "flex";
  flex-direction: column;
}

.cancel-save-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 2rem;
}

.header-bulk-price-edit {
  display: flex;
  /* justify-content: flex-end; */
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* padding-right: 1rem; */
  /* padding-left: 1rem; */
}

.filter {
  display: flex;
  flex-wrap: wrap;
  /* margin-top: 1rem; */
  gap: 1rem;
  flex: 0.9;
}

.filter-product {
  /* margin-right: 1rem; */
  width: 10rem;
}

.filter-edited-by {
  width: 10rem;
}

.start-date {
  /* margin-left: 1rem; */
  width: 10rem;
}
.end-date {
  /* margin-left: 1rem; */
  width: 10rem;
}

.clear-filter {
  /* margin-left: 1rem; */
  position: relative;
  bottom: 0.2rem;
}

.header-new-btn {
  /* background-color: blue !important; */
  /* flex: 0.1; */
}

/* .header-new-btn {
  position: absolute;
  top: 18px;
  right: 8px;
} */

.criteria-col {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.criteria-col::-webkit-scrollbar {
  display: none;
}

.bpe-btn {
  /* margin-top: 11px !important; */
}

.btnInsideTable {
  padding: 0px 15px !important;
  min-height: 2rem !important;
  width: 100% !important;
}

.editDeleteButton {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: 2rem !important;
  width: 100% !important;
}

@media only screen and (max-width: 767px) {
  .modal-box-bulk {
    width: 90vw !important;
  }
  .header-new-btn {
    margin-top: 1rem;
  }
  .end-date {
    margin-top: 1rem;
  }
  .clear-filter {
    margin-top: 0.5rem;
  }
}

@media only screen and (max-width: 602px) {
  .start-date {
    margin-top: 1rem;
  }
  .end-date {
    margin-top: 1rem;
  }
  .clear-filter {
    margin-top: 1rem;
  }
  .header-new-btn {
    margin-top: 1rem;
  }
}

@media only screen and (max-width: 885px) {
  .clear-filter-btn {
    margin-top: 0.5rem !important;
  }
}

.scan-product-main-box {
  display: flex;
  flex-direction: row;
  border: 1px solid rgb(145, 141, 141) !important;
  border-radius: 15px;
  padding: 5px;
  box-shadow: none !important;
  /* height: 90px;
  max-height: 90px; 
  overflow: auto; */
}

.scan-prod-seconday {
  padding: 5px 15px 5px 15px;
  width: 95% !important;
  margin: auto;
}

.common-display-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.common-display-flex-1 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.main-heading-products {
  color: #030303;
  font-size: 1.2rem !important;
  font-weight: 600;
  line-height: 32px;
}
.main-header-icon {
  color: #367df3;
  font-size: 20px;
  width: 22px;
  height: 34px;
}
.main-heading-products-2 {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}
.main-product-description {
  /* margin-top: 10px; */
  /* left: 231px; */
  width: 100%;
  /* height: 653px; */
  background-color: rgba(255, 255, 255, 0);
  border-radius: 24px;
  box-shadow: 0px 2px 10px rgba(3, 3, 3, 0.1);
}


.overlay-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* background-color: rgba(0, 0, 0, 0.5);  */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001; 
}

.content-blur-spin {
  filter: blur(1px) !important; 
  pointer-events: none;
  user-select: none; 
}

.spinner-container {
  z-index: 10002;
}
.title-heading-products {
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
.desc-warning-icon {
  color: #ff9500;
  font-size: 20px;
  width: 22px;
  height: 34px;
}
.duplicate-warning-msg {
  color: #000000;
  font-size: 12px;
  font-weight: 400;
  line-height: 21px;
}

.duplicate-category-msg {
  color: #b7bdc9;
  font-size: 11px;
  font-weight: 500;
  line-height: 21px;
  font-style: italic;
  margin-left: 10px;
}

.look-up-btn {
  cursor: pointer;
  width: 120px;
  height: 36px;
  padding: 0px 8px;
  border: 1px solid #367df3;
  box-sizing: border-box;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0);
  color: #367df3;
  font-size: 14px;
  line-height: 24px;
  outline: none;
}
.select-box-category {
  cursor: pointer;
  width: 100%;
  background-color: #ffffff;
  color: #c2c2c2;
  font-size: 14px;
  line-height: 24px;
  outline: none;
}

.select-box-radius {
  border-radius: 8px !important;
}
.checkbox-container {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 20px;
  height: 20px;
  opacity: 1;
  pointer-events: auto;
  color: rgba(54, 125, 243, 1);
  background-color: rgba(255, 255, 255, 1);
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(54, 125, 243, 1);
}
.checkbox-ticked {
  display: none;
  transition: left 0.3s ease;
  z-index: 1;
}
.input-checbox-products {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.radio-checbox-products {
  width: 15px;
  height: 15px;
  background-color: #007bff; 
  border-color: #007bff; 
}
.checkbox-products {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #007bff !important;
  border-color: #007bff !important; 
}
.input-label-text {
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 21px !important;
}
.add-more-products{
    color: #007bff !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    cursor: pointer;
}
.inputLabel-style {
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  color: #344767 !important;
  line-height: 1.625;
  letter-spacing: 0.00938em;
}
.inputLabel-style-head {
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: #344767 !important;
  line-height: 1.625;
  letter-spacing: 0.00938em;
}

.duplicateProduct-cancel {
  background-color: #fff !important;
  border: 1px solid #0562fb !important;
  color: #0562fb !important;
  cursor: pointer;
  margin-right: 20px;
  height: 45px;
  font-size: 12px !important;
}

.variant-name-css {
  font-weight: 200 !important;
  font-size: 0.7rem !important;
  color: #344767 !important;
  line-height: 1.625;
  letter-spacing: 0.00938em;
}

.dropdown {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .dropdown {
    width: 55%;
  }
}

@media (min-width: 1024px) {
  .dropdown {
    width: 40%;
  }
}

/* .dashboard-org-softselect {
  max-width: 20rem;
  margin-top: 10px;
  margin-left: auto;
} */

