@charset "UTF-8";
/* ----------------------------------------------------
   MÓDULO MIS PEDIDOS - REDISEÑO MODULAR
   Compilado con Dart Sass a mis-pedidos.css
   ---------------------------------------------------- */
:root {
  --mp-glass-bg: rgba(30, 41, 59, 0.6);
  --mp-glass-border: rgba(255, 255, 255, 0.08);
  --mp-accent: #556ee6;
  --mp-accent-glow: rgba(85, 110, 230, 0.3);
  --mp-text: #eff2f7;
  --mp-text-muted: #a6b0cf;
  /* Vibrant Status Palette (Phase 2) */
  --mp-status-pending: #f1b44c; /* Recibida */
  --mp-status-taken: #e67e22; /* Tomada */
  --mp-status-paid: #3498db; /* Pagada */
  --mp-status-shipped: #9b59b6; /* Liberada */
  --mp-status-completed: #34c38f; /* Completada */
  --mp-status-error: #f46a6a; /* Problemas */
  --mp-status-cancelled: #95a5a6; /* Cancelada */
}

/* ============================================================
   ESTRUCTURA DE MAQUETACIÓN - DASHBOARD DE PEDIDOS
   ============================================================ */
#view-mis-pedidos {
  padding: 30px;
  background: radial-gradient(circle at top right, rgba(85, 110, 230, 0.05), transparent 400px);
}

/* Header Section */
.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--mp-glass-border);
  padding-bottom: 25px;
}
.mp-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #a6b0cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mp-header p {
  color: var(--mp-text-muted);
  font-size: 15px;
  margin-top: 5px;
}

.mp-header-actions {
  display: flex;
  gap: 15px;
}

/* Pestañas Glassmorphism Container */
.mp-tab-container {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--mp-glass-border);
  padding-bottom: 15px;
  position: relative !important;
  z-index: 99 !important;
}

/* Filters & Search Glass Bar */
.mp-filters-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--mp-glass-bg);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--mp-glass-border);
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.mp-search-box {
  position: relative;
  flex: 2;
}
.mp-search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mp-accent);
  font-size: 16px;
}
.mp-search-box input {
  width: 100%;
  padding: 14px 14px 14px 50px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--mp-glass-border);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.3s;
}
.mp-search-box input:focus {
  border-color: var(--mp-accent);
  outline: none;
}

.mp-filters-group {
  display: flex;
  gap: 15px;
  flex: 1;
}

.mp-select {
  width: 100% !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--mp-glass-border);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a6b0cf'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

/* Glass Table Container */
.mp-table-wrapper {
  background: var(--mp-glass-bg);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid var(--mp-glass-border);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative !important;
}
.mp-table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.mp-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.mp-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--mp-glass-border);
  border-radius: 10px;
}
.mp-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--mp-text-muted);
}

.mp-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.mp-orders-table th {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--mp-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--mp-glass-border);
}
.mp-orders-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--mp-glass-border);
  color: var(--mp-text);
  font-size: 14px;
  transition: background 0.2s;
  text-align: center; /* Centrado global de celdas */
}
.mp-orders-table tr:last-child td {
  border-bottom: none;
}
.mp-orders-table tr:hover td {
  background: rgba(85, 110, 230, 0.03);
}

/* Premium Cell Layouts */
.mp-cell-order {
  font-weight: 700;
  color: #fff;
  text-align: left; /* El ID se mantiene a la izquierda por estética */
}

.mp-cell-client {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 200px;
}

.mp-client-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-client-phone {
  font-size: 12px;
  color: var(--mp-text-muted);
}

/* Fix redundant horizontal scrollbars */
body, html {
  overflow-x: hidden;
}

.wb-view {
  overflow-x: hidden;
}

/* ============================================================
   COMPONENTES PREMIUM DEL DASHBOARD DE PEDIDOS
   ============================================================ */
/* Glass Buttons */
.mp-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--mp-glass-border);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.mp-btn-primary {
  background: var(--mp-accent);
  color: white;
  border: none;
  box-shadow: 0 4px 15px var(--mp-accent-glow);
}
.mp-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--mp-accent-glow);
  filter: brightness(1.1);
}

.mp-btn-sync {
  background: rgba(255, 255, 255, 0.03);
  color: var(--mp-text);
}
.mp-btn-sync:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Pestañas Glassmorphic Buttons */
.mp-tab-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--mp-glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--mp-text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}
.mp-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mp-text);
  transform: translateY(-2px);
}
.mp-tab-btn.active {
  background: var(--mp-accent);
  color: white;
  border-color: var(--mp-accent);
  box-shadow: 0 4px 15px var(--mp-accent-glow);
}
.mp-tab-btn.active:hover {
  background: var(--mp-accent);
  color: white;
  filter: brightness(1.1);
}

/* Status Chips (Phase 2 with Icons) */
.mp-status-pill {
  padding: 6px 14px;
  border-radius: 6px; /* vPhase2: Rectangular Redondeado */
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.mp-status-pill i {
  font-size: 12px;
}

.status-pending {
  background: rgba(241, 180, 76, 0.15);
  color: var(--mp-status-pending);
  border: 1px solid rgba(241, 180, 76, 0.2);
}

.status-taken {
  background: rgba(230, 126, 34, 0.15);
  color: var(--mp-status-taken);
  border: 1px solid rgba(230, 126, 34, 0.2);
}

.status-paid {
  background: rgba(52, 152, 219, 0.15);
  color: var(--mp-status-paid);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.status-shipped {
  background: rgba(155, 89, 182, 0.15);
  color: var(--mp-status-shipped);
  border: 1px solid rgba(155, 89, 182, 0.2);
}

.status-completed {
  background: rgba(52, 195, 143, 0.15);
  color: var(--mp-status-completed);
  border: 1px solid rgba(52, 195, 143, 0.2);
}

.status-error {
  background: rgba(244, 106, 106, 0.15);
  color: var(--mp-status-error);
  border: 1px solid rgba(244, 106, 106, 0.2);
}

.status-cancelled {
  background: rgba(149, 165, 166, 0.15);
  color: var(--mp-status-cancelled);
  border: 1px solid rgba(149, 165, 166, 0.2);
}

.status-orden-creada {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-por-acordar {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.status-liberada {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.status-shipped-courier {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.status-on-hold {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.status-refunded {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.status-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.mp-status-pill {
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-status-pill:hover {
  filter: brightness(1.25);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Channel Badges */
.mp-channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mp-channel-tag.whatsapp {
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.2);
}
.mp-channel-tag.wordpress {
  color: #556ee6;
  background: rgba(85, 110, 230, 0.1);
  border-color: rgba(85, 110, 230, 0.2);
}
.mp-channel-tag.crm-notes {
  color: #e67e22;
  background: rgba(230, 126, 34, 0.1);
  border-color: rgba(230, 126, 34, 0.2);
}

/* Action Buttons inside Grid Cells */
.mp-actions {
  display: flex;
  gap: 8px;
}

.mp-btn-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mp-glass-border);
  color: var(--mp-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.mp-btn-action:hover {
  background: var(--mp-accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--mp-accent-glow);
}

/* Botón de Cierre "Square-Red" */
.mp-btn-close-square {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  background: #dc3545 !important;
  color: #fff !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
  border: none !important;
  z-index: 100 !important;
}
.mp-btn-close-square:hover {
  background: #c82333 !important;
  transform: scale(1.05);
}

/* Botón Guardar Dinámico */
.mp-btn-save {
  background: transparent !important;
  color: var(--mp-accent) !important;
  border: 1px solid var(--mp-accent) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.mp-btn-save.pending {
  background: var(--mp-accent) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px var(--mp-accent-glow) !important;
  transform: translateY(-2px);
}

/* Empty State Deluxe & Loaders */
.mp-empty-state {
  padding: 80px 40px !important;
  text-align: center;
}

.mp-empty-icon {
  font-size: 60px;
  color: var(--mp-glass-border);
  margin-bottom: 25px;
}

.mp-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(85, 110, 230, 0.1);
  border-top: 3px solid var(--mp-accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: mpSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 20px var(--mp-accent-glow);
}

@keyframes mpSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Premium Document Badges */
.mp-doc-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  letter-spacing: 0.3px;
}
.mp-doc-badge.cotizacion {
  background: rgba(241, 180, 76, 0.15);
  color: #f1b44c;
  border: 1px solid rgba(241, 180, 76, 0.25);
}
.mp-doc-badge.nota_compra {
  background: rgba(52, 195, 143, 0.15);
  color: #34c38f;
  border: 1px solid rgba(52, 195, 143, 0.25);
}
.mp-doc-badge.pedido {
  background: rgba(85, 110, 230, 0.15);
  color: #a6b0cf;
  border: 1px solid rgba(85, 110, 230, 0.25);
}

/* Premium Batch Progress Bar Styles */
.mp-batch-progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 15px;
  margin-bottom: 5px;
}

.mp-batch-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #556ee6, #3498db);
  width: 0%;
  border-radius: 4px;
  transition: width 0.15s ease-out, background 0.3s ease;
}

/* Document Type Toggle Segment Controller */
.mp-document-type-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  margin-top: 10px;
}

.mp-doc-type-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--mp-text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mp-doc-type-btn:hover {
  color: #fff;
}
.mp-doc-type-btn.active {
  background: var(--mp-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px var(--mp-accent-glow);
}

/* ============================================================
   SISTEMA DE MODALES PLATINUM, DRAWERS Y ACCIONES MASIVAS
   ============================================================ */
/* Platinum Modals */
.mp-modal-platinum {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}
.mp-modal-platinum .wb-modal-header h3 {
  color: #ffffff !important; /* Título en blanco puro (Phase 3.1) */
}
.mp-modal-platinum .wb-modal-footer {
  display: flex !important;
  justify-content: center !important;
  gap: 20px !important;
  padding: 25px !important; /* Más respiración */
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.mp-modal-customer-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 25px;
}

.mp-cust-avatar {
  width: 50px;
  height: 50px;
  background: var(--mp-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.mp-cust-data {
  display: flex;
  flex-direction: column;
}

.mp-cust-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.mp-cust-jid {
  font-size: 13px;
  color: var(--mp-text-muted);
}

/* Status Editor Grid */
.mp-status-editor {
  margin-bottom: 30px;
}
.mp-status-editor h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mp-text-muted);
  margin-bottom: 15px;
}

.mp-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.mp-status-option {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 600;
}
.mp-status-option:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.mp-status-option.active {
  background: var(--mp-accent) !important;
  border-color: var(--mp-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px var(--mp-accent-glow);
}
.mp-status-option:active {
  transform: scale(0.95); /* Efecto táctil al click */
}
.mp-status-option {
  /* Candados de Seguridad */
}
.mp-status-option.blocked {
  opacity: 0.3 !important;
  filter: grayscale(1) !important;
  cursor: not-allowed !important;
  pointer-events: auto; /* Para detectar el click y hacer el shake */
}
.mp-status-option.shake {
  animation: mpShake 0.4s ease-in-out;
}

@keyframes mpShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
    border-color: #ff5e5e !important;
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}
/* Modal Items List */
.mp-modal-items-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mp-text-muted);
  margin-bottom: 15px;
}

.mp-modal-items-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-modal-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mp-modal-item:last-child {
  border-bottom: none;
}

.mp-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mp-item-name {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

.mp-item-sku {
  font-size: 11px;
  color: var(--mp-text-muted);
}

.mp-item-qty {
  padding: 0 20px;
}

.mp-qty-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.mp-item-price {
  font-weight: 700;
  color: var(--mp-accent);
}

.mp-modal-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 5px;
  border-radius: 0 0 16px 16px;
}
.mp-modal-total-bar span {
  font-size: 12px;
  font-weight: 700;
  color: var(--mp-text-muted);
}
.mp-modal-total-bar strong {
  font-size: 24px;
  color: #fff;
}

/* Store info for WC */
.mp-modal-store-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(85, 110, 230, 0.1);
  border: 1px solid rgba(85, 110, 230, 0.2);
  border-radius: 12px;
  margin-bottom: 25px;
}
.mp-modal-store-info i {
  font-size: 24px;
  color: var(--mp-accent);
}

/* Details Modal Table Style */
.mp-details-table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}
.mp-details-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mp-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mp-details-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-details-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mp-details-summary {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--mp-text-muted);
}
.mp-summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  margin-bottom: 0;
}

.mp-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Unification Wizard Styles (Drawers) */
.mp-unify-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  color: #fff;
}
.mp-unify-drawer.open {
  right: 0;
}

.mp-unify-header {
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mp-unify-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a6b0cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mp-unify-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mp-unify-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 30, 0.5);
  display: flex;
  gap: 15px;
}

.mp-contact-accordion {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s;
}
.mp-contact-accordion.active {
  border-color: var(--mp-accent);
  background: rgba(85, 110, 230, 0.05);
}
.mp-contact-accordion.expanded .mp-accordion-content {
  max-height: 500px;
  border-top-width: 1px;
}

.mp-accordion-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.mp-accordion-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mp-accordion-name {
  font-weight: 600;
  font-size: 14px;
}

.mp-accordion-phone {
  font-size: 12px;
  color: var(--mp-text-muted);
}

.mp-accordion-badge {
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.mp-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.2);
  border-top: 0 solid rgba(255, 255, 255, 0.05);
}

.mp-cart-item-row {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
  font-size: 13px;
}
.mp-cart-item-row:last-child {
  border-bottom: none;
}

.mp-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
  accent-color: var(--mp-accent);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
}
.mp-checkbox:hover {
  border-color: var(--mp-accent);
  box-shadow: 0 0 8px var(--mp-accent-glow);
}
.mp-checkbox:checked {
  background: var(--mp-accent);
  border-color: var(--mp-accent);
}
.mp-checkbox:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.mp-cart-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-cart-meta {
  font-size: 11px;
  color: var(--mp-text-muted);
}

.mp-cart-total {
  font-weight: 700;
  color: var(--mp-accent);
}

.mp-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}
.mp-drawer-overlay.open {
  display: block;
}

/* Inline Batch Actions Bar (Glassmorphic Deluxe) */
.mp-batch-actions-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.mp-batch-actions-bar.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.mp-batch-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-batch-count {
  background: var(--mp-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--mp-accent-glow);
  padding: 0 4px;
}

.mp-batch-label {
  color: var(--mp-text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mp-batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-batch-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--mp-text);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-batch-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.mp-batch-btn:active {
  transform: translateY(0);
}

.mp-batch-btn-primary {
  background: var(--mp-accent);
  border-color: var(--mp-accent);
  box-shadow: 0 2px 8px var(--mp-accent-glow);
}
.mp-batch-btn-primary:hover {
  background: var(--mp-accent);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px var(--mp-accent-glow);
}

.mp-batch-btn-archive-paid:hover {
  background: rgba(52, 152, 219, 0.12);
  color: var(--mp-status-paid);
  border-color: rgba(52, 152, 219, 0.25);
}

.mp-batch-btn-archive-cancel:hover {
  background: rgba(244, 106, 106, 0.12);
  color: var(--mp-status-error);
  border-color: rgba(244, 106, 106, 0.25);
}

.mp-batch-btn-unarchive:hover {
  background: rgba(85, 110, 230, 0.12);
  color: var(--mp-accent);
  border-color: rgba(85, 110, 230, 0.25);
}

.mp-batch-btn-delete:hover {
  background: rgba(220, 53, 69, 0.25) !important;
  border-color: rgba(220, 53, 69, 0.4) !important;
}

.mp-batch-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 5px;
}

.mp-batch-btn-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--mp-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 11px;
}
.mp-batch-btn-close:hover {
  border-color: var(--mp-text-muted);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

/* Status assignment Dropdown Popup */
.mp-batch-status-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 180px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  transform-origin: top left;
}
.mp-batch-status-popup.open {
  display: flex;
  animation: popupEntrance 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes popupEntrance {
  0% {
    transform: scale(0.95) translateY(-5px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.mp-popup-header {
  font-size: 9px;
  font-weight: 800;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

.mp-popup-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 12px;
  color: var(--mp-text);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.mp-popup-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.mp-popup-item i {
  font-size: 11px;
}

/* Premium Glassmorphic Batch Loader Overlay */
.mp-batch-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
  pointer-events: none;
}
.mp-batch-loader-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mp-batch-loader-overlay.open .mp-batch-loader-card {
  transform: translateY(0);
}

.mp-batch-loader-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mp-batch-loader-card h3 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.mp-batch-loader-card p {
  margin: 0;
  color: #a6b0cf;
  font-size: 14px;
  line-height: 1.6;
}

.mp-batch-loader-spinner {
  font-size: 40px;
  color: #556ee6;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(85, 110, 230, 0.5);
}

.mp-batch-loader-success-icon {
  font-size: 48px;
  color: #34c38f;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(52, 195, 143, 0.4);
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.mp-batch-loader-error-icon {
  font-size: 48px;
  color: #f46a6a;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(244, 106, 106, 0.4);
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* ============================================================
   SISTEMA DE DISEÑO RESPONSIVO - MÓDULO MIS PEDIDOS (v8.5)
   ============================================================ */
@media (max-width: 1024px) {
  .mp-filters-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }
  .mp-search-box {
    flex: none !important;
    width: 100% !important;
  }
  .mp-filters-group {
    flex: none !important;
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  #view-mis-pedidos {
    padding: 15px !important;
  }
  .mp-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
  }
  .mp-header h1 {
    font-size: 24px !important;
  }
  .mp-header-actions {
    width: 100% !important;
    flex-wrap: wrap !important;
  }
  .mp-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  /* Tabs scrollable horizontal list on mobile */
  .mp-tab-container {
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
  .mp-tab-btn {
    flex: 0 0 auto !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  /* Filters Bar stack */
  .mp-filters-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 15px !important;
    gap: 12px !important;
  }
  .mp-filters-bar > * {
    width: 100% !important;
  }
  .mp-filters-group {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .mp-search-box {
    max-width: 100% !important;
  }
  /* Table responsiveness (enable touch scroll) */
  .mp-table-wrapper {
    overflow-x: auto !important;
    background: rgba(30, 41, 59, 0.4) !important;
    border-radius: 12px !important;
    margin-top: 15px !important;
    -webkit-overflow-scrolling: touch;
  }
  .mp-orders-table {
    min-width: 700px !important; /* Forces scroll bar instead of squishing cells */
  }
  .mp-orders-table th,
  .mp-orders-table td {
    padding: 10px 12px !important;
    font-size: 12.5px !important;
  }
  /* Detail / status Editor adjustments */
  .mp-status-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Fullscreen Wizard / size grid */
  .size-matrix-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
    gap: 8px !important;
  }
  .size-matrix-input {
    height: 44px !important; /* Generous touch size */
    font-size: 14px !important;
  }
  /* Ultra-thin elegant scrollbars on mobile */
  .mp-table-wrapper::-webkit-scrollbar,
  .mp-tab-container::-webkit-scrollbar {
    height: 4px !important;
    width: 4px !important;
  }
  .mp-table-wrapper::-webkit-scrollbar-thumb,
  .mp-tab-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
  }
}

/* ============================================================
   WOOCOMMERCE LIVE SYNC & ORDER DETAILS STYLES
   ============================================================ */
.mp-live-sync-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(85, 110, 230, 0.08);
  border: 1px solid rgba(85, 110, 230, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.mp-live-sync-banner:hover {
  background: rgba(85, 110, 230, 0.12);
  border-color: rgba(85, 110, 230, 0.4);
}

.mp-shipping-address-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.mp-shipping-address-card:hover {
  border-color: rgba(163, 230, 53, 0.3);
}

.mp-customer-note-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

/* ============================================================
   OPERATIONAL SUITE: QR CODES, ACCORDIONS & CHECKLIST
   ============================================================ */
.mp-product-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mp-product-card:hover {
  border-color: rgba(56, 189, 248, 0.3) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.mp-btn-sku-qr:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  transform: translateY(-1px);
}

.mp-btn-checklist:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  transform: translateY(-1px);
}

.mp-btn-download-note:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  transform: translateY(-1px);
}

.mp-btn-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.mp-checklist-row.item-completed {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

.mp-checklist-row.item-pending:hover {
  border-color: rgba(56, 189, 248, 0.25) !important;
}

.mp-item-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.mp-rendered-qr {
  background: #ffffff;
  padding: 3px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 0;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mp-rendered-qr:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
  border-color: #38bdf8;
}

.mp-rendered-qr svg {
  display: block;
}

.mp-qr-scan-label {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}



