.mv-wrap{max-width:1100px}
.mv-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}
.mv-table{width:100%;border-collapse:collapse}
.mv-table th,.mv-table td{border:1px solid #e2e2e2;padding:8px 10px;text-align:left}
.mv-table th{background:#f7f7f7}
.mv-table a.mv-open-order{color:#2271b1;text-decoration:underline;cursor:pointer}

.mv-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:9999}
.mv-modal.is-open{display:flex}
.mv-modal__box{background:#fff;max-width:900px;width:92vw;max-height:85vh;overflow:auto;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.mv-modal__head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #eee}
.mv-modal__body{padding:12px 14px}
.mv-modal__close{background:none;border:0;font-size:22px;line-height:1;cursor:pointer}
.mv-modal-head{margin-bottom:8px}
.mv-modal-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 14px}
.mv-modal-table{width:100%;border-collapse:collapse}
.mv-modal-table th,.mv-modal-table td{border:1px solid #e2e2e2;padding:6px 8px;text-align:left}

@media (max-width:700px){
  .mv-modal-cols{grid-template-columns:1fr}
}

@media print{
  /* imprime SOLO la tabla */
  body *{ visibility: hidden !important; }
  .mv-table, .mv-table *{ visibility: visible !important; }
  .mv-table{ position:absolute; left:0; top:0; width:100%; }
  /* ocultar cabeceras/menus/botones */
  #wpadminbar,.site-header,.site-footer,
  .woocommerce-MyAccount-navigation,.mv-actions{ display:none !important; }
  /* repetir thead y no cortar filas */
  .mv-table thead{ display:table-header-group; }
  .mv-table tfoot{ display:table-footer-group; }
  .mv-table tr{ break-inside:avoid; page-break-inside:avoid; }
}
/* ===========================
   Botones de exportación
   =========================== */

/* CSV = azul claro */
.mv-actions a.button[href*="type=csv"]{
  background: #e7f2ff;
  border-color: #b3d7ff;
  color: #0b3d91;
}
.mv-actions a.button[href*="type=csv"]:hover,
.mv-actions a.button[href*="type=csv"]:focus{
  background: #d8ebff;
  border-color: #9fcaff;
  color: #072f6b;
}

/* Excel = verde claro */
.mv-actions a.button[href*="type=xls"],
.mv-actions a.button[href*="type=xlsx"]{
  background: #e8f8ef;
  border-color: #bfead0;
  color: #166534;
}
.mv-actions a.button[href*="type=xls"]:hover,
.mv-actions a.button[href*="type=xls"]:focus,
.mv-actions a.button[href*="type=xlsx"]:hover,
.mv-actions a.button[href*="type=xlsx"]:focus{
  background: #def4e7;
  border-color: #a7e0c0;
  color: #14532d;
}

/* PDF (imprimir) = rojo claro */
.mv-actions button.button[onclick*="print"]{
  background: #ffeaea;
  border-color: #ffcccc;
  color: #7f1d1d;
}
.mv-actions button.button[onclick*="print"]:hover,
.mv-actions button.button[onclick*="print"]:focus{
  background: #ffdede;
  border-color: #ffbdbd;
  color: #6b1515;
}

/* (Opcional) uniformar bordes y peso del texto de los botones */
.mv-actions .button{
  border-width: 1px;
  font-weight: 600;
}

/* ===== Icono seguro para "Mis ventas" (sin solaparse) ===== */
.woocommerce-MyAccount-navigation-link--mis-ventas a{
  position: relative;
  display: block;            /* como el resto de enlaces del menú */
  padding-left: 2.1rem;      /* reserva espacio para el icono */
  line-height: 1.4;
}

.woocommerce-MyAccount-navigation-link--mis-ventas a::before{
  content: "";
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 1.05rem;

  /* ¡clave!: que no sea absoluto, para que no pise el texto */
  position: static !important;

  background-repeat: no-repeat;
  background-size: contain;
  opacity: .9;

  /* SVG gris (puedes cambiar el color en stroke=%23666) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h7.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--mis-ventas a:hover::before,
.woocommerce-MyAccount-navigation-link--mis-ventas.is-active a::before{
  opacity: 1;
}
