.ppf-panel { font-family: Arial, sans-serif; max-width:100%; overflow-x:auto; }
        .ppf-panel h2 { margin-bottom:15px;color:#333; }
        .ppf-panel table { width:100%; border-collapse:collapse; }
        .ppf-panel table th, .ppf-panel table td { padding:10px; border-bottom:1px solid #ddd; text-align:left; vertical-align:middle; }
        .ppf-panel table tr:hover { background:#f9f9f9; }
        .ppf-panel select { padding:5px 8px; border-radius:4px; border:1px solid #ccc; font-size:0.95em; }
        .ppf-panel button.ppf-btn-update { padding:5px 10px; margin-left:5px; border:none; border-radius:4px; background:#007bff; color:#fff; cursor:pointer; font-size:0.95em; }
        .ppf-panel button.ppf-btn-update:disabled { background:#ccc; cursor:not-allowed; }
        .ppf-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.ppf-badge-processing { background:#fde68a; color:#92400e; }
.ppf-badge-completed  { background:#bbf7d0; color:#065f46; }
.ppf-badge-pending    { background:#e5e7eb; color:#374151; }
.ppf-badge-cancelled  { background:#fecaca; color:#7f1d1d; }
.ppf-badge-failed     { background:#fecaca; color:#7f1d1d; }
.ppf-badge-refunded   { background:#e0e7ff; color:#3730a3; }

        /* Responsive mobile */
        @media (max-width: 768px) {
            .ppf-panel table thead { display: none; }
            .ppf-panel table, .ppf-panel table tbody, .ppf-panel table tr, .ppf-panel table td {
                display: block;
                width: 100%;
            }
            .ppf-panel table tr { margin-bottom: 15px; border-bottom: 2px solid #eee; }
            .ppf-panel table td {
                text-align: right;
                padding-left: 50%;
                position: relative;
                white-space: normal;
            }
            .ppf-panel table td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                width: 45%;
                font-weight: bold;
                text-align: left;
            }
            .ppf-panel select, .ppf-panel button { width: 100%; margin-top: 5px; }
        }
        
  


@media (max-width: 640px) {
  table thead {
    display: none;
  }

  table tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
  }

  table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
  }

  table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
  }
}

.ppf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ppf-modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.ppf-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.ppf-order {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.ppf-order h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.ppf-order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f4ff;
    color: #1d4ed8;
}
.ppf-products {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.ppf-products li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.ppf-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ppf-actions button {
    background: #111827;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
}
.ppf-products li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ppf-qty {
    background: #e5e7eb;
    color: #111827;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
}
.ppf-notice.success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}
.ppf-btn-update {
    background: #111827;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}
.ppf-btn-update:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}


.ppf-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #22c55e;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all .25s ease;
}

.ppf-toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* Estado cargando */
.ppf-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Badge base */
.ppf-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Colores */
.ppf-badge-processing { background:#fbbf24; }
.ppf-badge-completed  { background:#3b82f6; }
.ppf-badge-entregado  { background:#22c55e; }


/* Feedback */
.ppf-updated {
    animation: ppfFlash 1s ease;
}

@keyframes ppfFlash {
    0%   { background:#d4edda; }
    100% { background:transparent; }
}
.ppf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ppf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}

.ppf-btn:hover {
    transform: translateY(-1px);
}

.ppf-btn-view {
    background: #e0f2fe;
    color: #075985;
}

.ppf-btn-view:hover {
    background: #bae6fd;
}

.ppf-btn-pdf {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ppf-btn-pdf:hover {
    background: #e5e7eb;
}

.ppf-icon svg {
    display: block;
}
/* Forzar color del botón boleta */
.ppf-btn-pdf {
    color: #374151 !important;
}

/* Forzar color del ícono SVG */
.ppf-btn-pdf svg {
    stroke: #374151 !important;
}

/* Evitar que :visited lo cambie */
.ppf-btn-pdf:visited {
    color: #374151;
}
.ppf-client-order-status {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.ppf-client-order-status h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.ppf-order-status-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ppf-step {
    padding: 14px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #f3f4f6;
    color: #9ca3af;
}

.ppf-step.active {
    background: #22c55e;
    color: #fff;
}
.ppf-card.active {
    background: #22c55e;
    color: #fff;
}

.ppf-view-order {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}
/* ===== CARDS ===== */
/* CONTENEDOR DEL PANEL */
#ppf-panel .ppf-card,
.ppf-panel .ppf-card,
.ppf-cards .ppf-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transition: all .25s ease;
    cursor: pointer;
}
/* Para preparar */
.ppf-card[data-status="processing"] {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-left: 5px solid #fb923c;
}

/* En camino */
.ppf-card[data-status="completed"] {
    background: linear-gradient(135deg, #ecfeff, #ffffff);
    border-left: 5px solid #0ea5e9;
}

/* Entregados */
.ppf-card[data-status="entregado"] {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border-left: 5px solid #22c55e;
}
.ppf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.ppf-card-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.ppf-card-label {
    font-size: 14px;
    opacity: .75;
    margin-top: 6px;
}
/* =========================
   PANEL PEDIDOS FRONTEND
========================= */
.ppf-client-order-status {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.ppf-client-order-status h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.ppf-order-status-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ppf-step {
    padding: 14px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #f3f4f6;
    color: #9ca3af;
}

.ppf-step.active {
    background: #22c55e;
    color: #fff;
}

.ppf-view-order {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}
.panel-pedidos-woo table {
    width: 100%;
    border-collapse: collapse;
}

.panel-pedidos-woo th,
.panel-pedidos-woo td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.ppf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ppf-modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.ppf-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.ppf-order {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.ppf-order h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.ppf-order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f4ff;
    color: #1d4ed8;
}
.ppf-products {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.ppf-products li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.ppf-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ppf-actions button {
    background: #111827;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
}
.ppf-products li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ppf-qty {
    background: #e5e7eb;
    color: #111827;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
}
.ppf-notice.success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}
.ppf-btn-update {
    background: #111827;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}
.ppf-btn-update:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}
.ppf-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 15px;
}

.ppf-row-3 {
  grid-template-columns: repeat(3,1fr);
}

.ppf-card {
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
}

.ppf-card small {
  display:block;
  font-weight:400;
  opacity:.8;
}

.is-processing { background:#fff7ed; color:#c2410c; }
.is-completed  { background:#ecfeff; color:#0369a1; }
.is-entregado  { background:#ecfdf5; color:#047857; }

.ppf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end; /* Alinea todos los inputs y botones al mismo nivel */
    margin-bottom: 16px;
    font-family: sans-serif;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 180px; /* Se adapta al ancho disponible */
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.filter-group input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border 0.2s, box-shadow 0.2s;
}

.filter-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    outline: none;
}

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

.filter-actions button,
.filter-actions .clear-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.filter-actions button {
    background-color: #2563eb;
    color: #fff;
}

.filter-actions button:hover {
    background-color: #1e40af;
}

.filter-actions .clear-btn {
    background-color: #f3f4f6;
    color: #374151;
}

.filter-actions .clear-btn:hover {
    background-color: #e5e7eb;
}


.ppf-orders {
  width:100%;
  border-collapse:collapse;
}

.ppf-orders th,
.ppf-orders td {
  padding:8px;
  border-bottom:1px solid #eee;
}

@media(max-width:768px){
  .ppf-row-3 { grid-template-columns:1fr; }
}
/* ===============================
   CARDS TOTALES (DASHBOARD)
================================ */

.ppf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ppf-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ppf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.ppf-card-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.ppf-card-label {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* separadores visuales */
.ppf-cards-main {
    margin-bottom: 10px;
}

.ppf-cards-days {
    margin-bottom: 22px;
}
.ppf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ppf-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    cursor: pointer;
    transition: transform .15s ease;
}

.ppf-card:hover {
    transform: translateY(-2px);
}

.ppf-card-value {
    font-size: 26px;
    font-weight: 700;
}

.ppf-card-label {
    font-size: 13px;
    opacity: .7;
}
/* UL como grid flexible */
.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

/* LI */
.woocommerce-MyAccount-navigation ul li {
    flex: 1 1 180px;
}

/* LINKS */
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f6f7f8;
    color: #374151 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, color .2s, box-shadow .2s;
}

/* Hover */
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #eef0f2;
}

/* Activo */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #e5e7eb;
    box-shadow: inset 2px 0 0 #2563eb;
    color: #111827 !important;
}

/* SVG */
.woocommerce-MyAccount-navigation svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: .7;
}

/* Logout ligeramente diferenciado */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #991b1b !important;
    background: #fdf2f2;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fee2e2;
}

/* Responsive */
@media (max-width: 640px) {
    .woocommerce-MyAccount-navigation ul li {
        flex: 1 1 100%;
    }
}
.woocommerce-account .woocommerce {
    font-family: 'Rubik', sans-serif;
}
.myaccount-intro {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
}
/* Quitar saludo y texto del dashboard Woo */
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
.woocommerce-account .woocommerce-MyAccount-content > p:nth-of-type(2) {
    display: none;
}
/* Eliminar borde / outline / sombra residual */
.woocommerce-MyAccount-navigation ul li {
    background: transparent !important;
    border: none !important;
    overflow: hidden;
    border-radius: 8px;
}

.woocommerce-MyAccount-navigation ul li a {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
/* Header completo */
.site-header,
header,
.wp-site-blocks header {
    font-family: 'Rubik', sans-serif;
}
/* Menú del header */
.main-navigation a,
.wp-block-navigation a {
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none; /* por si el theme usa mayúsculas */

}





