.x-order-modal {
  border-radius: 18px;
  overflow: hidden;
  background: #101826;
  color: #e5e7eb;
}

.x-order-modal-header {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.x-order-modal-body {
  background: #0f172a;
}

.x-order-modal-footer {
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.x-order-steps-wrap {
  padding: 14px 20px;
  background: #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.x-order-steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.x-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .55;
  transition: .2s ease;
}

.x-step.is-active,
.x-step.is-done {
  opacity: 1;
}

.x-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.x-step.is-active .x-step-circle {
  background: #2563eb;
}

.x-step.is-done .x-step-circle {
  background: #16a34a;
}

.x-step-label {
  font-size: 13px;
  font-weight: 600;
}

.x-step-panel {
  display: none;
}

.x-step-panel.is-active {
  display: block;
}

.x-card-order {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.x-card-title {
  margin-bottom: 16px;
  color: #fff;
}

.x-summary-box {
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  min-height: 110px;
}

#sig {
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: #fff;
  min-height: 180px;
}

@media (max-width: 768px) {
  .x-step-label {
    display: none;
  }
}

.x-step-panel {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

.x-step-panel::-webkit-scrollbar {
  width: 6px;
}

.x-step-panel::-webkit-scrollbar-track {
  background: transparent;
}

.x-step-panel::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

.x-step-panel::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/*ESTILO PARA WIZARD TIPO ONBOARD AUTOMATICO*/

.x-order-modal .form-group label {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.x-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  overflow: hidden;
  transition: .2s ease;
}

.x-input-group:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.x-input-icon {
  width: 54px;
  min-width: 54px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #cbd5e1;
  font-size: 16px;
  background: rgba(255, 255, 255, .02);
}

.x-input-group .form-control,
.x-input-group .form-control:focus,
.x-input-group .form-control[readonly],
.x-input-group select.form-control {
  height: 48px;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #e5e7eb !important;
  padding: 10px 14px;
}

.x-input-group .form-control::placeholder {
  color: #64748b;
}

.x-input-group select.form-control option {
  color: #111827;
}

.x-input-group.is-readonly {
  opacity: .92;
}

.x-order-modal textarea.form-control {
  border-radius: 16px;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(255, 255, 255, .10);
  color: #e5e7eb;
}

.x-order-modal textarea.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
  background: rgba(15, 23, 42, .95);
  color: #e5e7eb;
}

.x-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  overflow: hidden;
  transition: .2s ease;
}

.x-input-icon {
  width: 44px;
  min-width: 44px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #cbd5e1;
  font-size: 14px;
  background: rgba(255, 255, 255, .02);
}

.x-input-group .form-control,
.x-input-group .form-control:focus,
.x-input-group .form-control[readonly],
.x-input-group select.form-control {
  height: 42px;
  min-height: 42px;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #e5e7eb !important;
  padding: 8px 12px;
  font-size: 14px;
}

.x-order-modal textarea.form-control {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}


/*SELECT 2 PARA WIZARD*/

.select2-container--default .select2-selection--single {
  background: transparent;
  border: none;
  height: 42px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection__rendered {
  color: #e5e7eb;
  padding-left: 12px;
}

.select2-container--default .select2-selection__arrow {
  height: 42px;
}

.select2-dropdown {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .1);
}

.select2-results__option {
  color: #e5e7eb;
}

.select2-results__option--highlighted {
  background: #2563eb !important;
}

.select2-search__field {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, .1);
}

.x-input-group .select2-container {
  width: 100% !important;
}

.x-input-group .select2-selection {
  background: transparent !important;
}

.x-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  overflow: hidden;
  transition: .2s ease;
}

.x-input-group:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.x-input-icon {
  width: 44px;
  min-width: 44px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #cbd5e1;
  font-size: 14px;
  background: rgba(255, 255, 255, .02);
}

.x-input-group .form-control,
.x-input-group .form-control:focus,
.x-input-group .form-control[readonly] {
  height: 42px;
  min-height: 42px;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #e5e7eb !important;
  padding: 8px 12px;
  font-size: 14px;
}

/* SELECT2 */
.x-input-group .select2-container {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.x-input-group .select2-container--default .select2-selection--single {
  height: 42px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.x-input-group .select2-container--default .select2-selection__rendered {
  color: #e5e7eb !important;
  line-height: 42px !important;
  padding-left: 14px !important;
  padding-right: 34px !important;
  font-size: 14px;
}

.x-input-group .select2-container--default .select2-selection__placeholder {
  color: #94a3b8 !important;
}

.x-input-group .select2-container--default .select2-selection__arrow {
  height: 42px !important;
  right: 8px !important;
}

.x-input-group .select2-container--default .select2-selection__arrow b {
  border-color: #94a3b8 transparent transparent transparent !important;
}

/* =========================
   SELECT2 DARK XPERTECH
========================= */

.select2-container--default .select2-dropdown {
  background: #071327 !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* caja de búsqueda */
.select2-search--dropdown {
  padding: 8px !important;
  background: #071327 !important;
}

.select2-search--dropdown .select2-search__field {
  height: 38px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  background: #0f172a !important;
  color: #e5e7eb !important;
  padding: 8px 12px !important;
  outline: none !important;
  box-shadow: none !important;
}

.select2-search--dropdown .select2-search__field::placeholder {
  color: #94a3b8 !important;
}

/* lista */
.select2-results {
  background: #071327 !important;
}

.select2-results__options {
  background: #071327 !important;
  color: #e5e7eb !important;
  max-height: 220px !important;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

/* cada opcion */
.select2-results__option {
  background: #071327 !important;
  color: #e5e7eb !important;
  padding: 10px 14px !important;
  transition: .15s ease;
}

/* hover / focus */
.select2-results__option--highlighted[aria-selected] {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

/* opcion seleccionada -> quitar blanco */
.select2-results__option[aria-selected="true"] {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

/* si la seleccionada tambien está enfocada */
.select2-results__option[aria-selected="true"].select2-results__option--highlighted {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

/* scrollbar chrome/edge */
.select2-results__options::-webkit-scrollbar {
  width: 8px;
}

.select2-results__options::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* opcion deshabilitada */
.select2-results__option--disabled {
  color: #64748b !important;
  background: #071327 !important;
}


.x-stat-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .18);
}


.x-cell-ellipsis {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.x-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1400px) {
  .x-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .x-stat-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.dtr-cards {
  padding: 8px 0 2px;
}

.dtr-card {
  background: linear-gradient(180deg, rgba(8, 18, 38, .96), rgba(6, 14, 30, .94)) !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.dtr-card .card-body {
  background: transparent !important;
  color: #dfe9fb !important;
  padding: 18px 18px 16px;
}

.dtr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #f3f7ff;
}

.dtr-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.dtr-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dtr-line span {
  font-size: 12px;
  font-weight: 700;
  color: #8ea2c3;
  min-width: 110px;
}

.dtr-line b {
  flex: 1;
  text-align: right;
  color: #edf4ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.dtr-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.x-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.x-action-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(20, 31, 58, .96), rgba(12, 22, 44, .94));
  color: #dce8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 10px 22px rgba(0, 0, 0, .16);
  transition: all .18s ease;
}

.x-action-btn i {
  font-size: 19px;
}

.x-action-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.x-action-view:hover {
  background: rgba(37, 99, 235, .16);
  border-color: rgba(37, 99, 235, .28);
  color: #7dc7ff;
}

.x-action-edit:hover {
  background: rgba(56, 189, 248, .14);
  border-color: rgba(56, 189, 248, .25);
  color: #7dd3fc;
}

.x-action-status:hover {
  background: rgba(168, 85, 247, .14);
  border-color: rgba(168, 85, 247, .25);
  color: #d8b4fe;
}

.x-action-print:hover {
  background: rgba(16, 185, 129, .14);
  border-color: rgba(16, 185, 129, .25);
  color: #6ee7b7;
}

.x-action-payment:hover {
  background: rgba(249, 115, 22, .14);
  border-color: rgba(249, 115, 22, .25);
  color: #fdba74;
}

.x-vta-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}

.x-vta-statusFont {

  font-size: 12.5px;

}

.x-vta-status--danger {
  background: rgba(239, 68, 68, .12);
  color: #ff6b6b;
  border-color: rgba(239, 68, 68, .22);
}

.x-vta-status--warning {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .22);
}

.x-vta-status--info {
  background: rgba(59, 130, 246, .12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, .22);
}

.x-vta-status--success {
  background: rgba(34, 197, 94, .12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, .22);
}

.x-vta-status--secondary {
  background: rgba(148, 163, 184, .12);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, .22);
}

.x-ord-debt-mini {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
}

.x-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* .x-stat-card--red .x-stat-card__value {
  color: #ff6b6b;
}

.x-stat-card--yellow .x-stat-card__value {
  color: #facc15;
}

.x-stat-card--blue .x-stat-card__value {
  color: #60a5fa;
}

.x-stat-card--green .x-stat-card__value {
  color: #34d399;
}

.x-stat-card--purple .x-stat-card__value {
  color: #a78bfa;
}

.x-stat-card--orange .x-stat-card__value {
  color: #fb923c;
} */

.x-stat-card {
  transition: all .2s ease;
}

.x-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
}

.x-stat-card__badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

.x-stat-card--red .x-stat-card__badge {
  background: rgba(255, 99, 99, .15);
}

.x-stat-card--yellow .x-stat-card__badge {
  background: rgba(250, 204, 21, .15);
}

.x-stat-card--green .x-stat-card__badge {
  background: rgba(52, 211, 153, .15);
}

.x-stat-card__icon {
  font-size: 18px;
  opacity: .9;
}

.x-stat-card--red .x-stat-card__icon {
  color: #ff6b6b;
}

.x-stat-card--yellow .x-stat-card__icon {
  color: #facc15;
}

.x-stat-card--green .x-stat-card__icon {
  color: #34d399;
}

.x-stat-card.active {
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 8px 30px rgba(0, 0, 0, .4);
}

.x-action-cancel {
  background: rgba(239, 68, 68, .14);
  color: #ff8b8b;
  border: 1px solid rgba(239, 68, 68, .20);
}

.x-ord-check-card {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}

.x-ord-check-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.x-ord-check-card__name {
  font-weight: 800;
  color: #fff;
}

.x-ord-check-card__state {
  font-size: .8rem;
  font-weight: 800;
}

.x-ord-check-card__obs {
  font-size: .88rem;
  color: #9db1cf;
  line-height: 1.45;
}

.x-check-ok {
  border-color: rgba(52, 211, 153, .20);
  background: rgba(52, 211, 153, .06);
}

.x-check-ok .x-ord-check-card__state {
  color: #34d399;
}

.x-check-bad {
  border-color: rgba(239, 68, 68, .20);
  background: rgba(239, 68, 68, .06);
}

.x-check-bad .x-ord-check-card__state {
  color: #ff6b6b;
}

.x-check-neutral {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(148, 163, 184, .05);
}

.x-check-neutral .x-ord-check-card__state {
  color: #cbd5e1;
}

.x-ord-media-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  text-decoration: none;
}

.x-ord-media-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.x-ord-media-card__footer {
  padding: 10px 12px;
  color: #dce8ff;
  font-size: .82rem;
  font-weight: 700;
}

.x-ord-media-card--firma .x-ord-media-card__img {
  object-fit: contain;
  background: #fff;
}

.x-ord-ref-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}

.x-ord-ref-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.x-ord-ref-card__meta {
  color: #9db1cf;
  font-size: .88rem;
}

.x-ord-ref-card__totals {
  display: flex;
  gap: 18px;
  text-align: right;
}

.x-ord-ref-card__totals span {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  color: #92a8c9;
  font-weight: 800;
}

.x-ord-ref-card__totals strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .x-ord-ref-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .x-ord-ref-card__totals {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
}

.x-abonos-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 12px;
}

.x-abonos-scroll::-webkit-scrollbar {
  width: 8px;
}

.x-abonos-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.x-abono-item-pro {
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
  border-radius: 18px;
  padding: 16px 18px;
}

.x-abono-item-pro__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.x-abono-item-pro__amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.x-abono-item-pro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  color: #9fb2d1;
}

.x-abono-item-pro__obs {
  margin-top: 10px;
  font-size: 13px;
  color: #dbe7ff;
  opacity: .9;
}

.x-abono-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.x-abono-badge--success {
  background: rgba(16, 185, 129, .14);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, .22);
}

.x-abono-badge--danger {
  background: rgba(239, 68, 68, .14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .22);
}



.x-estado-child-wrap {
  padding: 14px 6px 4px;
}

.x-estado-child-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.x-estado-child-card {
  background: linear-gradient(180deg, rgba(5, 15, 40, .92), rgba(2, 10, 28, .96));
  border: 1px solid rgba(59, 130, 246, .12);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  min-height: 100%;
}

.x-estado-child-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #eef4ff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.x-estado-child-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-estado-child-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.x-estado-child-row:last-child {
  border-bottom: none;
}

.x-estado-child-label {
  font-size: 13px;
  font-weight: 600;
  color: #7f91b5;
  min-width: 110px;
}

.x-estado-child-value {
  font-size: 14px;
  font-weight: 700;
  color: #eef4ff;
  text-align: right;
  flex: 1;
}

@media (max-width: 1100px) {
  .x-estado-child-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   KPI GRID MOBILE
========================= */
@media (max-width: 991px) {
  .x-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 575px) {
  .x-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .x-stat-card {
    min-height: 170px;
    padding: 14px 12px;
    border-radius: 20px;
  }

  .x-stat-card__top {
    align-items: flex-start;
    gap: 8px;
  }

  .x-stat-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .x-stat-card__badge {
    font-size: 10px;
    line-height: 1.1;
    padding: 5px 8px;
  }

  .x-stat-card__value {
    font-size: 28px;
    line-height: 1;
    margin-top: 10px;
  }

  .x-stat-card__title {
    font-size: 13px;
    line-height: 1.25;
    word-break: break-word;
  }

  .x-stat-card__meta {
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
  }
}

/* =========================
   TOOLBAR MOBILE
========================= */
@media (max-width: 767px) {
  .x-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .x-toolbar__left,
  .x-toolbar__right {
    width: 100%;
  }

  .x-toolbar__right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .x-toolbar__search {
    width: 100%;
  }

  .x-toolbar__search input,
  .x-toolbar__select,
  #btnResetFiltroEstado,
  #daterange-btn-estado {
    width: 100% !important;
  }
}

/* =========================
   CHILD ROW / CARDS
========================= */
.x-estado-child-wrap {
  padding: 14px 0 4px;
}

.x-estado-mobile-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.x-estado-mobile-top__item {
  background: linear-gradient(180deg, rgba(5, 15, 40, .92), rgba(2, 10, 28, .96));
  border: 1px solid rgba(59, 130, 246, .12);
  border-radius: 18px;
  padding: 14px 16px;
}

.x-estado-mobile-top__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #7f91b5;
  margin-bottom: 8px;
}

.x-estado-mobile-top__value {
  font-size: 15px;
  font-weight: 700;
  color: #eef4ff;
  line-height: 1.35;
  word-break: break-word;
}

.x-estado-child-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.x-estado-child-card {
  background: linear-gradient(180deg, rgba(5, 15, 40, .92), rgba(2, 10, 28, .96));
  border: 1px solid rgba(59, 130, 246, .12);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  min-width: 0;
}

.x-estado-child-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #eef4ff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.x-estado-child-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.x-estado-child-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.x-estado-child-row:last-child {
  border-bottom: none;
}

.x-estado-child-label {
  font-size: 13px;
  font-weight: 600;
  color: #7f91b5;
  min-width: 90px;
}

.x-estado-child-value {
  font-size: 14px;
  font-weight: 700;
  color: #eef4ff;
  text-align: right;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 767px) {
  .x-estado-mobile-top {
    grid-template-columns: 1fr;
  }

  .x-estado-child-grid {
    grid-template-columns: 1fr;
  }

  .x-estado-child-card {
    border-radius: 20px;
    padding: 16px 14px;
  }

  .x-estado-child-row {
    gap: 10px;
  }

  .x-estado-child-label {
    min-width: 78px;
    font-size: 12px;
  }

  .x-estado-child-value {
    font-size: 13px;
  }
}

/* =========================
   DATATABLE WIDTH FIX
========================= */
.table-responsive,
.x-table-wrap,
.dataTables_wrapper {
  width: 100%;
  overflow-x: hidden;
}

table.tablaEstado.dataTable {
  width: 100% !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
  margin-top: 0 !important;
}

/* =========================
   KPI GRID MOBILE
========================= */
@media (max-width: 991px) {
  .x-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 575px) {
  .x-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .x-stat-card {
    min-height: 170px;
    padding: 14px 12px;
    border-radius: 20px;
  }

  .x-stat-card__top {
    align-items: flex-start;
    gap: 8px;
  }

  .x-stat-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .x-stat-card__badge {
    font-size: 10px;
    line-height: 1.1;
    padding: 5px 8px;
  }

  .x-stat-card__value {
    font-size: 28px;
    line-height: 1;
    margin-top: 10px;
  }

  .x-stat-card__title {
    font-size: 13px;
    line-height: 1.25;
    word-break: break-word;
  }

  .x-stat-card__meta {
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
  }
}

/* =========================
   TOOLBAR MOBILE
========================= */
@media (max-width: 767px) {
  .x-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .x-toolbar__left,
  .x-toolbar__right {
    width: 100%;
  }

  .x-toolbar__right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .x-toolbar__search {
    width: 100%;
  }

  .x-toolbar__search input,
  .x-toolbar__select,
  #btnResetFiltroEstado,
  #daterange-btn-estado {
    width: 100% !important;
  }
}

/* =========================
   CHILD ROW / CARDS
========================= */
.x-estado-child-wrap {
  padding: 14px 0 4px;
}

.x-estado-mobile-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.x-estado-mobile-top__item {
  background: linear-gradient(180deg, rgba(5, 15, 40, .92), rgba(2, 10, 28, .96));
  border: 1px solid rgba(59, 130, 246, .12);
  border-radius: 18px;
  padding: 14px 16px;
}

.x-estado-mobile-top__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #7f91b5;
  margin-bottom: 8px;
}

.x-estado-mobile-top__value {
  font-size: 15px;
  font-weight: 700;
  color: #eef4ff;
  line-height: 1.35;
  word-break: break-word;
}

.x-estado-child-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.x-estado-child-card {
  background: linear-gradient(180deg, rgba(5, 15, 40, .92), rgba(2, 10, 28, .96));
  border: 1px solid rgba(59, 130, 246, .12);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  min-width: 0;
}

.x-estado-child-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #eef4ff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.x-estado-child-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.x-estado-child-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.x-estado-child-row:last-child {
  border-bottom: none;
}

.x-estado-child-label {
  font-size: 13px;
  font-weight: 600;
  color: #7f91b5;
  min-width: 90px;
}

.x-estado-child-value {
  font-size: 14px;
  font-weight: 700;
  color: #eef4ff;
  text-align: right;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 767px) {
  .x-estado-mobile-top {
    grid-template-columns: 1fr;
  }

  .x-estado-child-grid {
    grid-template-columns: 1fr;
  }

  .x-estado-child-card {
    border-radius: 20px;
    padding: 16px 14px;
  }

  .x-estado-child-row {
    gap: 10px;
  }

  .x-estado-child-label {
    min-width: 78px;
    font-size: 12px;
  }

  .x-estado-child-value {
    font-size: 13px;
  }
}

/* =========================
   DATATABLE WIDTH FIX
========================= */
.table-responsive,
.x-table-wrap,
.dataTables_wrapper {
  width: 100%;
  overflow-x: hidden;
}

table.tablaEstado.dataTable {
  width: 100% !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
  margin-top: 0 !important;
}

.x-ord-falla-limit {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================================================
   MODAL IMPRIMIR ORDEN - ESTILO XPERTECH / ABONOS
========================================================= */
.x-print-modal-dialog {
  max-width: 980px;
}

.x-print-modal-content {
  border: 1px solid rgba(45, 96, 190, 0.35);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(26, 72, 160, 0.18), transparent 28%),
    linear-gradient(180deg, #07152d 0%, #031126 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* HEADER */
.x-print-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(78, 126, 214, 0.28);
  background: linear-gradient(180deg, rgba(32, 61, 121, 0.72), rgba(18, 39, 82, 0.56));
}

.x-print-modal-headleft {
  display: flex;
  flex-direction: column;
}

.x-print-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #f3f7ff;
}

.x-print-modal-title i {
  font-size: 17px;
  color: #dbeafe;
}

.x-print-modal-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.92);
  font-weight: 500;
}

.x-print-modal-headright {
  display: flex;
  align-items: center;
  gap: 14px;
}

.x-print-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 192, 67, 0.14);
  border: 1px solid rgba(255, 192, 67, 0.35);
  color: #ffd86b;
  font-size: 13px;
  font-weight: 800;
}

.x-print-close {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
  text-shadow: none;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

.x-print-close:hover {
  color: #fff;
  opacity: 1;
}

/* BODY */
.x-print-modal-body {
  padding: 18px 12px 18px;
}

/* PANEL */
.x-print-panel {
  margin: 0 0 16px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(45, 96, 190, 0.28);
  background: linear-gradient(180deg, rgba(2, 18, 50, 0.94), rgba(2, 15, 40, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.x-print-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 800;
  color: #f1f5f9;
}

.x-print-panel-title i {
  color: #dbeafe;
  font-size: 15px;
}

/* LABELS */
.x-print-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.88);
}

/* INFO BOX */
.x-print-info-box {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(49, 108, 211, 0.52);
  background: linear-gradient(180deg, rgba(8, 24, 57, 0.98), rgba(9, 22, 49, 0.98));
}

.x-print-info-icon {
  width: 48px;
  min-width: 48px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
}

.x-print-info-value {
  flex: 1;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

/* GRID FORMATOS */
.x-print-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* CARD FORMATO */
.x-print-card {
  position: relative;
  border: 1px solid rgba(45, 96, 190, 0.30);
  border-radius: 18px;
  min-height: 180px;
  background:
    radial-gradient(circle at top center, rgba(31, 91, 205, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(9, 23, 55, 0.98), rgba(5, 16, 39, 0.99));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 22px 18px;
  color: #fff;
  text-align: center;
  transition: all .18s ease;
}

.x-print-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 153, 255, 0.58);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(93, 153, 255, 0.10) inset;
}

.x-print-card:focus {
  outline: none;
}

.x-print-card-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.08));
  color: #dbeafe;
  font-size: 21px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.x-print-card-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.x-print-card-sub {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.78);
}

/* variantes */
.x-print-card.is-ticket .x-print-card-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.08));
  color: #d1fae5;
}

.x-print-card.is-a4 .x-print-card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.08));
  color: #dbeafe;
}

.x-print-card.is-sticker .x-print-card-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
  color: #fde68a;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .x-print-grid {
    grid-template-columns: 1fr;
  }

  .x-print-card {
    min-height: 145px;
  }
}

@media (max-width: 767px) {
  .x-print-modal-dialog {
    max-width: calc(100% - 14px);
    margin: 8px auto;
  }

  .x-print-modal-header {
    padding: 16px 16px 14px;
  }

  .x-print-modal-title {
    font-size: 16px;
  }

  .x-print-modal-subtitle {
    font-size: 13px;
  }

  .x-print-modal-body {
    padding: 12px 8px 14px;
  }

  .x-print-panel {
    padding: 14px 12px 12px;
    border-radius: 16px;
  }

  .x-print-card-title {
    font-size: 22px;
  }
}

/* =========================================================
   MODAL VISOR PDF
========================================================= */
.x-pdf-modal-dialog {
  max-width: 1180px;
  width: calc(100vw - 80px);
  margin: 18px auto;
}

.x-pdf-modal-content {
  border: 1px solid rgba(45, 96, 190, 0.35);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(26, 72, 160, 0.16), transparent 30%),
    linear-gradient(180deg, #07152d 0%, #031126 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.x-pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(78, 126, 214, 0.28);
  background: linear-gradient(180deg, rgba(32, 61, 121, 0.72), rgba(18, 39, 82, 0.56));
}

.x-pdf-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #f3f7ff;
}

.x-pdf-modal-title i {
  color: #dbeafe;
}

.x-pdf-close {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
  text-shadow: none;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: 0;
}

.x-pdf-close:hover {
  color: #fff;
  opacity: 1;
}

.x-pdf-modal-body {
  padding: 0;
  background: #0b1220;
}

/* aquí controlas el tamaño real del visor */
.x-pdf-iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 620px;
  max-height: 820px;
  border: 0;
  background: #111827;
}

@media (max-width: 1200px) {
  .x-pdf-modal-dialog {
    width: calc(100vw - 40px);
    max-width: 1080px;
  }
}

@media (max-width: 768px) {
  .x-pdf-modal-dialog {
    width: calc(100vw - 14px);
    margin: 8px auto;
  }

  .x-pdf-modal-content {
    border-radius: 16px;
  }

  .x-pdf-modal-header {
    padding: 14px 16px;
  }

  .x-pdf-modal-title {
    font-size: 15px;
  }

  .x-pdf-iframe {
    height: 72vh;
    min-height: 480px;
    max-height: none;
  }
}

.x-eo-media-card__meta--firma {
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-chip-firma {
  background: rgba(47, 107, 255, 0.15);
  color: #2f6bff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}

/* .x-eo-media-card__preview img {
  background: #fff;
  object-fit: contain;
  padding: 6px;
  border-radius: 10px;
} */


.x-aprob-card {
  padding: 16px;
  border-radius: 16px;
  background: #0f1f3d;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.x-aprob-card__title {
  color: #fff;
  font-weight: 900;
}

.x-aprob-card__subtitle {
  color: #9aaed0;
  font-size: 12px;
}

.x-aprob-chip {
  background: rgba(40, 199, 111, .15);
  color: #28c76f;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.x-aprob-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.x-aprob-item {
  flex: 1;
}

.x-aprob-label {
  font-size: 11px;
  color: #9aaed0;
}

.x-aprob-value {
  color: #fff;
  font-weight: 700;
}

.x-aprob-texto {
  margin-top: 10px;
  color: #dfe8f6;
  font-size: 13px;
}

.x-aprob-firma img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  margin-top: 10px;
}

/* ===== BLOQUE INFO APROBACION EN VISOR ===== */
.x-eo-aprobacion-info {
  display: none;
  margin-top: 18px;
  width: min(920px, 92%);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.x-eo-ap-card {
  background: rgba(7, 15, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.x-eo-ap-card--full {
  grid-column: 1 / -1;
}

.x-eo-ap-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.x-eo-ap-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #f8fafc;
  word-break: break-word;
}

/* estados */
.x-eo-ap-value.is-success {
  color: #86efac;
}

.x-eo-ap-value.is-warning {
  color: #fcd34d;
}

.x-eo-ap-value.is-danger {
  color: #fca5a5;
}

/* ===== AJUSTE VISOR PARA LAYOUT LATERAL ===== */
.x-eo-viewer-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 520px;
  padding: 32px 72px 24px;
  position: relative;
}

.x-eo-viewer-stages {
  flex: 0 0 48%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#xEoViewerImage {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  padding: 10px 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* columna derecha */
.x-eo-viewer-side {
  flex: 0 0 360px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x-eo-viewer-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.x-eo-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(7, 15, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.x-eo-meta-pill i {
  opacity: .8;
}

/* en layout lateral, las cards van en una sola columna */
.x-eo-viewer-side .x-eo-aprobacion-info {
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr;
}

.x-eo-viewer-side .x-eo-ap-card--full {
  grid-column: auto;
}

/* navegación */
.x-eo-viewer-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(13, 23, 49, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

/* responsive */
@media (max-width: 992px) {
  .x-eo-viewer-body {
    flex-direction: column;
    gap: 18px;
    min-height: auto;
    padding: 28px 18px 20px;
  }

  .x-eo-viewer-stages {
    flex: none;
    width: 100%;
  }

  .x-eo-viewer-side {
    flex: none;
    width: 100%;
    max-width: 760px;
  }

  #xEoViewerImage {
    max-height: 220px;
  }

  .x-eo-viewer-side .x-eo-aprobacion-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .x-eo-viewer-side .x-eo-ap-card--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .x-eo-viewer-side .x-eo-aprobacion-info {
    grid-template-columns: 1fr;
  }

  .x-eo-meta-pill {
    width: 100%;
    justify-content: center;
  }

  #xEoViewerImage {
    max-height: 180px;
    border-radius: 16px;
  }
}

#xEoViewerAprobacionInfo {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.x-aprob-chip--viewer {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#xEoViewerAprobacionInfo {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.x-aprob-chip--viewer {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #22c55e;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.14);
}

.x-aprob-chip--viewer i {
  font-size: 13px;
}

#xEoViewerImage {
  border-radius: 16px;
}

.x-ord-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.x-ord-client {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.x-orders-pro {
  display: grid;
  gap: 18px;
}

.x-orders-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, .18), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(8, 13, 28, .98));
  border: 1px solid rgba(148, 163, 184, .14);
}

.x-orders-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-orders-eyebrow i {
  color: #3b82f6;
  font-size: 9px;
}

.x-orders-title {
  margin-top: 12px;
  color: #fff;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 950;
  letter-spacing: -.05em;
}

.x-orders-subtitle {
  max-width: 680px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.55;
  margin: 10px 0 0;
}

.x-orders-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.x-orders-flow-card,
.x-orders-alerts,
.x-orders-table-panel {
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, .07), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(8, 13, 28, .98));
  border: 1px solid rgba(148, 163, 184, .14);
  color: #fff;
}

.x-orders-flow-card {
  padding: 22px;
  border-left: 4px solid #38bdf8;
}

.x-orders-flow-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.x-orders-flow-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.x-orders-flow-head p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.x-orders-flow-head button {
  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;
}

.x-orders-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 4px 0;
}

.x-orders-flow::before {
  content: "";
  position: absolute;
  top: 49px;
  left: 8%;
  right: 8%;
  border-top: 2px dashed rgba(148, 163, 184, .42);
}

.x-orders-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-orders-node__icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 21px;
  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-orders-node__title {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 900;
}

.x-orders-node strong {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.x-orders-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-orders-node--red .x-orders-node__icon,
.x-orders-node--red strong {
  color: #fb7185;
  border-color: #ef4444;
}

.x-orders-node--blue .x-orders-node__icon,
.x-orders-node--blue strong {
  color: #60a5fa;
  border-color: #3b82f6;
}

.x-orders-node--violet .x-orders-node__icon,
.x-orders-node--violet strong {
  color: #a78bfa;
  border-color: #8b5cf6;
}

.x-orders-node--green .x-orders-node__icon,
.x-orders-node--green strong {
  color: #34d399;
  border-color: #10b981;
}

.x-orders-node--cyan .x-orders-node__icon,
.x-orders-node--cyan strong {
  color: #22d3ee;
  border-color: #06b6d4;
}

.x-orders-node--orange .x-orders-node__icon,
.x-orders-node--orange strong {
  color: #facc15;
  border-color: #f59e0b;
}

.x-orders-alerts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.x-orders-alert {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .76);
  border: 1px solid rgba(148, 163, 184, .12);
  text-align: left;
  color: #fff;
}

.x-orders-alert span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  flex-shrink: 0;
}

.x-orders-alert strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.x-orders-alert small {
  display: block;
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.x-orders-alert--warning span {
  background: rgba(245, 158, 11, .14);
  color: #facc15;
}

.x-orders-alert--orange span {
  background: rgba(249, 115, 22, .14);
  color: #fb923c;
}

.x-orders-alert--danger span {
  background: rgba(239, 68, 68, .14);
  color: #fb7185;
}

.x-orders-alert--gray span {
  background: rgba(148, 163, 184, .14);
  color: #cbd5e1;
}

.x-orders-table-panel {
  overflow: hidden;
}

.x-orders-table-panel .x-panel-head {
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.x-orders-table-panel .x-panel-head h3 {
  color: #fff;
}

.x-orders-table-panel .x-panel-head p {
  color: #94a3b8;
}

@media(max-width:1300px) {
  .x-orders-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .x-orders-flow::before {
    display: none;
  }
}

@media(max-width:992px) {
  .x-orders-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .x-orders-alerts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:576px) {

  .x-orders-flow,
  .x-orders-alerts {
    grid-template-columns: 1fr;
  }
}

.btn-view {
  background: rgba(59, 130, 246, .12);
  color: #60a5fa;
}

.btn-edit {
  background: rgba(139, 92, 246, .12);
  color: #a78bfa;
}

.btn-work {
  background: rgba(245, 158, 11, .12);
  color: #facc15;
}

.btn-print {
  background: rgba(148, 163, 184, .12);
  color: #cbd5e1;
}

.btn-pay {
  background: rgba(16, 185, 129, .15);
  color: #34d399;
}

.btn-cancel {
  background: rgba(239, 68, 68, .15);
  color: #fb7185;
}

.x-hero-card {
  padding: 26px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, .16), transparent 32%),
    radial-gradient(circle at 90% 100%, rgba(16, 185, 129, .10), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(8, 13, 28, .98));
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}

.x-control-hero.x-hero-card {
  padding: 22px 26px;
  min-height: 190px;
}

.x-control-kpi strong {
  font-size: 34px;
  font-weight: 900;
}

.x-control-alerts {
  border-left: 3px solid #fb7185;

}

.x-action-whatsapp {
  background: rgba(34, 197, 94, .14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .28);
}

.x-action-whatsapp:hover {
  background: rgba(34, 197, 94, .22);
  color: #86efac;
  border-color: rgba(34, 197, 94, .45);
}

/* ================================
   SELECT2 XPERTECH - REFACCIONES
================================ */

#modalNuevaOrden .select2-container--bootstrap4 .select2-selection {
  background: rgba(6, 18, 37, 0.92) !important;
  border: 1px solid rgba(47, 107, 255, 0.28) !important;
  color: #f5f7fb !important;
  border-radius: 14px !important;
  min-height: 44px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04),
    0 10px 24px rgba(0, 0, 0, .18) !important;
  display: flex !important;
  align-items: center !important;
}

#modalNuevaOrden .select2-container--bootstrap4.select2-container--focus .select2-selection,
#modalNuevaOrden .select2-container--bootstrap4.select2-container--open .select2-selection {
  border-color: rgba(47, 107, 255, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

#modalNuevaOrden .select2-container--bootstrap4 .select2-selection__rendered {
  color: #f5f7fb !important;
  line-height: 42px !important;
  padding-left: 13px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#modalNuevaOrden .select2-container--bootstrap4 .select2-selection__placeholder {
  color: #9fb0d0 !important;
  font-weight: 500 !important;
}

#modalNuevaOrden .select2-container--bootstrap4 .select2-selection__arrow {
  height: 42px !important;
}

#modalNuevaOrden .select2-container--bootstrap4 .select2-selection__arrow b {
  border-color: #9fb0d0 transparent transparent transparent !important;
}

/* Dropdown */
#modalNuevaOrden .select2-dropdown {
  background: rgba(6, 18, 37, 0.98) !important;
  border: 1px solid rgba(47, 107, 255, 0.32) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  color: #f5f7fb !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .42) !important;
  backdrop-filter: blur(14px);
  z-index: 999999 !important;
}

#modalNuevaOrden .select2-search {
  padding: 10px !important;
  background: rgba(10, 27, 56, 0.78) !important;
  border-bottom: 1px solid rgba(47, 107, 255, 0.18) !important;
}

#modalNuevaOrden .select2-search__field {
  background: rgba(2, 8, 23, 0.65) !important;
  border: 1px solid rgba(159, 176, 208, 0.20) !important;
  color: #f5f7fb !important;
  border-radius: 12px !important;
  padding: 9px 12px !important;
  outline: none !important;
  font-size: 13px !important;
}

#modalNuevaOrden .select2-search__field:focus {
  border-color: rgba(47, 107, 255, 0.70) !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14) !important;
}

#modalNuevaOrden .select2-results {
  background: rgba(6, 18, 37, 0.98) !important;
}

#modalNuevaOrden .select2-results__options {
  max-height: 260px !important;
}

#modalNuevaOrden .select2-results__option {
  color: #e8eefc !important;
  padding: 11px 13px !important;
  border-bottom: 1px solid rgba(159, 176, 208, 0.08) !important;
  background: transparent !important;
}

#modalNuevaOrden .select2-results__option:last-child {
  border-bottom: 0 !important;
}

/* Hover / seleccionado estilo Xpertech */
#modalNuevaOrden .select2-results__option--highlighted {
  background: rgba(47, 107, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #2f6bff !important;
}

#modalNuevaOrden .select2-results__option[aria-selected="true"] {
  background: rgba(47, 107, 255, 0.22) !important;
  color: #ffffff !important;
}

/* Item interno */
#modalNuevaOrden .x-select2-product {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#modalNuevaOrden .x-select2-product__name {
  font-weight: 800;
  color: #f5f7fb;
  font-size: 13px;
  letter-spacing: .1px;
}

#modalNuevaOrden .x-select2-product__meta {
  font-size: 12px;
  color: #9fb0d0;
}

#modalNuevaOrden .select2-results__option--highlighted .x-select2-product__meta {
  color: #cfe0ff;
}

/* Texto cuando no hay resultados */
#modalNuevaOrden .select2-results__message {
  color: #9fb0d0 !important;
  padding: 13px !important;
}

#modalNuevaOrden .x-refaccion-remove {
  position: relative;
  z-index: 50;
  pointer-events: auto !important;
}

#modalNuevaOrden .x-refaccion-item,
#modalNuevaOrden .x-refaccion-item * {
  pointer-events: auto;
}