:root {
  --x-bg-1: #07101f;
  --x-bg-2: #0b1830;
  --x-bg-3: #102446;
  --x-border: rgba(91, 145, 255, 0.18);
  --x-border-2: rgba(91, 145, 255, 0.28);
  --x-primary: #3f86ff;
  --x-primary-2: #235ec9;
  --x-text: #dbe7ff;
  --x-muted: #96a9c9;
  --x-success: #11b381;
  --x-danger: #d2516b;
  --x-warning: #d5a623;
  --x-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  --x-radius: 18px;
}

.ventas-pos-wrap {
  padding: 10px;
  color: var(--x-text);
}



.ventas-topbar {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.6fr 2fr;
  gap: 14px;
  margin-bottom: 16px;
}

.ventas-topbar__item label,
.ventas-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--x-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ventas-topbar__control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(16, 32, 61, 0.95), rgba(9, 20, 39, 0.95));
  border: 1px solid var(--x-border);
  border-radius: 16px;
  min-height: 54px;
  padding: 0 14px;
  box-shadow: var(--x-shadow);
}

.ventas-topbar__control i {
  color: #b8ccf3;
  min-width: 16px;
}

.ventas-topbar__control .form-control {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
  padding-left: 0 !important;
}

.ventas-cliente-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.ventas-btn-cliente {
  min-width: 170px;
  height: 54px;
  border-radius: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.ventas-card {
  background: linear-gradient(180deg, rgba(10, 22, 45, 0.98), rgba(6, 15, 30, 0.98));
  border: 1px solid var(--x-border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--x-shadow);
}

.ventas-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ventas-card__title--between {
  justify-content: space-between;
}

.ventas-card__title i {
  color: #82b2ff;
}

.ventas-card--tabla {
  min-height: 620px;
}

.ventas-card--cliente {
  margin-bottom: 16px;
}

.ventas-card--accion {
  padding: 14px;
}

.ventas-search-tip {
  min-height: 54px;
  border: 1px dashed rgba(140, 181, 255, 0.22);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  color: #afc2e8;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.ventas-sticky-panel {
  position: sticky;
  top: 12px;
}

.ventas-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 32px;
  padding: 4px 10px;
  background: rgba(63, 134, 255, 0.15);
  border: 1px solid var(--x-border-2);
  color: #dbe7ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ventas-carrito-head {
  display: grid;
  grid-template-columns: 2.4fr 0.8fr 0.9fr 1fr 1fr 0.7fr;
  gap: 10px;
  padding: 0 10px 10px;
  color: var(--x-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ventas-carrito-body {
  min-height: 160px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.ventas-carrito-empty {
  margin-top: 10px;
  text-align: center;
  border: 1px dashed rgba(140, 181, 255, 0.16);
  border-radius: 16px;
  padding: 18px;
  color: var(--x-muted);
  font-size: 14px;
}

.ventas-cart-row {
  display: grid;
  grid-template-columns: 2.4fr 0.8fr 0.9fr 1fr 1fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  margin-bottom: 10px;
  background: rgba(10, 22, 45, 0.78);
  border: 1px solid rgba(91, 145, 255, 0.1);
  border-radius: 16px;
}

.ventas-cart-row__product {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.ventas-btn-remove {
  width: 42px;
  height: 42px;
  border-radius: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ventas-cart-row__info .form-control {
  font-weight: 700;
}

.ventas-cart-row__meta {
  display: inline-block;
  margin-top: 6px;
  color: var(--x-muted);
}

.ventas-stock-text {
  color: #fff;
}

.ventas-cart-row__actions {
  display: flex;
  justify-content: flex-end;
}

.ventas-line-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(63, 134, 255, 0.12);
  border: 1px solid rgba(91, 145, 255, 0.22);
  color: #fff;
  font-weight: 800;
}

.ventas-total-box {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(55, 121, 255, 0.16), rgba(23, 59, 126, 0.35));
  border: 1px solid var(--x-border-2);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}

.ventas-total-box__label {
  font-size: 12px;
  letter-spacing: 0.6px;
  font-weight: 800;
  color: #b8cdf6;
  margin-bottom: 8px;
}

.ventas-total-box__value {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(63, 134, 255, 0.25);
}

.ventas-extra-block+.ventas-extra-block {
  margin-top: 12px;
}

.ventas-btn-cobrar {
  min-height: 58px;
  border-radius: 16px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--x-primary), var(--x-primary-2)) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(35, 94, 201, 0.35);
}

.ventas-btn-cobrar:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.ventas-pos-wrap .input-group-text,
.ventas-pos-wrap .form-control,
.ventas-pos-wrap .custom-select,
.ventas-pos-wrap select,
.ventas-pos-wrap textarea {
  border-color: rgba(123, 161, 231, 0.18) !important;
}

.ventas-pos-wrap .input-group-text {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #c7daf8 !important;
}

.ventas-pos-wrap .form-control,
.ventas-pos-wrap .custom-select,
.ventas-pos-wrap select {
  min-height: 46px;
  background: rgba(12, 24, 48, 0.95) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.ventas-pos-wrap .form-control::placeholder {
  color: #8ea3c8 !important;
}

.ventas-pos-wrap .btn-success,
.ventas-pos-wrap .btn-danger {
  border-radius: 12px !important;
}

.ventas-pos-wrap .select2-container--default .select2-selection--single {
  height: 54px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(16, 32, 61, 0.95), rgba(9, 20, 39, 0.95)) !important;
  border: 1px solid var(--x-border) !important;
  box-shadow: var(--x-shadow);
}

.ventas-pos-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 52px !important;
  color: #fff !important;
  padding-left: 16px !important;
}

.ventas-pos-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 52px !important;
}

.ventas-pos-wrap .dataTables_wrapper .dataTables_filter label,
.ventas-pos-wrap .dataTables_wrapper .dataTables_length label,
.ventas-pos-wrap .dataTables_wrapper .dataTables_info,
.ventas-pos-wrap .dataTables_wrapper .dataTables_paginate {
  color: #c6d7f5 !important;
}

.ventas-pos-wrap table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  margin-top: 10px !important;
}

.ventas-pos-wrap table.dataTable thead th {
  border-bottom: 0 !important;
  color: #d6e3ff !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ventas-pos-wrap table.dataTable tbody tr {
  background: rgba(11, 24, 48, 0.85) !important;
  box-shadow: inset 0 0 0 1px rgba(91, 145, 255, 0.05);
}

.ventas-pos-wrap table.dataTable tbody td {
  border-top: 0 !important;
  border-bottom: 0 !important;
  vertical-align: middle !important;
  color: #edf3ff !important;
  padding: 14px 10px !important;
}

.ventas-pos-wrap .page-item.active .page-link,
.ventas-pos-wrap .paginate_button.current {
  background: linear-gradient(135deg, var(--x-primary), var(--x-primary-2)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.ventas-pos-wrap .page-link,
.ventas-pos-wrap .paginate_button {
  border-radius: 12px !important;
}

.ventas-carrito-body::-webkit-scrollbar {
  width: 8px;
}

.ventas-carrito-body::-webkit-scrollbar-thumb {
  background: rgba(120, 155, 230, 0.25);
  border-radius: 20px;
}

@media (max-width: 1399px) {
  .ventas-topbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1199px) {
  .ventas-sticky-panel {
    position: static;
  }
}

@media (max-width: 991px) {

  .ventas-topbar,
  .ventas-cliente-row,
  .ventas-cart-row,
  .ventas-carrito-head {
    grid-template-columns: 1fr;
  }

  .ventas-btn-cliente {
    width: 100%;
    min-width: 100%;
  }

  .ventas-card--tabla {
    min-height: auto;
  }

  .ventas-total-box__value {
    font-size: 28px;
  }

  .ventas-cart-row__actions {
    justify-content: flex-start;
  }
}


/* ===== V2 CARRITO PROFESIONAL ===== */
.ventas-card__title--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.x-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(63, 134, 255, .14);
  border: 1px solid rgba(91, 145, 255, .28);
  color: #dbe7ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.x-cart-empty {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8ea3c8;
  border: 1px dashed rgba(123, 161, 231, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}

.x-cart-empty i {
  font-size: 28px;
  opacity: .8;
}

.x-cart-item {
  display: grid;
  grid-template-columns: 52px minmax(260px, 1.9fr) 88px 88px 146px 118px 126px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(91, 145, 255, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 20, 40, .92), rgba(6, 15, 30, .96));
  margin-bottom: 12px;
}

.x-cart-remove {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(178, 53, 79, .95), rgba(126, 30, 55, .95));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.x-cart-remove:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.x-cart-info {
  min-width: 0;
}

.x-cart-name-input.form-control {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  min-height: auto !important;
  font-size: 17px;
  font-weight: 800;
  color: #f3f7ff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none !important;
}

.x-cart-meta {
  font-size: 12px;
  color: #8ea3c8;
  margin-top: 4px;
}

.x-cart-col label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #8ea3c8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.x-cart-col .form-control {
  min-height: 44px !important;
  border-radius: 14px !important;
  text-align: center;
  font-weight: 700;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.x-money-box {
  display: flex;
  align-items: center;
  border: 1px solid rgba(123, 161, 231, .18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 24, 48, .95);
}

.x-money-box span {
  min-width: 38px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7daf8;
  background: rgba(255, 255, 255, .04);
  border-right: 1px solid rgba(123, 161, 231, .12);
  font-weight: 800;
}

.x-money-box .form-control {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: right;
  box-shadow: none !important;
}

.x-money-static {
  min-height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(123, 161, 231, .14);
  color: #f3f7ff;
  font-weight: 800;
}

.x-cart-total-line {
  min-height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(41, 83, 165, .9), rgba(22, 54, 115, .95));
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  padding: 0 10px;
}

.ventas-carrito-body {
  min-height: 160px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 1400px) {
  .x-cart-item {
    grid-template-columns: 52px minmax(220px, 1.6fr) 82px 82px 132px 110px 112px;
    gap: 10px;
  }

  .x-cart-name-input.form-control {
    font-size: 15px;
  }

  .x-cart-total-line {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .x-cart-item {
    grid-template-columns: 48px 1fr 1fr;
    gap: 10px;
  }

  .x-cart-info {
    grid-column: 2 / 4;
  }

  .x-cart-subtotal {
    grid-column: 2 / 4;
  }

  .x-cart-name-input.form-control {
    white-space: normal;
  }

  .x-cart-total-line {
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .x-cart-item {
    grid-template-columns: 1fr;
  }

  .x-cart-remove {
    width: 100%;
    height: 40px;
    border-radius: 12px;
  }

  .x-cart-info,
  .x-cart-cant,
  .x-cart-desc,
  .x-cart-price,
  .x-cart-final,
  .x-cart-subtotal {
    grid-column: auto;
  }
}

:root {
  --x-bg-1: #07101f;
  --x-bg-2: #0b1830;
  --x-bg-3: #102345;
  --x-br: rgba(91, 145, 255, .18);
  --x-br2: rgba(91, 145, 255, .28);
  --x-pr: #3f86ff;
  --x-pr2: #235ec9;
  --x-text: #edf3ff;
  --x-muted: #91a8cd;
  --x-shadow: 0 14px 32px rgba(0, 0, 0, .26);
  --x-red1: #a62d51;
  --x-red2: #7e1c37;
}

.ventas-v3-wrap {
  padding: 24px;
  color: var(--x-text)
}

.ventas-v3-topbar {
  display: grid;
  grid-template-columns: 1fr .55fr .55fr 1.8fr;
  gap: 14px;
  margin-bottom: 16px
}

.ventas-v3-field label,
.ventas-v3-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--x-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px
}

.ventas-v3-control {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--x-br);
  background: linear-gradient(180deg, rgba(16, 32, 61, .95), rgba(9, 20, 39, .95));
  box-shadow: var(--x-shadow)
}

.ventas-v3-control i {
  color: #bdd0f2
}

.ventas-v3-control .form-control {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  padding-left: 0 !important
}

.ventas-v3-client-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center
}

.ventas-v3-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--x-pr), var(--x-pr2)) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important
}

.ventas-v3-card {
  background: linear-gradient(180deg, rgba(10, 22, 45, .98), rgba(6, 15, 30, .98));
  border: 1px solid var(--x-br);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--x-shadow)
}

.ventas-v3-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-transform: uppercase;
  letter-spacing: .3px
}

.ventas-v3-card__title--between {
  justify-content: space-between
}

.ventas-v3-card__title i {
  color: #82b2ff
}

.ventas-v3-search-main {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 0;
  border: 1px solid var(--x-br2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(11, 24, 48, .95)
}

.ventas-v3-search-icon,
.ventas-v3-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8daf8;
  background: rgba(255, 255, 255, .04);
  border: 0
}

.ventas-v3-search-main input.form-control {
  height: 56px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  box-shadow: none !important
}

.ventas-v3-search-help {
  margin-top: 10px;
  color: #a8bee5;
  font-size: 13px
}

.ventas-v3-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
  font-size: 12px;
  color: #a8bee5;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .4px
}

.ventas-v3-results-count {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 134, 255, .14);
  border: 1px solid var(--x-br2)
}

.ventas-v3-quick-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px
}

.ventas-v3-empty-results {
  min-height: 180px;
  border: 1px dashed rgba(123, 161, 231, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8ea3c8
}

.ventas-v3-result {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(91, 145, 255, .12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 20, 40, .92), rgba(6, 15, 30, .96))
}

.ventas-v3-result__img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .05)
}

.ventas-v3-result__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.ventas-v3-result__name {
  font-size: 16px;
  font-weight: 800;
  color: #f6f9ff;
  margin-bottom: 4px
}

.ventas-v3-result__meta {
  font-size: 12px;
  color: #97afd4
}

.ventas-v3-result__price {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  text-align: right
}

.ventas-v3-result__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px
}

.ventas-v3-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .08)
}

.ventas-v3-stock--ok {
  background: rgba(24, 155, 104, .12);
  color: #8ce0ba;
  border-color: rgba(24, 155, 104, .24)
}

.ventas-v3-stock--low {
  background: rgba(213, 166, 35, .12);
  color: #f3d77a;
  border-color: rgba(213, 166, 35, .24)
}

.ventas-v3-stock--out {
  background: rgba(210, 81, 107, .12);
  color: #ff9eb1;
  border-color: rgba(210, 81, 107, .24)
}

.ventas-v3-btn-add {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--x-pr), var(--x-pr2));
  color: #fff;
  font-weight: 800
}

.ventas-v3-sticky {
  position: sticky;
  top: 12px
}

.x-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(63, 134, 255, .14);
  border: 1px solid var(--x-br2);
  color: #dbe7ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase
}

.ventas-v3-carrito {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px
}

.x-cart-empty {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8ea3c8;
  border: 1px dashed rgba(123, 161, 231, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02)
}

.x-cart-item {
  display: grid;
  grid-template-columns: 48px minmax(210px, 1.7fr) 80px 80px 130px 110px 120px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(91, 145, 255, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 20, 40, .92), rgba(6, 15, 30, .96))
}

.x-cart-remove {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--x-red1), var(--x-red2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center
}

.x-cart-name {
  font-size: 16px;
  font-weight: 800;
  color: #f3f7ff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px
}

.x-cart-meta {
  font-size: 12px;
  color: #8ea3c8
}

.x-cart-col label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #8ea3c8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px
}

.x-cart-col .form-control {
  min-height: 42px !important;
  border-radius: 14px !important;
  text-align: center;
  font-weight: 700
}

.x-money-box {
  display: flex;
  align-items: center;
  border: 1px solid rgba(123, 161, 231, .18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 24, 48, .95)
}

.x-money-box span {
  min-width: 36px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7daf8;
  background: rgba(255, 255, 255, .04);
  border-right: 1px solid rgba(123, 161, 231, .12);
  font-weight: 800
}

.x-money-box .form-control {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: right;
  padding-right: 10px
}

.x-money-static,
.x-cart-total-line {
  min-height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800
}

.x-money-static {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(123, 161, 231, .14);
  color: #f3f7ff
}

.x-cart-total-line {
  background: linear-gradient(135deg, rgba(41, 83, 165, .9), rgba(22, 54, 115, .95));
  color: #fff;
  font-size: 18px;
  font-weight: 900
}

.ventas-v3-total-box {
  margin-top: 4px;
  padding: 16px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(55, 121, 255, .16), rgba(23, 59, 126, .35));
  border: 1px solid var(--x-br2)
}

.ventas-v3-total-box small {
  display: block;
  color: #bdd0f2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px
}

.ventas-v3-total-box strong {
  font-size: 34px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(63, 134, 255, .25)
}

.ventas-v3-btn-pay {
  min-height: 58px;
  border-radius: 16px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--x-pr), var(--x-pr2)) !important;
  border: 0 !important;
  color: #fff !important
}

.ventas-v3-modal {
  background: linear-gradient(180deg, rgba(10, 22, 45, .99), rgba(6, 15, 30, .99));
  border: 1px solid var(--x-br);
  border-radius: 20px;
  overflow: hidden
}

.ventas-v3-modal__header {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
  background: rgba(255, 255, 255, .02)
}

.ventas-v3-wrap .input-group-text,
.ventas-v3-wrap .form-control,
.ventas-v3-wrap .custom-select,
.ventas-v3-wrap select {
  border-color: rgba(123, 161, 231, .18) !important
}

.ventas-v3-wrap .input-group-text {
  background: rgba(255, 255, 255, .04) !important;
  color: #c7daf8 !important
}

.ventas-v3-wrap .form-control,
.ventas-v3-wrap .custom-select,
.ventas-v3-wrap select {
  min-height: 46px;
  color: #fff !important;
  box-shadow: none !important
}

.ventas-v3-wrap .form-control::placeholder {
  color: #8ea3c8 !important
}

.ventas-v3-wrap .select2-container--default .select2-selection--single {
  height: 54px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(16, 32, 61, .95), rgba(9, 20, 39, .95)) !important;
  border: 1px solid var(--x-br) !important;
  box-shadow: var(--x-shadow)
}

.ventas-v3-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 52px !important;
  color: #fff !important;
  padding-left: 16px !important
}

.ventas-v3-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 52px !important
}

.ventas-v3-wrap table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  margin-top: 10px !important
}

.ventas-v3-wrap table.dataTable thead th {
  border-bottom: 0 !important;
  color: #d6e3ff !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px
}

.ventas-v3-wrap table.dataTable tbody tr {
  background: rgba(11, 24, 48, .85) !important
}

.ventas-v3-wrap table.dataTable tbody td {
  border-top: 0 !important;
  border-bottom: 0 !important;
  vertical-align: middle !important;
  color: #edf3ff !important;
  padding: 14px 10px !important
}

.ventas-v3-carrito::-webkit-scrollbar,
.ventas-v3-quick-results::-webkit-scrollbar {
  width: 8px
}

.ventas-v3-carrito::-webkit-scrollbar-thumb,
.ventas-v3-quick-results::-webkit-scrollbar-thumb {
  background: rgba(120, 155, 230, .25);
  border-radius: 20px
}

@media (max-width:1399px) {
  .ventas-v3-topbar {
    grid-template-columns: 1fr 1fr
  }

  .x-cart-item {
    grid-template-columns: 48px minmax(180px, 1.4fr) 72px 72px 120px 100px 110px
  }
}

@media (max-width:991px) {

  .ventas-v3-topbar,
  .ventas-v3-client-row {
    grid-template-columns: 1fr
  }

  .ventas-v3-sticky {
    position: static
  }

  .ventas-v3-result {
    grid-template-columns: 60px 1fr
  }

  .ventas-v3-result__actions {
    grid-column: 1 / -1;
    align-items: stretch
  }

  .x-cart-item {
    grid-template-columns: 48px 1fr 1fr
  }

  .x-cart-info {
    grid-column: 2 / 4
  }

  .x-cart-subtotal {
    grid-column: 2 / 4
  }

  .ventas-v3-total-box strong {
    font-size: 28px
  }
}

@media (max-width:575px) {
  .x-cart-item {
    grid-template-columns: 1fr
  }

  .x-cart-info,
  .x-cart-subtotal {
    grid-column: auto
  }

  .x-cart-remove {
    width: 100%
  }

  .ventas-v3-result {
    grid-template-columns: 1fr
  }

  .ventas-v3-result__img {
    width: 100%;
    height: 120px
  }
}


.x-cart-item-flash {
  animation: cartFlash .45s ease;
}

@keyframes cartFlash {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(63, 134, 255, 0);
  }

  40% {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(63, 134, 255, .18);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(63, 134, 255, 0);
  }
}

/* CONTENEDOR ACCIONES */

.x-acciones-pos {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  margin-top: 12px;
}

/* BOTONES BASE */

.x-btn-catalogo,
.x-btn-cobrar {
  position: relative;
  border-radius: 16px !important;
  height: 60px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: .4px;
  border: none !important;
  transition: .25s ease;
}

/* TEXTO */

.x-btn-catalogo span,
.x-btn-cobrar span {
  font-weight: 800;
}

/* ATAJO TECLADO */

.x-btn-catalogo small,
.x-btn-cobrar small {
  font-size: 11px;
  margin-left: 6px;
  opacity: .7;
}

/* CATALOGO */

.x-btn-catalogo {

  background: linear-gradient(135deg,
      rgba(26, 43, 76, .95),
      rgba(14, 28, 55, .95));

  border: 1px solid rgba(91, 145, 255, .25) !important;

  color: #dbe7ff !important;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .03),
    0 6px 20px rgba(0, 0, 0, .25);

}

.x-btn-catalogo i {
  color: #82b2ff;
  font-size: 18px;
}

.x-btn-catalogo:hover {

  transform: translateY(-2px);

  background: linear-gradient(135deg,
      rgba(36, 63, 108, .95),
      rgba(16, 34, 68, .95));

  box-shadow:
    0 10px 28px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(91, 145, 255, .35);

}

/* COBRAR */

.x-btn-cobrar {

  background: linear-gradient(135deg,
      #3f86ff,
      #235ec9);

  color: #fff !important;

  box-shadow:
    0 10px 26px rgba(35, 94, 201, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .08);

}

.x-btn-cobrar i {
  font-size: 20px;
}

/* EFECTO HOVER */

.x-btn-cobrar:hover {

  transform: translateY(-2px);

  background: linear-gradient(135deg,
      #5c9cff,
      #2d6de0);

  box-shadow:
    0 14px 34px rgba(35, 94, 201, .55);

}

/* EFECTO PRESION */

.x-btn-catalogo:active,
.x-btn-cobrar:active {
  transform: scale(.98);
}

/* RESPONSIVE */

@media(max-width:768px) {

  .x-acciones-pos {
    grid-template-columns: 1fr;
  }

}

/* =========================================
   XPERTECH POS - Resultados rápidos / catálogo
   Complemento visual para ventas.js mejorado
   ========================================= */

:root {
  --xp-bg-1: #061225;
  --xp-bg-2: #081a34;
  --xp-bg-3: #0b2245;
  --xp-line: rgba(91, 145, 255, .16);
  --xp-line-strong: rgba(91, 145, 255, .28);
  --xp-text: #edf4ff;
  --xp-muted: #8ea3c8;
  --xp-primary: #3f86ff;
  --xp-primary-2: #235ec9;
  --xp-danger: #d2516b;
  --xp-warning: #d5a623;
  --xp-success: #11b381;
}

/* contenedor resultados */
#busquedaRapidaResultados,
.x-quick-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* item */
.x-product-result {
  display: grid;
  grid-template-columns: 64px minmax(240px, 1fr) 140px 180px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 0;
  border: 1px solid var(--xp-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 18, 36, .96), rgba(4, 11, 24, .98));
  transition: .22s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.x-product-result:hover {
  border-color: var(--xp-line-strong);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.x-product-result__media {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .05);
}

.x-product-result__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-product-result__info {
  min-width: 0;
}

.x-product-result__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--xp-text);
  line-height: 1.2;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.x-product-result__meta,
.x-product-result__category {
  font-size: 12px;
  color: var(--xp-muted);
}

.x-product-result__price {
  text-align: right;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.x-product-result__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.x-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.x-stock-ok {
  color: #7ef0c9;
  background: rgba(17, 179, 129, .10);
  border-color: rgba(17, 179, 129, .25);
}

.x-stock-low {
  color: #ffd86e;
  background: rgba(213, 166, 35, .10);
  border-color: rgba(213, 166, 35, .25);
}

.x-stock-out {
  color: #ff9db1;
  background: rgba(210, 81, 107, .10);
  border-color: rgba(210, 81, 107, .25);
}

.x-btn-add-producto {
  min-width: 112px;
  height: 40px;
  border: none !important;
  border-radius: 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800 !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--xp-primary), var(--xp-primary-2)) !important;
  box-shadow: 0 8px 18px rgba(35, 94, 201, .28);
}

.x-btn-add-producto:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.x-btn-add-producto:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.1);
}

/* botones POS */
.x-acciones-pos {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  margin-top: 12px;
}

.x-btn-catalogo,
.x-btn-cobrar {
  position: relative;
  border-radius: 16px !important;
  height: 60px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: .4px;
  border: none !important;
  transition: .25s ease;
}

.x-btn-catalogo small,
.x-btn-cobrar small {
  font-size: 11px;
  margin-left: 6px;
  opacity: .74;
}

.x-btn-catalogo {
  background: linear-gradient(135deg, rgba(26, 43, 76, .95), rgba(14, 28, 55, .95));
  border: 1px solid rgba(91, 145, 255, .25) !important;
  color: #dbe7ff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 6px 20px rgba(0, 0, 0, .25);
}

.x-btn-catalogo i {
  color: #82b2ff;
  font-size: 18px;
}

.x-btn-catalogo:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(36, 63, 108, .95), rgba(16, 34, 68, .95));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(91, 145, 255, .35);
}

.x-btn-cobrar {
  background: linear-gradient(135deg, var(--xp-primary), var(--xp-primary-2));
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(35, 94, 201, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.x-btn-cobrar i {
  font-size: 20px;
}

.x-btn-cobrar:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5c9cff, #2d6de0);
  box-shadow: 0 14px 34px rgba(35, 94, 201, .55);
}

.x-btn-catalogo:active,
.x-btn-cobrar:active {
  transform: scale(.98);
}

/* barra de atajos */
.x-shortcuts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.x-shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--xp-line);
  color: #cfe0ff;
  font-size: 12px;
  font-weight: 700;
}

.x-shortcut-chip b {
  color: #fff;
}

/* total flotante */
.x-total-float {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  border: 1px solid rgba(91, 145, 255, .22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 22, 45, .98), rgba(6, 15, 30, .98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  padding: 14px 16px;
  margin-top: 14px;
}

.x-total-float__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #bed2f4;
  margin-bottom: 4px;
}

.x-total-float__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 8px;
  padding-top: 12px;
}

.x-total-float__label {
  font-size: 13px;
  color: #9bbcff;
  font-weight: 800;
  letter-spacing: .5px;
}

.x-total-float__value {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(63, 134, 255, .25);
}

/* animaciones suaves */
.x-fade-up {
  animation: xFadeUp .28s ease;
}

@keyframes xFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.x-cart-item-flash {
  animation: cartFlash .45s ease;
}

@keyframes cartFlash {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(63, 134, 255, 0);
  }

  40% {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(63, 134, 255, .18);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(63, 134, 255, 0);
  }
}

/* responsive */
@media (max-width: 991px) {
  .x-product-result {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .x-product-result__price {
    text-align: left;
    grid-column: 2 / 3;
    margin-top: -2px;
  }

  .x-product-result__actions {
    grid-column: 2 / 3;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .x-product-result__name {
    white-space: normal;
  }

  .x-acciones-pos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .x-product-result {
    padding: 12px;
  }

  .x-product-result__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .x-btn-add-producto {
    width: 100%;
  }

  .x-total-float__value {
    font-size: 26px;
  }
}


.x-categorias-rapidas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.x-chip-cat {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 145, 255, .18) !important;
  background: rgba(255, 255, 255, .03) !important;
  color: #dbe7ff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}

.x-chip-cat:hover {
  border-color: rgba(91, 145, 255, .35) !important;
  background: rgba(63, 134, 255, .08) !important;
}

.x-chip-cat.active {
  background: linear-gradient(135deg, #3f86ff, #235ec9) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(35, 94, 201, .28);
}

.x-resumen-cobro-card {
  overflow: hidden;
}

.x-total-float {
  margin-top: 8px;
  border: 1px solid rgba(91, 145, 255, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 22, 44, .95), rgba(6, 15, 30, .98));
  overflow: hidden;
}

.x-total-float__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: #cfe1ff;
  font-size: 14px;
  font-weight: 700;
}

.x-total-float__main {
  padding: 18px 16px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(63, 134, 255, .12), rgba(35, 94, 201, .22));
}

.x-total-float__label {
  font-size: 12px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #9fc1ff;
  font-weight: 800;
  margin-bottom: 8px;
}

.x-total-float__value {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 14px rgba(63, 134, 255, .25);
  transition: all .18s ease;
}


/* MODAL IMPRIMIR VENTA*/

/* Modal contenedor */

.x-modal-ticket {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}


/* Header */

.x-modal-header {
  background: #0f172a;
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.x-modal-header h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.x-close {
  color: white;
  opacity: .8;
}

.x-close:hover {
  opacity: 1;
}


/* Body */

.x-modal-body {
  /*  background:#f8fafc;*/
  padding: 25px;
}

.ticket-preview-wrapper {

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 16px;

  padding: 14px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

}

.ticket-preview-wrapper {

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 16px;

  padding: 14px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

}


/* Footer */

.x-modal-footer {
  border-top: 1px solid #eee;
  padding: 14px 20px;
  display: flex;
  /*  justify-content:space-between;*/
}


/* Buttons */

.x-btn-print {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
}

.x-btn-print:hover {
  background: #1d4ed8;
}


.x-btn-open {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
}

.x-btn-open:hover {
  background: #059669;
}


.x-btn-close {
  background: #e5e7eb;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
}

.x-btn-close:hover {
  background: #d1d5db;
}

/* =========================================================
   VENTAS - ESTILO GENERAL
   ========================================================= */
.x-ventas-page {
  position: relative;
}

.x-vtas-wrap {
  width: 100%;
}

/* =========================================================
   KPI CARDS VENTAS
   ========================================================= */
.x-vtas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.x-vtas-kpi {
  position: relative;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(8, 20, 48, .96) 0%, rgba(5, 14, 34, .96) 100%);
  border: 1px solid rgba(116, 143, 252, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.x-vtas-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.x-vtas-kpi__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.x-vtas-kpi__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  color: #eef4ff;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.x-vtas-kpi__badge {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(234, 240, 255, .82);
  background: rgba(255, 255, 255, .06);
  padding: 6px 10px;
  border-radius: 999px;
}

.x-vtas-kpi__value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.x-vtas-kpi__title {
  margin-top: 8px;
  color: #eef4ff;
  font-weight: 700;
  font-size: 1rem;
}

.x-vtas-kpi__meta {
  margin-top: 4px;
  color: rgba(225, 233, 250, .62);
  font-size: .88rem;
  line-height: 1.35;
}

.x-vtas-kpi--blue {
  border-color: rgba(59, 130, 246, .24);
}

.x-vtas-kpi--purple {
  border-color: rgba(139, 92, 246, .24);
}

.x-vtas-kpi--green {
  border-color: rgba(16, 185, 129, .24);
}

.x-vtas-kpi--orange {
  border-color: rgba(245, 158, 11, .24);
}

.x-vtas-kpi--red {
  border-color: rgba(239, 68, 68, .24);
}

.x-vtas-kpi--teal {
  border-color: rgba(20, 184, 166, .24);
}

/* =========================================================
   TABLA / TOOLBAR VENTAS
   ========================================================= */
.x-ventas-page .x-toolbar__search input,
.x-ventas-page .x-toolbar__select {
  min-height: 44px;
}

.x-ventas-page .x-table-wrap {
  overflow: visible;
}

.x-ventas-page .x-table-products thead th {
  white-space: nowrap;
}

.x-ventas-page .x-table-products tbody td {
  vertical-align: middle;
}

.x-ventas-page .x-table-products td:nth-child(1) {
  font-weight: 700;
  color: #eef4ff;
}

.x-ventas-page .x-table-products td:nth-child(6) {
  font-weight: 800;
}

.x-ventas-page .x-table-products td:nth-child(9) {
  min-width: 240px;
}

.x-ventas-page .x-table-products td:nth-child(10) {
  white-space: nowrap;
}

/* =========================================================
   BADGES / ESTADOS
   ========================================================= */
.x-vta-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 12px;
  border-radius: 999px;
  /* font-size: .78rem; */
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
}

.x-vta-status--paid {
  color: #d1fae5;
  background: rgba(16, 185, 129, .14);
  border-color: rgba(16, 185, 129, .28);
}

.x-vta-status--success {
  background: rgba(16, 185, 129, .16);
  border-color: rgba(16, 185, 129, .18);
  color: #74efc0;

}

.x-vta-status--pending {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .28);
}

.x-vta-status--partial {
  color: #fde68a;
  background: rgba(245, 158, 11, .14);
  border-color: rgba(245, 158, 11, .28);
}

/* =========================================================
   ACCIONES DE VENTAS
   ========================================================= */
.x-vta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.x-vta-actions .x-action-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .05);
  color: #eaf0ff;
  transition: all .18s ease;
}

.x-vta-actions .x-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .10);
}

.x-vta-actions .x-action-btn--print {
  border: 1px solid rgba(59, 130, 246, .22);
}

.x-vta-actions .x-action-btn--edit {
  border: 1px solid rgba(245, 158, 11, .22);
}

.x-vta-actions .x-action-btn--delete {
  border: 1px solid rgba(239, 68, 68, .22);
}

.x-vta-actions .x-action-btn--whatsapp {
  border: 1px solid rgba(16, 185, 129, .22);
}

.x-vta-actions .x-action-btn--payment {
  border: 1px solid rgba(139, 92, 246, .22);
}

/* =========================================================
   PRODUCTOS RESUMEN EN TABLA
   ========================================================= */
.x-vta-products {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.x-vta-products__item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
  color: #dfe8ff;
  line-height: 1.35;
  font-size: .86rem;
}

.x-vta-products__item strong {
  color: #fff;
  font-weight: 700;
}

.x-vta-products__empty {
  color: rgba(225, 233, 250, .58);
  font-size: .86rem;
}

/* =========================================================
   MODAL PDF
   ========================================================= */
.ticket-preview-wrapper {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
}

/* =========================================================
   MODAL ABONOS
   ========================================================= */
.x-abono-body {
  background: transparent;
}

.x-abono-card {
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(8, 20, 48, .90) 0%, rgba(6, 15, 34, .92) 100%);
  border: 1px solid rgba(116, 143, 252, .14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.x-abono-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef4ff;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 1rem;
}

.x-abono-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(228, 236, 255, .82);
  font-weight: 600;
  font-size: .9rem;
}

.x-abono-card .form-control,
.x-abono-card .custom-select,
.x-abono-card .browser-default {
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #eef4ff;
  box-shadow: none;
}

.x-abono-card .form-control:focus,
.x-abono-card .custom-select:focus,
.x-abono-card .browser-default:focus {
  border-color: rgba(59, 130, 246, .45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .10);
  background: rgba(255, 255, 255, .05);
}

.x-abono-card .form-control::placeholder {
  color: rgba(225, 233, 250, .45);
}

.x-abono-card select option {
  color: #111827;
}

.x-abono-card .x-table-products {
  margin-top: 6px;
}

/* =========================================================
   DATATABLE AJUSTES OSCUROS
   ========================================================= */
.x-ventas-page .dataTables_wrapper .dataTables_length,
.x-ventas-page .dataTables_wrapper .dataTables_filter,
.x-ventas-page .dataTables_wrapper .dataTables_info,
.x-ventas-page .dataTables_wrapper .dataTables_processing,
.x-ventas-page .dataTables_wrapper .dataTables_paginate {
  color: rgba(225, 233, 250, .72) !important;
}

.x-ventas-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 12px !important;
  color: #dbe7ff !important;
}

.x-ventas-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.x-ventas-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: rgba(59, 130, 246, .18) !important;
  border: 1px solid rgba(59, 130, 246, .28) !important;
  color: #fff !important;
}

.x-ventas-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1400px) {
  .x-vtas-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .x-ventas-page .x-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .x-ventas-page .x-toolbar__left,
  .x-ventas-page .x-toolbar__right {
    width: 100%;
  }

  .x-ventas-page .x-toolbar__right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .x-vtas-kpi-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .x-ventas-page .x-toolbar__right {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .x-vtas-kpi__value {
    font-size: 1.45rem;
  }

  .x-abono-card {
    padding: 14px;
  }
}

/* =========================================
   VENTAS - ESTILO XPERTECH
========================================= */
.x-sales-page {
  padding: 18px 18px 24px;
}

.x-stat-grid--sales {
  margin-bottom: 18px;
}

.x-stat-card__value--text {
  font-size: 1.05rem;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.x-sales-client-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.x-sales-sticky {
  position: sticky;
  top: 18px;
}

.x-panel-body {
  padding: 18px;
}

.x-panel--action .x-panel-body {
  padding: 16px;
}

.x-sales-searchbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.x-sales-search-main {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  overflow: hidden;
  min-height: 56px;
}

.x-sales-search-icon {
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 1rem;
  flex: 0 0 52px;
}

.x-sales-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5eefc;
  font-size: .95rem;
  padding: 14px 10px;
}

.x-sales-search-input::placeholder {
  color: rgba(229, 238, 252, .55);
}

.x-sales-search-btn {
  border: 0;
  outline: 0;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  width: 56px;
  height: 56px;
  cursor: pointer;
  transition: .18s ease;
}

.x-sales-search-btn:hover {
  filter: brightness(1.08);
}

.x-sales-search-help {
  font-size: .85rem;
  color: rgba(226, 232, 240, .72);
}

.x-sales-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 12px;
  color: #dbe7ff;
  font-weight: 600;
}

.x-sales-results-count {
  font-size: .85rem;
  color: rgba(219, 231, 255, .72);
}

.x-sales-quick-results {
  min-height: 180px;
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .02);
}

.x-sales-empty-results {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(226, 232, 240, .65);
  text-align: center;
}

.x-sales-empty-results i {
  font-size: 1.5rem;
  opacity: .85;
}

.x-sales-cart {
  min-height: 190px;
}

.x-sales-cart-empty {
  min-height: 160px;
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(226, 232, 240, .65);
  text-align: center;
  background: rgba(255, 255, 255, .02);
}

.x-sales-cart-empty i {
  font-size: 1.7rem;
}

.x-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .16);
  color: #bfdbfe;
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, .28);
}

.x-sales-total-box {
  margin-top: 8px;
  border-radius: 18px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgb(0 80 255 / 38%), rgba(124, 58, 237, .12));
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.x-sales-total-box small {
  color: rgba(226, 232, 240, .72);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.x-sales-total-box strong {
  font-size: 1.65rem;
  color: #fff;
  line-height: 1.1;
}

.x-btn--xl {
  min-height: 54px;
  font-size: .98rem;
  font-weight: 700;
  border-radius: 16px;
}

.ventas-v3-modal .modal-body,
.x-modal__body {
  background: #0d1526;
}

#seleccionarClienteVenta+.select2-container .select2-selection--single {
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: #e5eefc !important;
}

#seleccionarClienteVenta+.select2-container .select2-selection__rendered {
  color: #e5eefc !important;
  line-height: 44px !important;
  padding-left: 14px !important;
}

#seleccionarClienteVenta+.select2-container .select2-selection__arrow {
  height: 44px !important;
}

.x-sales-page .form-control,
.x-sales-page .custom-select,
.x-sales-page .browser-default.custom-select {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #e5eefc;
  box-shadow: none;
}

.x-sales-page .form-control:focus,
.x-sales-page .custom-select:focus,
.x-sales-page .browser-default.custom-select:focus {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.x-sales-page .input-group-text {
  border-radius: 14px 0 0 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06);
  color: #cfe0ff;
}

.x-sales-page .input-group>.form-control:not(:first-child) {
  border-radius: 0 14px 14px 0;
}

.x-sales-page .input-group-prepend+.form-control {
  border-left: 0;
}

@media (max-width: 1199.98px) {
  .x-sales-sticky {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .x-sales-client-row {
    grid-template-columns: 1fr;
  }

  .x-sales-total-box strong {
    font-size: 1.35rem;
  }

  .x-panel-body {
    padding: 14px;
  }
}

#ventasTotalVisual,
#ventasTotalVisualTop {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.x-sales-search-main:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}

.x-sales-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.x-sales-bottom-grid .x-panel {
  height: 100%;
}

.x-sales-bottom-grid .x-panel-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
}

.x-sales-bottom-grid .input-group,
.x-sales-bottom-grid .form-control,
.x-sales-bottom-grid .custom-select {
  width: 100%;
}

#dynamic_field {
  max-height: 290px;
  overflow: auto;
}

#dynamic_field .input-group {
  margin-bottom: 10px !important;
}

#dynamic_field .form-control {
  min-height: 46px;
}

#dynamic_field .btn {
  min-width: 46px;
  height: 46px;
}

@media (max-width: 1399.98px) {
  .x-sales-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .x-sales-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.x-input-dynamic {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent !important;
  color: #e5eefc !important;
  box-shadow: none !important;
}

.x-input-dynamic::placeholder {
  color: rgba(226, 232, 240, .55);
}

.x-input-dynamic:-webkit-autofill,
.x-input-dynamic:-webkit-autofill:hover,
.x-input-dynamic:-webkit-autofill:focus {
  -webkit-text-fill-color: #e5eefc;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}

.x-alert-danger {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.input-group {
  display: flex;
  align-items: center;
}

.input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
}

.input-group .form-control {
  height: 46px;
}

.input-group .btn {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

select.x-select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;

  /* quitar estilo nativo */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* animación */
  transition: all .2s ease;
}

.x-select-wrapper {
  position: relative;
}

.x-select-wrapper::after {
  content: "\f078";
  /* icono chevron-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9fb3ff;
  font-size: 12px;
}

select.x-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* CONTENEDOR */
.x-input-group {
  display: flex;
  align-items: stretch;
}

/* INPUT */
.x-input-group .form-control {
  height: 46px;
  padding-right: 8px;
  /* reducir espacio interno */
  border-radius: 12px 0 0 12px;
  border-right: 0;
  /* 🔥 CLAVE */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* % */
.x-input-group .input-group-text {
  height: 46px;
  margin-left: -1px;
  /* 🔥 ELIMINA EL GAP */
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

/* focus */
.x-input-group .form-control:focus {
  border-color: #2f6fec;
  box-shadow: 0 0 0 2px rgba(47, 111, 236, 0.15);
}

.x-input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.x-input-group .input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 46px;
  padding: 0 12px;
}

.x-input-group .form-control,
.x-input-group .custom-select {
  height: 46px;
}

.x-input-group .custom-select {
  border-radius: 0 12px 12px 0;
}

.x-input-group .input-group-prepend .input-group-text {
  border-radius: 12px 0 0 12px;
}

.x-input-group .form-control:focus,
.x-input-group .custom-select:focus {
  box-shadow: none;
}

#modalAbonoVenta .x-abono-label {
  display: block;
  margin-bottom: 8px;
}

#modalAbonoVenta .cajasMetodoPagoAbonoVenta .input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 46px;
  padding: 0 12px;
}

#modalAbonoVenta .cajasMetodoPagoAbonoVenta .form-control {
  height: 46px;
}

/* =============================================
   STATUS ANULADO (ESTILO DANGER)
============================================= */
/* .x-vta-status--danger {
  background: linear-gradient(135deg, #ff4d4f, #d9363e);
  color: #fff;
  border: 1px solid rgba(255, 77, 79, 0.5);
  box-shadow: 0 4px 10px rgba(255, 77, 79, 0.25);
} */

/* Hover opcional */
.x-vta-status--danger:hover {
  filter: brightness(1.05);
}

/* Base (por si no lo tienes consistente) */
.x-vta-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: .3px;
}

.x-vta-status--danger {
  animation: pulseDanger 1.5s infinite;
}

@keyframes pulseDanger {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(255, 77, 79, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
  }
}

.x-vta-status--danger {
  background: rgba(220, 53, 69, .18) !important;
  border-color: rgba(220, 53, 69, .45) !important;
  color: rgba(254, 202, 202, .95) !important;
}

.x-vta-row--success td {
  /* background: rgba(40, 167, 69, 0.06) !important; */
}

.x-vta-row--warning td {
  background: rgba(255, 193, 7, 0.08) !important;
}

.x-vta-row--pending td {
  background: rgba(23, 162, 184, 0.06) !important;
}

.x-vta-row--danger td {
  background: rgba(220, 53, 69, 0.08) !important;
  opacity: .82;
}

/* .x-vta-row--danger td:not(:last-child) {
  text-decoration: line-through;
} */

/* .x-vta-row--success:hover td {
  background: rgba(40, 167, 69, 0.11) !important;
}

.x-vta-row--warning:hover td {
  background: rgba(255, 193, 7, 0.13) !important;
}

.x-vta-row--pending:hover td {
  background: rgba(23, 162, 184, 0.10) !important;
}



.x-vta-row--danger:hover td {
  background: rgba(220, 53, 69, 0.13) !important;
} */

.x-vta-row--success td:first-child {
  box-shadow: inset 3px 0 0 #28a745;
}

.x-vta-row--warning td:first-child {
  box-shadow: inset 3px 0 0 #ffc107;
}

.x-vta-row--pending td:first-child {
  box-shadow: inset 3px 0 0 #17a2b8;
}

.x-vta-row--danger td:first-child {
  box-shadow: inset 3px 0 0 #dc3545;
}

.x-vta-row:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: scale(1.002);
  transition: all .2s ease;
}


.x-vta-row--success:hover {
  box-shadow: inset 3px 0 0 #10b981, 0 0 12px rgba(16, 185, 129, 0.15);
}

.x-vta-row--warning:hover {
  box-shadow: inset 3px 0 0 #f59e0b, 0 0 12px rgba(245, 158, 11, 0.15);
}

.x-vta-row--pending:hover {
  box-shadow: inset 3px 0 0 #3b82f6, 0 0 12px rgba(59, 130, 246, 0.15);
}

.x-vta-row--danger:hover {
  box-shadow: inset 3px 0 0 #ef4444, 0 0 12px rgba(239, 68, 68, 0.15);
}

.x-vta-badge {
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: .3px;
}

td:nth-child(7) {
  font-weight: 600;
  color: #fff;
}

.x-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* fila base */
/* table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
} */

table.dataTable tbody tr.x-vta-row td {
  background: linear-gradient(180deg, #06162b, #071a30) !important;
  border: none !important;
  /* transition: all .18s ease; */
}

/* extremos redondeados */
/* table.dataTable tbody tr.x-vta-row td:first-child {
  border-top-left-radius: 18px !important;
  border-bottom-left-radius: 18px !important;
  overflow: hidden;
  position: relative;
}

table.dataTable tbody tr.x-vta-row td:last-child {
  border-top-right-radius: 18px !important;
  border-bottom-right-radius: 18px !important;
} */

/* borde lateral + glow usando inset shadow */
/* table.dataTable tbody tr.x-vta-row--success td:first-child {
  box-shadow:
    inset 5px 0 0 #10d48f,
    inset 42px 0 40px -28px rgba(16, 212, 143, .18) !important;
}

table.dataTable tbody tr.x-vta-row--warning td:first-child {
  box-shadow:
    inset 5px 0 0 #f2a24c,
    inset 42px 0 40px -28px rgba(242, 162, 76, .18) !important;
}

table.dataTable tbody tr.x-vta-row--pending td:first-child {
  box-shadow:
    inset 5px 0 0 #12c7ef,
    inset 42px 0 40px -28px rgba(18, 199, 239, .18) !important;
}

table.dataTable tbody tr.x-vta-row--danger td:first-child {
  box-shadow:
    inset 5px 0 0 #ef476f,
    inset 42px 0 40px -28px rgba(239, 71, 111, .18) !important;
} */

/* hover sutil */
/* table.dataTable tbody tr.x-vta-row:hover td {
  filter: brightness(1.04);
} */


/* 
.x-vta-row--success td:first-child {
  box-shadow: inset 3px 0 0 #28a745;
}

.x-vta-row--warning td:first-child {
  box-shadow: inset 3px 0 0 #ffc107;
}

.x-vta-row--pending td:first-child {
  box-shadow: inset 3px 0 0 #17a2b8;
}

.x-vta-row--danger td:first-child {
  box-shadow: inset 3px 0 0 #dc3545;
} */

.x-chip-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, .22);
  background: rgba(59, 130, 246, .08);
  color: #9ec5ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.x-chip-action:hover {
  background: rgba(59, 130, 246, .14);
  color: #fff;
  transform: translateY(-1px);
}



.x-product-chip-wrap {
  display: flex;
  justify-content: center;
}

.x-product-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 144, 226, .28);
  background: rgba(18, 43, 79, .45);
  color: #9ec5ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: .22s ease;
}

.x-product-chip__default,
.x-product-chip__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .22s ease;
  white-space: nowrap;
}

.x-product-chip__default {
  opacity: 1;
  transform: translateY(0);
}

.x-product-chip__hover {
  opacity: 0;
  transform: translateY(100%);
  color: #fff;
  background: linear-gradient(135deg, rgba(32, 88, 186, .95), rgba(43, 115, 255, .95));
}

.x-product-chip:hover {
  border-color: rgba(59, 130, 246, .45);
  box-shadow: 0 8px 18px rgba(20, 76, 170, .22);
}

.x-product-chip:hover .x-product-chip__default {
  opacity: 0;
  transform: translateY(-100%);
}

.x-product-chip:hover .x-product-chip__hover {
  opacity: 1;
  transform: translateY(0);
}

.x-product-chip i {
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 768px) {
  .x-product-chip {
    min-width: 138px;
    font-size: 12px;
  }
}

.x-detail-box {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: #dce8ff;
}

.x-serial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.x-serial-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .10);
  border: 1px solid rgba(59, 130, 246, .24);
  color: #a9cbff;
  font-size: 12px;
  font-weight: 600;
}

.x-empty-lite {
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
}

.x-detail-box {
  min-height: 80px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: #dce8ff;
  white-space: pre-wrap;
}

.x-serial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.x-serial-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .10);
  border: 1px solid rgba(59, 130, 246, .24);
  color: #a9cbff;
  font-size: 12px;
  font-weight: 600;
}

.x-empty-lite {
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
}

.x-detail-sale-total {
  width: 100%;
  min-height: 96px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, .22);
  background:
    linear-gradient(180deg, rgba(28, 57, 104, .85), rgba(13, 31, 64, .92));
  box-shadow: 0 18px 35px rgba(4, 18, 44, .28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  text-align: center;
}

.x-detail-sale-total__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  color: rgba(220, 233, 255, .72);
  margin-bottom: 6px;
}

.x-detail-sale-total__value {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #f5f9ff;
}

.x-abono-card--full {
  min-height: 100%;
}

#modalDetalleVenta .modal-dialog {
  max-width: 1140px;
}

#modalDetalleVenta .x-modal__body {
  padding: 18px;
}


.x-product-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-product-mini__img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .08);
}

.x-product-mini__name {
  font-size: 13px;
  font-weight: 600;
  color: #eaf2ff;
}

.x-sku-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  /* background: rgba(59, 130, 246, .12); */
  border: 1px solid rgba(59, 130, 246, .25);
  color: #9ec5ff;
  font-size: 11px;
  font-weight: 600;
}

.x-product-row:hover {
  background: rgba(255, 255, 255, .03);
}

table.dataTable.dtr-column>tbody>tr>td.control,
table.dataTable.dtr-column>tbody>tr>th.control {
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}

table.dataTable.dtr-column>tbody>tr>td.control:before,
table.dataTable.dtr-column>tbody>tr>th.control:before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

table.dataTable.dtr-column>tbody>tr.parent>td.control:before,
table.dataTable.dtr-column>tbody>tr.parent>th.control:before {
  content: '−';
}

/* Contenedor totalmente transparente */
/* Toast premium Xpertech */
.swal2-popup.xp-toast {
  width: 360px !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  background: linear-gradient(180deg, rgba(10, 18, 38, .96), rgba(7, 14, 30, .94)) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(60, 130, 255, .06) inset,
    0 0 28px rgba(20, 100, 255, .12) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.swal2-popup.xp-toast .swal2-title {
  color: #f5f7ff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 4px 0 !important;
  text-align: left !important;
}

.swal2-popup.xp-toast .swal2-html-container {
  color: rgba(226, 232, 255, .72) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  text-align: left !important;
}

.swal2-popup.xp-toast .swal2-icon {
  margin: 0 12px 0 0 !important;
  transform: scale(.82);
}

.swal2-popup.xp-toast.swal2-toast {
  overflow: hidden;
}

.swal2-popup.xp-toast .swal2-timer-progress-bar {
  background: linear-gradient(90deg, #2dd4bf, #3b82f6) !important;
  height: 3px !important;
  opacity: .95;
}

.swal2-popup.xp-toast .swal2-close {
  color: rgba(255, 255, 255, .45) !important;
  transition: .2s ease;
}

.swal2-popup.xp-toast .swal2-close:hover {
  color: #fff !important;
  transform: scale(1.05);
}

.daterangepicker {
  background: linear-gradient(180deg, #0b1733 0%, #081226 100%) !important;
  border: 1px solid rgba(76, 110, 173, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45) !important;
  padding: 12px !important;
  color: #e8eefc !important;
  min-width: 280px !important;
}

.daterangepicker:before,
.daterangepicker:after {
  display: none !important;
}

.daterangepicker .ranges {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.daterangepicker .ranges ul {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.daterangepicker .ranges li {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #b9c8ea !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all .18s ease !important;
}

.daterangepicker .ranges li:hover {
  background: rgba(59, 130, 246, 0.14) !important;
  color: #ffffff !important;
  border-color: rgba(59, 130, 246, 0.22) !important;
}

.daterangepicker .ranges li.active {
  /* background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important; */
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28) !important;
}

.daterangepicker .drp-buttons {
  border-top: 1px solid rgba(255, 255, 255, .06) !important;
  margin-top: 10px !important;
  padding-top: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.daterangepicker .drp-buttons .btn {
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  min-width: 110px !important;
  border: 1px solid transparent !important;
}

.daterangepicker .drp-buttons .applyBtn {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25) !important;
}

.daterangepicker .drp-buttons .cancelBtn {
  background: rgba(255, 255, 255, .06) !important;
  color: #dbe7ff !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
}

.daterangepicker .calendar-table {
  background: transparent !important;
  border: none !important;
}

.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #fff !important;
}

.daterangepicker td.in-range {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #fff !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.daterangepicker .calendar-table table {
  color: #d8e3fb !important;
}

.daterangepicker .month {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.daterangepicker .drp-calendar {
  max-width: 100% !important;
}

.daterangepicker {
  background: linear-gradient(180deg, #0b1733 0%, #081226 100%) !important;
  border: 1px solid rgba(76, 110, 173, 0.24) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45) !important;
  padding: 12px !important;
  color: #e8eefc !important;
  min-width: 280px !important;
}

.daterangepicker:before,
.daterangepicker:after {
  display: none !important;
}

.daterangepicker .ranges li {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #b9c8ea !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all .18s ease !important;
}

.daterangepicker .ranges li:hover {
  background: rgba(59, 130, 246, 0.14) !important;
  color: #ffffff !important;
}

/* .daterangepicker .ranges li.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28) !important;
} */

.daterangepicker .drp-buttons {
  border-top: 1px solid rgba(255, 255, 255, .06) !important;
  margin-top: 10px !important;
  padding-top: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.daterangepicker .drp-buttons .btn {
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  min-width: 110px !important;
  border: 1px solid transparent !important;
}

.daterangepicker .drp-buttons .applyBtn {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  color: #fff !important;
}

.daterangepicker .drp-buttons .cancelBtn {
  background: rgba(255, 255, 255, .06) !important;
  color: #dbe7ff !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
}

#btnRangoFechaVentas {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  border-radius: 12px;
  border: none;
  transition: all .2s ease;
}

#btnRangoFechaVentas:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
}

#btnRangoFechaVentas:active {
  transform: scale(0.98);
}

/* ================================
   DATERANGEPICKER XPERTECH / SAAS
================================ */
.daterangepicker {
  background: linear-gradient(180deg, #081225 0%, #0b1730 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45) !important;
  color: #dbe7ff !important;
  padding: 14px !important;
  overflow: hidden !important;
}

.daterangepicker:before,
.daterangepicker:after {
  display: none !important;
}

/* contenedor general */
.daterangepicker .drp-calendar,
.daterangepicker .ranges {
  background: transparent !important;
  border: none !important;
}

/* inputs superiores */
.daterangepicker .drp-selected,
.daterangepicker input.input-mini,
.daterangepicker input.input-sm,
.daterangepicker .calendar-time {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  color: #f8fbff !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.daterangepicker input.input-mini,
.daterangepicker input.input-sm {
  height: 42px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
}

/* títulos de mes */
.daterangepicker .calendar-table .month,
.daterangepicker .month {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  letter-spacing: .02em;
}

/* tabla del calendario */
.daterangepicker .calendar-table {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.daterangepicker .calendar-table table {
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 4px !important;
  color: #c8d7f5 !important;
}

/* encabezados de días */
.daterangepicker th {
  color: rgba(219, 231, 255, .65) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  border: none !important;
  background: transparent !important;
}

/* celdas base */
.daterangepicker td {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  color: #c8d7f5 !important;
  font-weight: 600 !important;
  transition: all .16s ease !important;
}

/* días disponibles hover */
.daterangepicker td.available:hover,
.daterangepicker td.available:hover {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #ffffff !important;
}

/* hoy */
.daterangepicker td.today {
  position: relative;
  color: #fff !important;
  background: rgba(255, 255, 255, .05) !important;
}

.daterangepicker td.today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #60a5fa;
}

/* días fuera de mes */
.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
  color: rgba(200, 215, 245, .30) !important;
  background: transparent !important;
}

/* rango intermedio */
.daterangepicker td.in-range {
  background: rgba(37, 99, 235, 0.12) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

/* fecha inicio y fin */
.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker td.start-date,
.daterangepicker td.end-date {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28) !important;
}

/* navegación */
.daterangepicker .prev,
.daterangepicker .next {
  background: rgba(255, 255, 255, .05) !important;
  border-radius: 10px !important;
  transition: all .16s ease !important;
}

.daterangepicker .prev:hover,
.daterangepicker .next:hover {
  background: rgba(59, 130, 246, .14) !important;
}

.daterangepicker .prev span,
.daterangepicker .next span {
  border-color: #dbe7ff !important;
}

/* panel de rangos rápidos */
.daterangepicker .ranges {
  margin-top: 8px !important;
}

.daterangepicker .ranges ul {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.daterangepicker .ranges li {
  background: rgba(255, 255, 255, .04) !important;
  color: #c8d7f5 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all .16s ease !important;
}

.daterangepicker .ranges li:hover {
  background: rgba(59, 130, 246, .10) !important;
  border-color: rgba(59, 130, 246, .18) !important;
  color: #fff !important;
}

.daterangepicker .ranges li.active {
  /* background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important; */
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .24) !important;
}

/* botones inferiores */
.daterangepicker .drp-buttons {
  border-top: 1px solid rgba(255, 255, 255, .06) !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.daterangepicker .drp-buttons .btn {
  min-width: 110px !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.daterangepicker .drp-buttons .applyBtn {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, .20) !important;
}

.daterangepicker .drp-buttons .cancelBtn {
  background: rgba(255, 255, 255, .05) !important;
  color: #dbe7ff !important;
  border-color: rgba(255, 255, 255, .08) !important;
}

/* responsive */
@media (max-width: 768px) {
  .daterangepicker {
    width: 95vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .daterangepicker .drp-calendar {
    max-width: 100% !important;
  }

  .daterangepicker .calendar-table table {
    border-spacing: 2px !important;
  }

  .daterangepicker td {
    width: 32px !important;
    height: 32px !important;
  }
}

.daterangepicker .drp-selected,
.daterangepicker .input-mini {
  padding-left: 40px !important;
  background-image: none !important;
}

/* contenedor */
.daterangepicker .drp-calendar .calendar-table+.calendar-time,
.daterangepicker .drp-calendar {
  position: relative;
}

/* icono custom */
.daterangepicker .input-mini {
  background: rgba(255, 255, 255, .04) !important;
  position: relative;
}

.daterangepicker .input-mini-wrapper {
  position: relative;
}

/* FORZAR ICONO */
.daterangepicker input.input-mini {
  background: rgba(255, 255, 255, .04) !important;
  padding-left: 40px !important;
}

.daterangepicker input.input-mini {
  background-image: none !important;
}

/* crear icono con pseudo en contenedor */
.daterangepicker .drp-selected::before,
.daterangepicker input.input-mini+span::before {
  display: none;
}

.x-stat-card__sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.9;
}

.x-stat-card__sub b {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.x-compras-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.x-compras-head__left {
  display: flex;
  flex-direction: column;
}

.x-compras-head__right {
  display: flex;
  align-items: center;
}

/* BOTÓN PRO */
.x-btn-lg {
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.x-btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  color: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .28);
  transition: .25s ease;
}

.x-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.x-rpt-pdf-frame-wrap {
  position: relative;
  overflow: hidden;
}

.x-rpt-pdf-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 40, 0.92);
  z-index: 30;
  backdrop-filter: blur(4px);
}

.x-rpt-pdf-loader__box {
  width: 320px;
  max-width: 86%;
  text-align: center;
  color: #fff;
}

.x-rpt-pdf-loader__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f8fafc;
}

.x-rpt-pdf-loader__percent {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  color: #ffffff;
}

.x-rpt-pdf-loader__progress {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}

.x-rpt-pdf-loader__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
  border-radius: 999px;
  transition: width .25s ease;
}

.x-rpt-pdf-loader__subtext {
  margin-top: 12px;
  font-size: 13px;
  color: #cbd5e1;
}

/* =========================
   CATÁLOGO VENTAS - BUSCADOR MODAL
========================= */

#modalCatalogoProductos .dataTables_filter {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

#modalCatalogoProductos .dataTables_filter label {
  width: 100%;
  max-width: 320px;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0;
}

#modalCatalogoProductos .dataTables_filter label::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #7b8aa0;
  pointer-events: none;
}

#modalCatalogoProductos .dataTables_filter input {
  width: 100% !important;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0f172a;
  color: #e5eefc;
  padding: 0 14px 0 42px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#modalCatalogoProductos .dataTables_filter input::placeholder {
  color: #94a3b8;
}

#modalCatalogoProductos .dataTables_filter input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  background: #111c33;
}

#modalCatalogoProductos .dataTables_length {
  margin-bottom: 14px;
}

#modalCatalogoProductos .dataTables_length select {
  min-width: 80px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0f172a;
  color: #e5eefc;
  height: 40px;
}

#modalCatalogoProductos .dataTables_info {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 10px;
}

#modalCatalogoProductos .dataTables_paginate .paginate_button {
  border-radius: 10px !important;
  margin: 0 2px;
}

#modalCatalogoProductos .dataTables_paginate .paginate_button.current {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
}

#modalCatalogoProductos .dataTables_paginate .paginate_button:hover {
  background: rgba(37, 99, 235, 0.14) !important;
  color: #fff !important;
  border: none !important;
}