/* .x-top-product-item{
  transition: all .2s ease;
}
.x-top-product-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07) !important;
} */

.x-dash-page {
  padding: 40px;
  display: grid;
  gap: 18px;
}

.x-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 34, 71, .92), rgba(8, 18, 46, .92));
  border: 1px solid rgba(255, 255, 255, .06);
}

.x-dash-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #7fb2ff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.x-dash-hero__title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.x-dash-hero__subtitle {
  margin: 6px 0 0;
  color: #98a9c7;
}

.x-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.x-dash-select {
  min-width: 170px;
  height: 44px;
  border-radius: 14px;
  background: #0b1736;
  border: 1px solid rgba(255, 255, 255, .08);
  color: #dce7ff;
  padding: 0 14px;
}

.x-dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.x-kpi-card {
  border: none;
  text-align: left;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(21, 34, 71, .9), rgba(11, 21, 49, .95));
  border: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
  transition: .2s ease;
}

.x-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.x-kpi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.x-kpi-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.x-kpi-card__label {
  font-size: 13px;
  color: #9bb0d4;
  font-weight: 700;
}

.x-kpi-card__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.x-kpi-card__meta {
  margin-top: 6px;
  font-size: 12px;
  color: #8194b5;
}

.x-dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.x-dash-card {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 31, 67, .9), rgba(9, 19, 47, .95));
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 20px;
}

.x-dash-card--span-12 {
  grid-column: span 12;
}

.x-dash-card--span-7 {
  grid-column: span 7;
}

.x-dash-card--span-5 {
  grid-column: span 5;
}

.x-dash-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.x-dash-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.x-dash-card__subtitle {
  margin: 4px 0 0;
  color: #8ea3c8;
  font-size: 13px;
}

.x-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.x-state-card {
  border: none;
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .05);
  color: #fff;
}

.x-state-card__value {
  font-size: 24px;
  font-weight: 800;
}

.x-state-card__label {
  margin-top: 4px;
  color: #a7b7d3;
  font-size: 13px;
}

.x-smart-pay-box {
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-smart-pay-box__label {
  font-size: 13px;
  color: #9cb0d1;
  font-weight: 700;
}

.x-smart-pay-box__value {
  font-size: 34px;
  font-weight: 800;
  color: #ffb14a;
  margin-top: 4px;
}

.x-smart-pay-box__meta {
  margin-top: 6px;
  color: #90a5c8;
  font-size: 13px;
}

.x-smart-pay-list,
.x-activity-list {
  display: grid;
  gap: 10px;
}

.x-chart-placeholder {
  min-height: 280px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
}

.x-alert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.x-alert-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-alert-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.x-alert-card__title {
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.x-alert-card__text {
  font-size: 13px;
  color: #9ab0d2;
}

.x-cobro-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.x-cobro-alert--warning {
  background: rgba(245, 158, 11, .14);
  color: #f7c46c;
  border: 1px solid rgba(245, 158, 11, .18);
}

@media (max-width: 1400px) {
  .x-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .x-alert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {

  .x-dash-card--span-7,
  .x-dash-card--span-5,
  .x-dash-card--span-12 {
    grid-column: span 12;
  }

  .x-state-grid,
  .x-alert-grid,
  .x-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {

  .x-state-grid,
  .x-alert-grid,
  .x-dash-kpis {
    grid-template-columns: 1fr;
  }
}

.x-dash-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-dash-mini-card__title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.x-dash-mini-card__meta {
  margin-top: 3px;
  font-size: 12px;
  color: #94a7c8;
}

.x-dash-mini-card__right {
  font-size: 18px;
  font-weight: 800;
  color: #ffcf74;
  white-space: nowrap;
}

.x-activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.x-activity-item:last-child {
  border-bottom: none;
}

.x-activity-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  color: #8fb8ff;
  flex: 0 0 38px;
}

.x-activity-item__title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.x-activity-item__text {
  font-size: 13px;
  color: #9ab0d2;
  margin-top: 2px;
}

.x-activity-item__time {
  margin-top: 6px;
  font-size: 12px;
  color: #6f86ad;
}

.x-bars-chart {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 8px 4px;
}

.x-bars-chart__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.x-bars-chart__value {
  font-size: 12px;
  color: #9db2d4;
  font-weight: 700;
}

.x-bars-chart__bar-wrap {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.x-bars-chart__bar {
  width: 100%;
  max-width: 52px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, #4f8cff 0%, #22c55e 100%);
  box-shadow: 0 10px 24px rgba(34, 197, 94, .12);
  transition: .25s ease;
}

.x-bars-chart__bar:hover {
  transform: translateY(-2px);
}

.x-bars-chart__label {
  font-size: 12px;
  font-weight: 700;
  color: #dce7ff;
}











.x-dash-v2 {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.x-dash-v2-hero {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 16px;
}

.x-dash-v2-hero__main,
.x-dash-v2-side-card,
.x-dash-v2-card,
.x-dash-v2-chip-card {
  background: linear-gradient(180deg, rgba(17, 30, 66, .92), rgba(8, 17, 42, .96));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
}

.x-dash-v2-hero__main {
  padding: 26px;
}

.x-dash-v2-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7fb2ff;
  margin-bottom: 8px;
}

.x-dash-v2-hero__title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}

.x-dash-v2-hero__subtitle {
  margin: 8px 0 0;
  color: #93a7ca;
  max-width: 700px;
}

.x-dash-v2-hero__stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.x-dash-v2-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-dash-v2-stat__label {
  display: block;
  font-size: 13px;
  color: #94a9cc;
  margin-bottom: 6px;
}

.x-dash-v2-stat__value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.x-dash-v2-hero__side {
  display: grid;
  gap: 16px;
}

.x-dash-v2-side-card {
  padding: 18px;
}

.x-dash-v2-side-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.x-dash-v2-actions {
  display: grid;
  gap: 10px;
}

.x-dash-v2-alert-list,
.x-dash-v2-list {
  display: grid;
  gap: 10px;
}

.x-dash-v2-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.x-dash-v2-chip-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.x-dash-v2-chip-card span {
  font-size: 13px;
  color: #9cb0d1;
}

.x-dash-v2-chip-card strong {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.x-dash-v2-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.x-dash-v2-card {
  padding: 20px;
}

.x-dash-v2-card--span-8 {
  grid-column: span 8;
}

.x-dash-v2-card--span-6 {
  grid-column: span 6;
}

.x-dash-v2-card--span-4 {
  grid-column: span 4;
}

.x-dash-v2-card__head {
  margin-bottom: 16px;
}

.x-dash-v2-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.x-dash-v2-card__subtitle {
  margin: 4px 0 0;
  color: #8ea3c8;
  font-size: 13px;
}

.x-dash-v2-chart {
  min-height: 300px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
}

.x-dash-v2-states {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.x-dash-v2-state {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-dash-v2-state__value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.x-dash-v2-state__label {
  margin-top: 4px;
  color: #9ab0d2;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .x-dash-v2-hero {
    grid-template-columns: 1fr;
  }

  .x-dash-v2-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {

  .x-dash-v2-card--span-8,
  .x-dash-v2-card--span-6,
  .x-dash-v2-card--span-4 {
    grid-column: span 12;
  }

  .x-dash-v2-hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {

  .x-dash-v2-strip,
  .x-dash-v2-states {
    grid-template-columns: 1fr;
  }
}

.x-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}

.x-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .12),
      transparent);
  animation: xSkeletonMove 1.15s infinite;
}

@keyframes xSkeletonMove {
  100% {
    transform: translateX(100%);
  }
}

.x-chart-skeleton {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 20px;
}

.x-fade-in {
  animation: xFadeIn .25s ease;
}

@keyframes xFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.x-dash-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   HERO
========================= */
.x-dash-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.45fr .95fr;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
}

/* .x-dash-hero--pro {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, .16), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #162236 45%, #1e293b 100%);
  color: #fff;
  box-shadow: 0 20px 45px rgba(2, 6, 23, .22);
  border: 1px solid rgba(255, 255, 255, .08);
} */

.x-dash-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent);
}

.x-dash-hero__left,
.x-dash-hero__right {
  position: relative;
  z-index: 2;
}

.x-dash-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.x-dash-hero__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.x-dash-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  color: #dbeafe;
  margin-bottom: 14px;
}

.x-dash-hero__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
}

.x-dash-hero__subtitle {
  margin: 10px 0 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

.x-dash-hero__insights {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.x-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.x-hero-pill strong {
  color: #fff;
  font-weight: 800;
}

.x-hero-pill--success {
  background: rgba(16, 185, 129, .16);
  color: #d1fae5;
}

.x-hero-pill--warning {
  background: rgba(245, 158, 11, .16);
  color: #fef3c7;
}

.x-hero-pill--info {
  background: rgba(59, 130, 246, .16);
  color: #dbeafe;
}

/* =========================
   TOOLBAR
========================= */
.x-dash-toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.x-dash-select {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  backdrop-filter: blur(8px);
}

.x-dash-select option {
  color: #0f172a;
}

.x-btn {
  min-height: 44px;
  border: none;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: .22s ease;
  text-decoration: none;
}

.x-btn:hover {
  transform: translateY(-1px);
}

.x-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .28);
}

.x-btn-secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .10);
}

.x-btn-light {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.x-btn-sm {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

/* =========================
   PULSE CARD
========================= */
.x-pulse-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.x-pulse-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 8px;
}

.x-pulse-card__value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.x-pulse-card__meta {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================
   STRIP
========================= */
.x-dash-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.x-strip-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: none;
  border-radius: 22px;
  text-align: left;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  border: 1px solid rgba(148, 163, 184, .14);
  transition: .22s ease;
  cursor: pointer;
}

.x-strip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .10);
}

.x-strip-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.x-strip-card__title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.x-strip-card__text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.x-strip-card--warning .x-strip-card__icon {
  background: rgba(245, 158, 11, .14);
  color: #d97706;
}

.x-strip-card--danger .x-strip-card__icon {
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
}

.x-strip-card--info .x-strip-card__icon {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}

.x-strip-card--success .x-strip-card__icon {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

/* =========================
   KPI
========================= */
.x-dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.x-kpi-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  border: 1px solid rgba(148, 163, 184, .16);
  cursor: pointer;
  transition: .22s ease;
  min-height: 168px;
}

.x-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .10);
}

.x-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, .35), transparent 35%);
  pointer-events: none;
}

.x-kpi-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.x-kpi-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.x-kpi-card__label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.x-kpi-card__value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #0f172a;
}

.x-kpi-card__meta {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.x-kpi-card__trend {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.x-kpi-card__trend--up {
  background: rgba(16, 185, 129, .10);
  color: #059669;
}

.x-kpi-card__trend--down {
  background: rgba(239, 68, 68, .10);
  color: #dc2626;
}

.x-kpi-card--blue {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.x-kpi-card--blue .x-kpi-card__icon {
  background: rgba(37, 99, 235, .12);
  color: #2563eb;
}

.x-kpi-card--green {
  background: linear-gradient(180deg, #ffffff 0%, #f4fff9 100%);
}

.x-kpi-card--green .x-kpi-card__icon {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

.x-kpi-card--violet {
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.x-kpi-card--violet .x-kpi-card__icon {
  background: rgba(139, 92, 246, .12);
  color: #7c3aed;
}

.x-kpi-card--orange {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
}

.x-kpi-card--orange .x-kpi-card__icon {
  background: rgba(245, 158, 11, .14);
  color: #d97706;
}

.x-kpi-card--cyan {
  background: linear-gradient(180deg, #ffffff 0%, #f2fcff 100%);
}

.x-kpi-card--cyan .x-kpi-card__icon {
  background: rgba(6, 182, 212, .14);
  color: #0891b2;
}

.x-kpi-card--red {
  background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.x-kpi-card--red .x-kpi-card__icon {
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
}

/* =========================
   GRID BASE
========================= */
.x-dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.x-dash-card {
  background: #fff;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.x-dash-card--span-12 {
  grid-column: span 12;
}

.x-dash-card--span-7 {
  grid-column: span 7;
}

.x-dash-card--span-6 {
  grid-column: span 6;
}

.x-dash-card--span-5 {
  grid-column: span 5;
}

.x-dash-card__head {
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.x-dash-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -.01em;
}

.x-dash-card__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.x-dash-card__action {
  border: none;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.x-dash-card__action:hover {
  background: #dbeafe;
}

/* =========================
   ALERT GRID
========================= */
.x-alert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.x-alert-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  border: none;
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: .22s ease;
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.x-alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.x-alert-card__metric {
  min-width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}

.x-alert-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.x-alert-card__icon {
  font-size: 16px;
}

.x-alert-card__title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.x-alert-card__text {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.x-alert-card__link {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.x-alert-card--warning .x-alert-card__metric {
  background: rgba(245, 158, 11, .12);
  color: #d97706;
}

.x-alert-card--warning .x-alert-card__icon,
.x-alert-card--warning .x-alert-card__link {
  color: #d97706;
}

.x-alert-card--info .x-alert-card__metric {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}

.x-alert-card--info .x-alert-card__icon,
.x-alert-card--info .x-alert-card__link {
  color: #2563eb;
}

.x-alert-card--danger .x-alert-card__metric {
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
}

.x-alert-card--danger .x-alert-card__icon,
.x-alert-card--danger .x-alert-card__link {
  color: #dc2626;
}

.x-alert-card--success .x-alert-card__metric {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

.x-alert-card--success .x-alert-card__icon,
.x-alert-card--success .x-alert-card__link {
  color: #059669;
}

/* =========================
   STATE GRID
========================= */
.x-state-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.x-state-card {
  border: none;
  background: #f8fafc;
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: .22s ease;
  border: 1px solid rgba(148, 163, 184, .12);
  min-height: 110px;
}

.x-state-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, .06);
}

.x-state-card__value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.x-state-card__label {
  font-size: 13px;
  font-weight: 800;
}

.x-state-card--danger {
  background: #fff5f5;
  color: #dc2626;
}

.x-state-card--warning {
  background: #fffaf0;
  color: #d97706;
}

.x-state-card--info {
  background: #f3f8ff;
  color: #2563eb;
}

.x-state-card--success {
  background: #f0fdf4;
  color: #059669;
}

.x-state-card--secondary {
  background: #f8fafc;
  color: #475569;
}

.x-state-card--dark {
  background: #eef2f7;
  color: #0f172a;
}

/* =========================
   COBRO INTELIGENTE
========================= */
.x-cobro-alert {
  margin: 20px 20px 0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.x-cobro-alert--warning {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.x-smart-pay-box {
  margin: 16px 20px 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.x-smart-pay-box__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 8px;
}

.x-smart-pay-box__value {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.x-smart-pay-box__meta {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

.x-smart-pay-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px 0;
}

.x-smart-pay-list {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================
   CHART
========================= */
.x-chart-card {
  padding: 18px 20px 20px;
}

.x-chart-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-mini-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.x-mini-filter {
  border: none;
  background: #f1f5f9;
  color: #475569;
  border-radius: 12px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.x-mini-filter:hover {
  background: #e2e8f0;
}

.x-mini-filter.is-active {
  background: #dbeafe;
  color: #2563eb;
}

/* =========================
   LISTAS
========================= */
.x-activity-list,
.x-sales-list,
.x-urgent-list {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}

.x-order-empty {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  border-radius: 18px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.x-dash-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fbfdff;
  border: 1px solid #e7edf5;
}

.x-dash-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
}

.x-dash-item__body {
  min-width: 0;
  flex: 1;
}

.x-dash-item__title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.x-dash-item__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.x-dash-item__right {
  text-align: right;
  flex-shrink: 0;
}

.x-dash-item__amount {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.x-dash-item__time {
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

.x-dash-item--sale .x-dash-item__icon {
  background: rgba(16, 185, 129, .12);
  color: #059669;
}

.x-dash-item--urgent .x-dash-item__icon {
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
}

.x-dash-item--activity .x-dash-item__icon {
  background: rgba(59, 130, 246, .12);
  color: #2563eb;
}

.x-dash-item--pending .x-dash-item__icon {
  background: rgba(245, 158, 11, .12);
  color: #d97706;
}

/* =========================
   QUICK ACTIONS
========================= */
.x-quick-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.x-quick-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 22px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
  transition: .22s ease;
}

.x-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
  text-decoration: none;
}

.x-quick-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
}

.x-quick-card__title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.x-quick-card__text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* =========================
   HELPERS
========================= */
.mr-2 {
  margin-right: .5rem;
}

/* =========================
   SCROLL BONITO
========================= */
.x-smart-pay-list::-webkit-scrollbar,
.x-activity-list::-webkit-scrollbar,
.x-sales-list::-webkit-scrollbar,
.x-urgent-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.x-smart-pay-list::-webkit-scrollbar-track,
.x-activity-list::-webkit-scrollbar-track,
.x-sales-list::-webkit-scrollbar-track,
.x-urgent-list::-webkit-scrollbar-track {
  background: #edf2f7;
  border-radius: 999px;
}

.x-smart-pay-list::-webkit-scrollbar-thumb,
.x-activity-list::-webkit-scrollbar-thumb,
.x-sales-list::-webkit-scrollbar-thumb,
.x-urgent-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #93c5fd, #3b82f6);
  border-radius: 999px;
  border: 2px solid #edf2f7;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1400px) {
  .x-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .x-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .x-alert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .x-dash-hero {
    grid-template-columns: 1fr;
  }

  .x-dash-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-dash-card--span-7,
  .x-dash-card--span-6,
  .x-dash-card--span-5 {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .x-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .x-dash-page {
    gap: 14px;
  }

  .x-dash-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .x-dash-hero__title {
    font-size: 28px;
  }

  .x-dash-kpis {
    grid-template-columns: 1fr;
  }

  .x-dash-strip {
    grid-template-columns: 1fr;
  }

  .x-alert-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .x-state-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .x-quick-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .x-dash-card__head {
    padding: 16px;
    flex-direction: column;
  }

  .x-activity-list,
  .x-sales-list,
  .x-urgent-list,
  .x-smart-pay-list,
  .x-chart-card {
    padding: 16px;
  }

  .x-smart-pay-box {
    margin: 16px 16px 0;
  }

  .x-smart-pay-actions {
    padding: 14px 16px 0;
  }

  .x-cobro-alert {
    margin: 16px 16px 0;
  }

  .x-dash-toolbar {
    justify-content: flex-start;
  }

  .x-dash-select,
  .x-btn {
    width: 100%;
  }
}

/* =========================
   BASE SaaS DARK
========================= */
.x-dash-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 20%),
    radial-gradient(circle at top right, rgba(6, 182, 212, .06), transparent 18%),
    linear-gradient(180deg, #050b16 0%, #08111f 100%); */
  /* padding-bottom: 12px; */
}

/* =========================
   CARDS BASE OSCURAS
========================= */
.x-dash-card,
.x-strip-card,
.x-alert-card,
.x-quick-card,
.x-state-card,
.x-kpi-card {
  color: #e5eefc;
}

.x-dash-card {
  background: linear-gradient(180deg, rgba(10, 20, 40, .94), rgba(8, 16, 32, .96));
  border: 1px solid rgba(148, 163, 184, .10);
  box-shadow:
    0 14px 34px rgba(2, 6, 23, .28),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

.x-dash-card__head {
  border-bottom: 1px solid rgba(148, 163, 184, .10);
}

.x-dash-card__title {
  color: #f8fafc;
}

.x-dash-card__subtitle {
  color: #8ea3bd;
}

.x-dash-card__action {
  background: rgba(59, 130, 246, .14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, .18);
}

.x-dash-card__action:hover {
  background: rgba(59, 130, 246, .22);
  color: #dbeafe;
}

/* =========================
   STRIP OSCURO
========================= */
.x-strip-card {
  background: linear-gradient(180deg, rgba(10, 20, 40, .94), rgba(8, 16, 32, .96));
  border: 1px solid rgba(148, 163, 184, .10);
  box-shadow:
    0 10px 28px rgba(2, 6, 23, .24),
    inset 0 1px 0 rgba(255, 255, 255, .02);
}

.x-strip-card__title {
  color: #f8fafc;
}

.x-strip-card__text {
  color: #8ea3bd;
}

.x-strip-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgba(2, 6, 23, .34),
    0 0 0 1px rgba(59, 130, 246, .10) inset;
}

/* =========================
   KPI OSCUROS
========================= */
.x-kpi-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .06), transparent 24%),
    linear-gradient(180deg, #0b1730 0%, #0c1831 100%);
  border: 1px solid rgba(59, 130, 246, .10);
  box-shadow:
    0 18px 34px rgba(2, 6, 23, .32),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

.x-kpi-card:hover {
  box-shadow:
    0 24px 42px rgba(2, 6, 23, .38),
    0 0 0 1px rgba(59, 130, 246, .14) inset;
}

.x-kpi-card__label {
  color: #8ea3bd;
}

.x-kpi-card__value {
  color: #f8fafc;
}

.x-kpi-card__meta {
  color: #7f93ad;
}

.x-kpi-card--blue,
.x-kpi-card--green,
.x-kpi-card--violet,
.x-kpi-card--orange,
.x-kpi-card--cyan,
.x-kpi-card--red {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, .06), transparent 24%),
    linear-gradient(180deg, #0b1730 0%, #0d1a33 100%);
}

.x-kpi-card--blue .x-kpi-card__icon {
  background: rgba(37, 99, 235, .16);
  color: #60a5fa;
}

.x-kpi-card--green .x-kpi-card__icon {
  background: rgba(16, 185, 129, .16);
  color: #34d399;
}

.x-kpi-card--violet .x-kpi-card__icon {
  background: rgba(139, 92, 246, .16);
  color: #a78bfa;
}

.x-kpi-card--orange .x-kpi-card__icon {
  background: rgba(245, 158, 11, .16);
  color: #fbbf24;
}

.x-kpi-card--cyan .x-kpi-card__icon {
  background: rgba(6, 182, 212, .16);
  color: #67e8f9;
}

.x-kpi-card--red .x-kpi-card__icon {
  background: rgba(239, 68, 68, .16);
  color: #f87171;
}

/* =========================
   ALERTAS OSCURAS
========================= */
.x-alert-card {
  background: linear-gradient(180deg, #0d182b 0%, #111c33 100%);
  border: 1px solid rgba(148, 163, 184, .10);
  box-shadow:
    0 10px 24px rgba(2, 6, 23, .20),
    inset 0 1px 0 rgba(255, 255, 255, .02);
}

.x-alert-card__title {
  color: #f8fafc;
}

.x-alert-card__text {
  color: #8ea3bd;
}

.x-alert-card__link {
  color: #cbd5e1;
}

.x-alert-card--warning .x-alert-card__metric {
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
}

.x-alert-card--warning .x-alert-card__icon,
.x-alert-card--warning .x-alert-card__link {
  color: #fbbf24;
}

.x-alert-card--info .x-alert-card__metric {
  background: rgba(59, 130, 246, .14);
  color: #60a5fa;
}

.x-alert-card--info .x-alert-card__icon,
.x-alert-card--info .x-alert-card__link {
  color: #60a5fa;
}

.x-alert-card--danger .x-alert-card__metric {
  background: rgba(239, 68, 68, .14);
  color: #f87171;
}

.x-alert-card--danger .x-alert-card__icon,
.x-alert-card--danger .x-alert-card__link {
  color: #f87171;
}

.x-alert-card--success .x-alert-card__metric {
  background: rgba(16, 185, 129, .14);
  color: #34d399;
}

.x-alert-card--success .x-alert-card__icon,
.x-alert-card--success .x-alert-card__link {
  color: #34d399;
}

/* =========================
   STATES OSCUROS
========================= */
.x-state-card {
  background: linear-gradient(180deg, #0d182b 0%, #111d35 100%);
  border: 1px solid rgba(148, 163, 184, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

.x-state-card__value {
  color: #f8fafc;
}

.x-state-card__label {
  color: #8ea3bd;
}

.x-state-card--danger {
  border-color: rgba(239, 68, 68, .16);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, .08) inset;
}

.x-state-card--danger .x-state-card__value {
  color: #f87171;
}

.x-state-card--warning {
  border-color: rgba(245, 158, 11, .16);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .08) inset;
}

.x-state-card--warning .x-state-card__value {
  color: #fbbf24;
}

.x-state-card--info {
  border-color: rgba(59, 130, 246, .16);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .08) inset;
}

.x-state-card--info .x-state-card__value {
  color: #60a5fa;
}

.x-state-card--success {
  border-color: rgba(16, 185, 129, .16);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .08) inset;
}

.x-state-card--success .x-state-card__value {
  color: #34d399;
}

.x-state-card--secondary {
  border-color: rgba(148, 163, 184, .14);
}

.x-state-card--secondary .x-state-card__value {
  color: #cbd5e1;
}

.x-state-card--dark {
  border-color: rgba(255, 255, 255, .08);
}

.x-state-card--dark .x-state-card__value {
  color: #f8fafc;
}

/* =========================
   COBRO / LISTAS
========================= */
.x-cobro-alert {
  background: rgba(245, 158, 11, .10);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .24);
}

.x-btn-light {
  background: #18263f;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, .12);
}

.x-btn-light:hover {
  background: #1d2d49;
}

.x-smart-pay-list,
.x-activity-list,
.x-sales-list,
.x-urgent-list {
  scrollbar-color: #202b46 #0f172a;
}

/* =========================
   ITEMS DE LISTA OSCUROS
========================= */
.x-dash-item {
  background: linear-gradient(180deg, #101b30 0%, #121f36 100%);
  border: 1px solid rgba(148, 163, 184, .10);
}

.x-dash-item__title {
  color: #f8fafc;
}

.x-dash-item__meta {
  color: #8ea3bd;
}

.x-dash-item__amount {
  color: #f8fafc;
}

.x-dash-item__time {
  color: #64748b;
}

/* =========================
   QUICK CARDS OSCURAS
========================= */
.x-quick-card {
  background: linear-gradient(180deg, #0d182b 0%, #111d33 100%);
  border: 1px solid rgba(148, 163, 184, .10);
  box-shadow:
    0 10px 24px rgba(2, 6, 23, .22),
    inset 0 1px 0 rgba(255, 255, 255, .02);
}

.x-quick-card:hover {
  box-shadow:
    0 18px 34px rgba(2, 6, 23, .32),
    0 0 0 1px rgba(59, 130, 246, .12) inset;
}

.x-quick-card__title {
  color: #f8fafc;
}

.x-quick-card__text {
  color: #8ea3bd;
}

.x-quick-card__icon {
  background: rgba(59, 130, 246, .14);
  color: #60a5fa;
}

/* =========================
   EMPTY / MINI FILTERS
========================= */
.x-order-empty {
  border: 1px dashed rgba(148, 163, 184, .16);
  background: #0f1a2d;
  color: #8ea3bd;
}

.x-mini-filter {
  background: #142238;
  color: #9fb2c9;
  border: 1px solid rgba(148, 163, 184, .10);
}

.x-mini-filter:hover {
  background: #1a2a43;
}

.x-mini-filter.is-active {
  background: rgba(59, 130, 246, .16);
  color: #dbeafe;
  border-color: rgba(59, 130, 246, .22);
}

/* =========================
   QUICK BAR COMPACTA
========================= */
.x-quick-bar {
  margin-top: -6px;
}

.x-quick-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 18px;

  background: linear-gradient(180deg, #0c1729 0%, #0f1b31 100%);
  border: 1px solid rgba(148, 163, 184, .10);

  box-shadow:
    0 10px 28px rgba(2, 6, 23, .25),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* LABEL */
.x-quick-bar__label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* CONTENEDOR BOTONES */
.x-quick-bar__actions {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.x-quick-bar__actions::-webkit-scrollbar {
  display: none;
}

/* BOTONES */
.x-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;

  font-size: 13px;
  font-weight: 600;

  background: #13203a;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .12);

  transition: .2s ease;
  white-space: nowrap;
}

.x-quick-btn i {
  font-size: 14px;
}

/* HOVER */
.x-quick-btn:hover {
  background: #1a2a44;
  color: #fff;
  transform: translateY(-1px);
}

/* BOTON PRINCIPAL */
.x-quick-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  /* box-shadow: 0 8px 20px rgba(37, 99, 235, .35); */
}

.x-quick-btn--primary:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 12px 26px rgba(37, 99, 235, .45); */
}

/* =========================
   ALERTAS BAR COMPACTA
========================= */
.x-alerts-bar-wrap {
  margin-top: 2px;
}

.x-alerts-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0c1729 0%, #0f1b31 100%);
  border: 1px solid rgba(148, 163, 184, .10);
  box-shadow:
    0 10px 28px rgba(2, 6, 23, .24),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

.x-alerts-bar__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.x-alerts-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

.x-alerts-bar__sub {
  font-size: 12px;
  color: #8ea3bd;
  line-height: 1.3;
}

/* ITEMS */
.x-alerts-bar__items {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.x-alerts-bar__items::-webkit-scrollbar {
  display: none;
}

.x-alert-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .10);
  background: #111f36;
  color: #dbeafe;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}

.x-alert-mini:hover {
  transform: translateY(-1px);
  background: #162740;
}

.x-alert-mini__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

.x-alert-mini__count {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.x-alert-mini__text {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

/* VARIANTES */
.x-alert-mini--warning .x-alert-mini__icon {
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
}

.x-alert-mini--warning .x-alert-mini__count {
  color: #fbbf24;
}

.x-alert-mini--info .x-alert-mini__icon {
  background: rgba(59, 130, 246, .14);
  color: #60a5fa;
}

.x-alert-mini--info .x-alert-mini__count {
  color: #60a5fa;
}

.x-alert-mini--danger .x-alert-mini__icon {
  background: rgba(239, 68, 68, .14);
  color: #f87171;
}

.x-alert-mini--danger .x-alert-mini__count {
  color: #f87171;
}

.x-alert-mini--success .x-alert-mini__icon {
  background: rgba(16, 185, 129, .14);
  color: #34d399;
}

.x-alert-mini--success .x-alert-mini__count {
  color: #34d399;
}

@media (max-width: 900px) {
  .x-alerts-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .x-alerts-bar__head {
    min-width: unset;
  }
}

/* =========================
   FLOW BAR COMPACTA
========================= */
.x-flow-bar {
  padding: 16px 20px 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.x-flow-bar::-webkit-scrollbar {
  display: none;
}

.x-flow-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .10);
  background: #111f36;
  color: #dbeafe;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.x-flow-mini:hover {
  transform: translateY(-1px);
  background: #162740;
}

.x-flow-mini__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

.x-flow-mini__count {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.x-flow-mini__text {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

/* variantes */
.x-flow-mini--danger .x-flow-mini__icon {
  background: rgba(239, 68, 68, .14);
  color: #f87171;
}

.x-flow-mini--danger .x-flow-mini__count {
  color: #f87171;
}

.x-flow-mini--warning .x-flow-mini__icon {
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
}

.x-flow-mini--warning .x-flow-mini__count {
  color: #fbbf24;
}

.x-flow-mini--info .x-flow-mini__icon {
  background: rgba(59, 130, 246, .14);
  color: #60a5fa;
}

.x-flow-mini--info .x-flow-mini__count {
  color: #60a5fa;
}

.x-flow-mini--success .x-flow-mini__icon {
  background: rgba(16, 185, 129, .14);
  color: #34d399;
}

.x-flow-mini--success .x-flow-mini__count {
  color: #34d399;
}

.x-flow-mini--secondary .x-flow-mini__icon {
  background: rgba(148, 163, 184, .14);
  color: #cbd5e1;
}

.x-flow-mini--secondary .x-flow-mini__count {
  color: #cbd5e1;
}

.x-flow-mini--dark .x-flow-mini__icon {
  background: rgba(255, 255, 255, .08);
  color: #f8fafc;
}

.x-flow-mini--dark .x-flow-mini__count {
  color: #f8fafc;
}

.x-chart-card {
  position: relative;
  min-height: 300px;
  padding: 12px 6px 4px;
}

.x-chart-card canvas {
  width: 100% !important;
  height: 280px !important;
}


/* ===== MEJORA VISUAL FLUJO ===== */
.x-state-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  transition: all .25s ease;
}

.x-state-card__value {
  font-size: 36px;
  /* antes 28 */
  font-weight: 900;
  line-height: 1;
}

.x-state-card__label {
  font-size: 13px;
  font-weight: 700;
  opacity: .85;
}

/* Hover más pro */
.x-state-card:hover {
  transform: translateY(-3px) scale(1.02);
}

.x-state-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

/* Colores */
.x-state-card--danger::before {
  background: #ef4444;
}

.x-state-card--warning::before {
  background: #f59e0b;
}

.x-state-card--info::before {
  background: #3b82f6;
}

.x-state-card--success::before {
  background: #10b981;
}

.x-state-card--secondary::before {
  background: #64748b;
}

.x-state-card--dark::before {
  background: #0f172a;
}

.x-state-card--danger {
  box-shadow: 0 10px 25px rgba(239, 68, 68, .15);
}

.x-state-card--warning {
  box-shadow: 0 10px 25px rgba(245, 158, 11, .15);
}

.x-state-card--success {
  box-shadow: 0 10px 25px rgba(16, 185, 129, .15);
}

.xp-control-page {
  padding: 24px;
  display: grid;
  gap: 18px;
  background: #020617;
}

.xp-hero-control {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1.35fr .8fr;
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, .22), transparent 30%),
    radial-gradient(circle at 90% 100%, rgba(16, 185, 129, .13), transparent 28%),
    linear-gradient(135deg, #071225, #020617);
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.xp-eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.xp-hero-control h1 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 950;
  letter-spacing: -.06em;
}

.xp-hero-control p {
  max-width: 720px;
  color: rgba(226, 232, 240, .68);
  font-size: 15px;
  line-height: 1.7;
}

.xp-hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.xp-hero-pills span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #dbeafe;
  font-weight: 800;
  font-size: 13px;
}

.xp-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.xp-toolbar-control {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.xp-toolbar-control button,
.xp-toolbar-control select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(15, 23, 42, .75);
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
}

.xp-pulse-box {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
}

.xp-pulse-box small {
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 900;
}

.xp-pulse-box strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
}

.xp-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.xp-kpi-card {
  min-height: 155px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 24px;
  padding: 20px;
  text-align: left;
  background: #071225;
  color: #fff;
  transition: .22s ease;
}

.xp-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, .35);
}

.xp-kpi-card span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.xp-kpi-card strong {
  display: block;
  margin-top: 16px;
  font-size: 30px;
  font-weight: 950;
}

.xp-kpi-card small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-weight: 700;
}

.xp-kpi-blue {
  background: linear-gradient(145deg, rgba(37, 99, 235, .22), #071225);
}

.xp-kpi-indigo {
  background: linear-gradient(145deg, rgba(79, 70, 229, .22), #071225);
}

.xp-kpi-orange {
  background: linear-gradient(145deg, rgba(245, 158, 11, .22), #071225);
}

.xp-kpi-violet {
  background: linear-gradient(145deg, rgba(139, 92, 246, .22), #071225);
}

.xp-kpi-red {
  background: linear-gradient(145deg, rgba(239, 68, 68, .22), #071225);
}

.xp-kpi-green {
  background: linear-gradient(145deg, rgba(16, 185, 129, .22), #071225);
}

.xp-actions-bar {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 22px;
  background: #071225;
  border: 1px solid rgba(148, 163, 184, .12);
}

.xp-actions-bar span {
  color: #fff;
  font-weight: 900;
}

.xp-actions-bar div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.xp-actions-bar button,
.xp-panel button {
  min-height: 38px;
  border: none;
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(59, 130, 246, .16);
  color: #dbeafe;
  font-weight: 900;
}

.xp-main-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 18px;
}

.xp-panel {
  border-radius: 26px;
  background: linear-gradient(180deg, #071225, #030712);
  border: 1px solid rgba(148, 163, 184, .13);
  padding: 22px;
}

.xp-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.xp-panel-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.xp-panel-head p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.xp-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.xp-stage {
  position: relative;
  overflow: hidden;
  min-height: 135px;
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, .14) !important;
  background: rgba(15, 23, 42, .88) !important;
}

.xp-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

.xp-stage span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.xp-stage strong {
  display: block;
  margin-top: 14px;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  font-weight: 950;
}

.xp-stage small {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.xp-stage-red::before {
  background: #ef4444;
}

.xp-stage-blue::before {
  background: #3b82f6;
}

.xp-stage-yellow::before {
  background: #f59e0b;
}

.xp-stage-green::before {
  background: #10b981;
}

.xp-stage-slate::before {
  background: #64748b;
}

.xp-stage-dark::before {
  background: #e2e8f0;
}

.xp-money-box {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, .2), transparent 35%),
    rgba(15, 23, 42, .9);
  border: 1px solid rgba(245, 158, 11, .18);
}

.xp-money-box span {
  color: #fcd34d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.xp-money-box strong {
  display: block;
  margin-top: 10px;
  color: #fbbf24;
  font-size: 38px;
  font-weight: 950;
}

.xp-money-box p {
  color: #cbd5e1;
  margin: 8px 0 0;
}

.xp-panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.xp-scroll-list {
  margin-top: 16px;
  max-height: 330px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

@media(max-width:1300px) {
  .xp-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .xp-main-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:768px) {
  .xp-hero-control {
    grid-template-columns: 1fr;
  }

  .xp-kpi-row,
  .xp-pipeline {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   XPERTECH CONTROL PRO
================================ */

.x-control-pro {
  padding: 24px;
  gap: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, .10), transparent 26%),
    linear-gradient(180deg, #020617, #030712);
}

/* HERO */
.x-control-hero {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 24px;
  padding: 30px;
  border-radius: 28px;
}

.x-control-title {
  color: #fff;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 950;
  letter-spacing: -.06em;
}

.x-control-subtitle {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(226, 232, 240, .74);
  font-size: 15px;
  line-height: 1.55;
}

.x-control-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .9);
  border: 1px solid rgba(96, 165, 250, .22);
  color: #e5edff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.x-control-eyebrow i {
  font-size: 9px;
  color: #3b82f6;
}

.x-control-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.x-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .08);
}

.x-control-pill--success {
  background: rgba(16, 185, 129, .13);
  color: #6ee7b7;
}

.x-control-pill--warning {
  background: rgba(245, 158, 11, .13);
  color: #fde68a;
}

.x-control-pill--info {
  background: rgba(59, 130, 246, .13);
  color: #bfdbfe;
}

.x-control-hero__right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.x-control-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.x-control-filter,
.x-control-select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .82);
  color: #e5edff;
  padding: 0 16px;
  font-weight: 900;
}

.x-control-select option {
  color: #0f172a;
}

.x-control-pulse {
  min-height: 140px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at right, rgba(239, 68, 68, .16), transparent 36%),
    rgba(15, 23, 42, .72);
  border: 1px solid rgba(239, 68, 68, .32);
}

.x-control-pulse span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
}

.x-control-pulse strong {
  display: block;
  margin-top: 8px;
  color: #fb7185;
  font-size: 26px;
  font-weight: 950;
}

.x-control-pulse p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.x-control-pulse__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #fb7185;
  font-size: 42px;
}

/* KPI */
.x-control-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.x-control-kpi {
  position: relative;
  overflow: hidden;
  min-height: 162px;
  text-align: left;
  padding: 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .05), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(8, 13, 28, .98));
  border: 1px solid rgba(148, 163, 184, .14);
  color: #fff;
}

.x-control-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  inset-block: 0;
  width: 4px;
}

.x-control-kpi__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.x-control-kpi__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 18px;
}

.x-control-kpi__title {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.x-control-kpi strong {
  display: block;
  margin-top: 24px;
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.x-control-kpi small {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
}

.x-control-kpi__trend {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #e5e7eb;
  font-weight: 900;
}

.x-control-kpi__trend--up {
  color: #4ade80;
}

.x-control-kpi--blue::before {
  background: #3b82f6;
}

.x-control-kpi--purple::before {
  background: #8b5cf6;
}

.x-control-kpi--orange::before {
  background: #f59e0b;
}

.x-control-kpi--violet::before {
  background: #7c3aed;
}

.x-control-kpi--red::before {
  background: #ef4444;
}

.x-control-kpi--green::before {
  background: #10b981;
}

.x-control-kpi--blue .x-control-kpi__icon {
  background: rgba(59, 130, 246, .22);
  color: #60a5fa;
}

.x-control-kpi--purple .x-control-kpi__icon {
  background: rgba(139, 92, 246, .22);
  color: #a78bfa;
}

.x-control-kpi--orange .x-control-kpi__icon {
  background: rgba(245, 158, 11, .22);
  color: #fbbf24;
}

.x-control-kpi--violet .x-control-kpi__icon {
  background: rgba(124, 58, 237, .22);
  color: #a78bfa;
}

.x-control-kpi--red .x-control-kpi__icon {
  background: rgba(239, 68, 68, .22);
  color: #f87171;
}

.x-control-kpi--green .x-control-kpi__icon {
  background: rgba(16, 185, 129, .22);
  color: #34d399;
}

/* ALERTAS */
.x-control-alerts {
  display: grid;
  grid-template-columns: 1fr 2.3fr;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 13, 28, .94);
  border: 1px solid rgba(148, 163, 184, .14);
}

.x-control-alerts__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.x-control-alert-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(239, 68, 68, .18);
  color: #fb7185;
  font-size: 26px;
}

.x-control-alerts h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.x-control-alerts p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.x-control-alerts__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.x-control-alert-mini {
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px auto;
  align-items: center;
  column-gap: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .76);
  border: 1px solid rgba(148, 163, 184, .12);
  color: #fff;
}

.x-control-alert-mini__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  grid-row: span 2;
}

.x-control-alert-mini strong {
  font-size: 22px;
  line-height: 1;
}

.x-control-alert-mini small {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.2;
}

.x-control-alert-mini__icon--warning {
  background: rgba(245, 158, 11, .13);
  color: #facc15;
}

.x-control-alert-mini__icon--info {
  background: rgba(59, 130, 246, .13);
  color: #60a5fa;
}

.x-control-alert-mini__icon--danger {
  background: rgba(239, 68, 68, .13);
  color: #fb7185;
}

.x-control-alert-mini__icon--success {
  background: rgba(16, 185, 129, .13);
  color: #34d399;
}

/* MAIN */
.x-control-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.x-control-panel {
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, .07), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(8, 13, 28, .98));
  border: 1px solid rgba(148, 163, 184, .14);
  color: #fff;
}

.x-control-panel--flow {
  grid-column: span 6;
  border-left: 4px solid #38bdf8;
}

.x-control-panel--pay {
  grid-column: span 6;
}

.x-control-panel--chart,
.x-control-main-grid>.x-control-panel:nth-last-child(2),
.x-control-main-grid>.x-control-panel:nth-last-child(1) {
  grid-column: span 6;
}

.x-control-panel--chart {
  border-left: 4px solid #10b981;
}

.x-control-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.x-control-panel__head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.x-control-panel__head p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.x-control-panel__head button,
.x-pay-link {
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 12px;
  background: rgba(15, 23, 42, .8);
  color: #e5edff;
  padding: 0 12px;
  font-weight: 900;
  font-size: 12px;
}

/* FLOW */
.x-flow-pro {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 4px 0;
}

.x-flow-pro::before {
  content: "";
  position: absolute;
  top: 49px;
  left: 8%;
  right: 8%;
  border-top: 2px dashed rgba(148, 163, 184, .42);
}

.x-flow-node {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.x-flow-node__icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(15, 23, 42, .96);
  border: 2px solid rgba(148, 163, 184, .45);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .24);
}

.x-flow-node__title {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 900;
}

.x-flow-node strong {
  margin-top: 8px;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.x-flow-node small {
  margin-top: 8px;
  max-width: 118px;
  color: rgba(226, 232, 240, .72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.x-flow-node--red .x-flow-node__icon,
.x-flow-node--red strong {
  color: #fb7185;
  border-color: #ef4444;
}

.x-flow-node--orange .x-flow-node__icon,
.x-flow-node--orange strong {
  color: #fb923c;
  border-color: #f97316;
}

.x-flow-node--yellow .x-flow-node__icon,
.x-flow-node--yellow strong {
  color: #facc15;
  border-color: #eab308;
}

.x-flow-node--green .x-flow-node__icon,
.x-flow-node--green strong {
  color: #34d399;
  border-color: #10b981;
}

.x-flow-node--slate .x-flow-node__icon,
.x-flow-node--slate strong {
  color: #94a3b8;
  border-color: #94a3b8;
}

.x-flow-node--blue .x-flow-node__icon,
.x-flow-node--blue strong {
  color: #60a5fa;
  border-color: #3b82f6;
}

/* PAY */
.x-pay-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
}

.x-pay-left {
  padding-right: 16px;
  border-right: 1px solid rgba(148, 163, 184, .18);
}

.x-pay-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .13);
  border: 1px solid rgba(239, 68, 68, .22);
  color: #fecaca;
  font-weight: 900;
  font-size: 13px;
}

.x-pay-total {
  margin-top: 18px;
}

.x-pay-total span {
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.x-pay-total strong {
  display: block;
  margin-top: 6px;
  color: #ef4444;
  font-size: 34px;
  font-weight: 950;
}

.x-pay-total p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
}

.x-pay-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.x-pay-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 900;
  color: #fff;
}

.x-pay-actions button:first-child {
  background: #ef4444;
}

.x-pay-actions button:last-child {
  background: rgba(15, 23, 42, .9);
  border: 1px solid rgba(148, 163, 184, .18);
}

.x-smart-pay-list,
.x-activity-list,
.x-urgent-list {
  max-height: 330px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}

/* CHART / LISTS */
.x-control-mini-filters {
  display: flex;
  gap: 8px;
}

.x-control-mini-filters button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .76);
  color: #cbd5e1;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.x-control-mini-filters button.is-active {
  background: rgba(59, 130, 246, .35);
  color: #bfdbfe;
}

.x-chart-card {
  min-height: 250px;
}

.x-order-empty {
  background: rgba(15, 23, 42, .72) !important;
  border: 1px dashed rgba(148, 163, 184, .22) !important;
  color: #94a3b8 !important;
}

/* RESPONSIVE */
@media(max-width:1400px) {
  .x-control-kpis {
    grid-template-columns: repeat(3, 1fr);
  }

  .x-flow-pro {
    grid-template-columns: repeat(3, 1fr);
  }

  .x-flow-pro::before {
    display: none;
  }

  .x-pay-layout {
    grid-template-columns: 1fr;
  }

  .x-pay-left {
    border-right: 0;
    padding-right: 0;
  }
}

@media(max-width:992px) {

  .x-control-hero,
  .x-control-alerts {
    grid-template-columns: 1fr;
  }

  .x-control-alerts__items {
    grid-template-columns: repeat(2, 1fr);
  }

  .x-control-panel--flow,
  .x-control-panel--pay,
  .x-control-panel--chart,
  .x-control-main-grid>.x-control-panel:nth-last-child(2),
  .x-control-main-grid>.x-control-panel:nth-last-child(1) {
    grid-column: span 12;
  }
}

@media(max-width:576px) {

  .x-control-kpis,
  .x-control-alerts__items,
  .x-flow-pro {
    grid-template-columns: 1fr;
  }
}

.x-control-pulse {
  position: relative;
  overflow: hidden;
}

.x-pulse-ecg {
  width: 190px;
  height: 76px;
  opacity: .95;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, .45));
}

.x-pulse-ecg svg {
  width: 100%;
  height: 100%;
}

.x-pulse-ecg path {
  fill: none;
  stroke: #ff5b5b;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: xEcgMove 1.8s ease-in-out infinite;
}

/* 🟢 ESTABLE */
.x-control-pulse--stable .x-pulse-ecg path {
  stroke: #34d399;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, .6));
}

/* 🔴 CRÍTICO */
.x-control-pulse--critical .x-pulse-ecg path {
  stroke: #fb7185;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, .6));
}

/* 🟡 ALERTA */
.x-control-pulse--warning .x-pulse-ecg path {
  stroke: #facc15;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, .6));
}

.x-control-pulse--stable {
  background:
    radial-gradient(circle at right, rgba(16, 185, 129, .22), transparent 40%),
    rgba(15, 23, 42, .72);
  border: 1px solid rgba(16, 185, 129, .35);
}

@keyframes xEcgMove {
  0% {
    stroke-dashoffset: 360;
    opacity: .35;
  }

  45% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -360;
    opacity: .35;
  }
}

@media(max-width: 768px) {
  .x-pulse-ecg {
    width: 140px;
    height: 58px;
  }
}

/* 🔴 CRÍTICO */
.x-control-pulse--critical {
  background:
    radial-gradient(circle at right, rgba(239, 68, 68, .20), transparent 40%),
    rgba(15, 23, 42, .72);
  border: 1px solid rgba(239, 68, 68, .35);
}

.x-control-pulse--critical strong {
  color: #fb7185;
}

/* 🟡 ALERTA */
.x-control-pulse--warning {
  background:
    radial-gradient(circle at right, rgba(245, 158, 11, .18), transparent 40%),
    rgba(15, 23, 42, .72);
  border: 1px solid rgba(245, 158, 11, .35);
}

.x-control-pulse--warning strong {
  color: #facc15;
}

/* 🟢 ESTABLE */
.x-control-pulse--stable {
  background:
    radial-gradient(circle at right, rgba(16, 185, 129, .18), transparent 40%),
    rgba(15, 23, 42, .72);
  border: 1px solid rgba(16, 185, 129, .35);
}

.x-control-pulse--stable strong {
  color: #34d399;
}


.x-control-pro--tech .x-control-kpis--tech {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.x-control-pro--tech .x-flow-pro--tech {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.x-control-pro--tech .x-flow-pro--tech::before {
  left: 12%;
  right: 12%;
}

.x-control-alert-icon--blue {
  background: rgba(59, 130, 246, .18);
  color: #60a5fa;
}

.x-pay-layout--single {
  grid-template-columns: 1fr;
}

.x-pay-layout--single .x-pay-left {
  border-right: 0;
  padding-right: 0;
}

.x-control-panel--wide {
  grid-column: span 8;
}

@media(max-width:992px) {

  .x-control-pro--tech .x-control-kpis--tech,
  .x-control-pro--tech .x-flow-pro--tech {
    grid-template-columns: repeat(2, 1fr);
  }

  .x-control-panel--wide {
    grid-column: span 12;
  }
}

@media(max-width:576px) {

  .x-control-pro--tech .x-control-kpis--tech,
  .x-control-pro--tech .x-flow-pro--tech {
    grid-template-columns: 1fr;
  }
}

.x-control-pro--seller .x-control-panel--seller-chart {
  grid-column: span 6;
}

.x-control-pro--seller .x-control-panel--seller-pay {
  grid-column: span 6;
}

.x-control-pro--seller .x-control-panel--seller-half {
  grid-column: span 6;
}

.x-control-pro--seller .x-control-pulse__icon {
  color: #34d399;
}

@media(max-width:992px) {

  .x-control-pro--seller .x-control-panel--seller-chart,
  .x-control-pro--seller .x-control-panel--seller-pay,
  .x-control-pro--seller .x-control-panel--seller-half {
    grid-column: span 12;
  }
}

.x-sidepro .custom-scrollbar {
  position: relative;
}

.x-sidepro .custom-scrollbar::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, .12), transparent 40%);

  pointer-events: none;
}

.x-control-pro--seller {
  display: grid;
  gap: 18px;
}

.x-seller-two-grid,
.x-seller-work-grid,
.x-seller-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.x-seller-card {
  margin: 0 !important;
  height: 100%;
}

.x-seller-cash-grid,
.x-seller-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.x-seller-mini-card,
.x-seller-action,
.x-seller-alert-row {
  width: 100%;
  border: 1px solid rgba(47, 107, 255, .22);
  background:
    radial-gradient(circle at top left, rgba(47, 107, 255, .14), transparent 34%),
    rgba(6, 18, 37, .74);
  border-radius: 18px;
  color: #F5F7FB;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.x-seller-mini-card:hover,
.x-seller-action:hover,
.x-seller-alert-row:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 214, 255, .42);
  background:
    radial-gradient(circle at top left, rgba(66, 214, 255, .16), transparent 34%),
    rgba(8, 24, 49, .88);
}

.x-seller-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  text-align: left;
}

.x-seller-mini-card strong {
  display: block;
  color: #F5F7FB;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.x-seller-mini-card small {
  display: block;
  color: #9FB0D0;
  font-size: 12px;
  margin-top: 4px;
}

.x-seller-mini-card__icon,
.x-seller-action__icon,
.x-seller-alert-row__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(47, 107, 255, .14);
  border: 1px solid rgba(47, 107, 255, .20);
}

.x-seller-mini-card__icon {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.x-seller-action {
  min-height: 112px;
  padding: 16px 12px;
  text-align: center;
}

.x-seller-action__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  font-size: 18px;
}

.x-seller-action strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #F5F7FB;
}

.x-seller-action small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9FB0D0;
}

.x-seller-alert-list {
  display: grid;
  gap: 10px;
}

.x-seller-alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  text-align: left;
}

.x-seller-alert-row__icon {
  width: 42px;
  height: 42px;
}

.x-seller-alert-row strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #F5F7FB;
  line-height: 1.1;
}

.x-seller-alert-row small {
  display: block;
  color: #9FB0D0;
  margin-top: 3px;
  font-size: 12px;
}

.x-seller-pay-card {
  height: 100%;
}

.x-smart-pay-list--compact {
  margin-top: 14px;
  max-height: 230px;
  overflow: auto;
}

.is-green {
  color: #22c55e;
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .26);
}

.is-blue {
  color: #60a5fa;
  background: rgba(96, 165, 250, .12);
  border-color: rgba(96, 165, 250, .26);
}

.is-cyan {
  color: #42d6ff;
  background: rgba(66, 214, 255, .12);
  border-color: rgba(66, 214, 255, .26);
}

.is-yellow {
  color: #fbbf24;
  background: rgba(251, 191, 36, .12);
  border-color: rgba(251, 191, 36, .26);
}

.is-red {
  color: #fb7185;
  background: rgba(251, 113, 133, .12);
  border-color: rgba(251, 113, 133, .26);
}

@media (max-width: 1180px) {

  .x-seller-two-grid,
  .x-seller-work-grid,
  .x-seller-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {

  .x-seller-cash-grid,
  .x-seller-action-grid {
    grid-template-columns: 1fr;
  }

  .x-seller-mini-card,
  .x-seller-alert-row {
    min-height: 74px;
  }
}

.x-control-panel--seller-chart {
  overflow: hidden;
}

.x-control-panel--seller-chart .x-chart-card {
  height: 320px;
  min-height: 320px;
  position: relative;
  margin-top: 18px;
  padding: 8px 4px 0;
}

.x-control-panel--seller-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.x-chart-legend-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 16px;
}

.x-chart-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: #DCE7FF;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all .18s ease;
  user-select: none;
}

.x-chart-legend-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
}

.x-chart-legend-pill.is-off {
  opacity: .45;
  filter: grayscale(.12);
}

.x-chart-legend-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
}


.x-control-panel--products-pie {
  min-height: 390px;
}

.x-products-pie-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}

.x-products-pie-chart {
  height: 270px;
  min-height: 270px;
  position: relative;
}

.x-products-pie-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.x-products-pie-list {
  display: grid;
  gap: 10px;
  max-height: 285px;
  overflow: auto;
  padding-right: 4px;
}

.x-product-top-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(159, 176, 208, .12);
  background:
    radial-gradient(circle at top left, rgba(47, 107, 255, .10), transparent 35%),
    rgba(6, 18, 37, .66);
}

.x-product-top-row__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04);
}

.x-product-top-row__name {
  color: #F5F7FB;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-product-top-row__meta {
  color: #9FB0D0;
  font-size: 12px;
  margin-top: 3px;
}

.x-product-top-row__value {
  color: #DCE7FF;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 900px) {
  .x-products-pie-layout {
    grid-template-columns: 1fr;
  }

  .x-products-pie-chart {
    height: 240px;
    min-height: 240px;
  }
}

/* =========================================
   XPERTECH DASHBOARD SKELETON
========================================= */

.x-skeleton {
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  background: linear-gradient(90deg,
      rgba(148, 163, 184, 0.10) 0%,
      rgba(148, 163, 184, 0.22) 45%,
      rgba(148, 163, 184, 0.10) 100%);
  background-size: 220% 100%;
  animation: xSkeletonPulse 1.15s ease-in-out infinite;
}

@keyframes xSkeletonPulse {
  0% {
    background-position: 220% 0;
  }

  100% {
    background-position: -220% 0;
  }
}

.x-skeleton-block {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.x-skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.x-skeleton-title {
  height: 22px;
  border-radius: 10px;
}

.x-skeleton-money {
  height: 34px;
  width: 118px;
  border-radius: 12px;
}

.x-skeleton-number {
  height: 34px;
  width: 58px;
  border-radius: 12px;
}

.x-skeleton-card {
  min-height: 68px;
  border-radius: 16px;
  margin-bottom: 10px;
}

.x-skeleton-chart {
  min-height: 230px;
  border-radius: 18px;
}

.x-chart-skeleton-bars {
  height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
}

.x-chart-skeleton-bars .x-skeleton {
  width: 34px;
  border-radius: 14px 14px 8px 8px;
}