/* ═══════════════════════════════════════════════ */
/* Product Viewer — Styles                         */
/* Extracted from _productos.html for modularity   */
/* ═══════════════════════════════════════════════ */

/* ── Harmonized Tab Card System (tokens from --pv-*) ── */
.pv-tab-card {
    background: var(--pv-card-surface);
    backdrop-filter: var(--pv-glass-blur);
    -webkit-backdrop-filter: var(--pv-glass-blur);
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-card-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--pv-elevation);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pv-tab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pv-tab-card-title {
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-lg);
    font-weight: 700;
    color: var(--pv-text-primary);
    margin: 0;
}

.pv-tab-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pv-tab-table-wrap {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--pv-card-border);
    border-radius: 12px;
}

.pv-tab-thead {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 2;
}

.pv-tab-tbody {
    background: var(--pv-bg-base);
}

.pv-tab-tbody tr {
    border-bottom: 1px solid rgba(56, 73, 107, 0.12);
    transition: background 0.15s;
}

.pv-tab-tbody tr:hover {
    background: rgba(34, 211, 238, 0.04);
}

.pv-tab-footer {
    margin-top: 0.5rem;
    font-size: var(--pv-text-xs);
    color: var(--pv-text-secondary);
    display: flex;
    justify-content: space-between;
}

.pv-tab-form-box {
    background: var(--pv-card-surface-solid);
    border: 1px solid var(--pv-card-border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

/* ── Costos Fórmula Stats ── */
.fc-stat {
    background: var(--pv-card-surface-solid);
    border: 1px solid var(--pv-card-border);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fc-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pv-text-primary);
}

.fc-stat-value.fc-mp {
    color: var(--pv-text-primary);
    font-weight: 800;
}

.fc-stat-value.fc-me {
    color: var(--pv-text-primary);
    font-weight: 800;
}

.fc-stat-label {
    font-size: 0.7rem;
    color: var(--pv-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ── Envasado Table Styles ── */
.env-th {
    padding: 10px 12px;
    text-align: left;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(56, 73, 107, 0.35);
}

.env-th-code {
    color: #22d3ee;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.env-th-sticky {
    position: sticky;
    left: 0;
    z-index: 3;
    background: rgba(15, 23, 42, 0.98);
}

.env-td {
    padding: 8px 12px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(56, 73, 107, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-size: 0.78rem;
    transition: background 0.15s;
}

.env-td-code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #22d3ee;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.env-td-sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    background: rgba(10, 14, 26, 0.95);
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.02em;
    font-family: 'JetBrains Mono', monospace;
}

.env-td-actions {
    text-align: center;
    white-space: nowrap;
    position: sticky;
    right: 0;
    z-index: 1;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(8px);
}

/* Zebra striping */
#env-tbody tr:nth-child(even) .env-td {
    background: rgba(15, 23, 42, 0.3);
}

#env-tbody tr:nth-child(even) .env-td-sticky {
    background: rgba(15, 23, 42, 0.95);
}

#env-tbody tr:nth-child(even) .env-td-actions {
    background: rgba(15, 23, 42, 0.92);
}

/* Hover */
#env-tbody tr:hover .env-td {
    background: rgba(34, 211, 238, 0.06);
}

#env-tbody tr:hover .env-td-sticky {
    background: rgba(20, 30, 55, 0.98);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
}

#env-tbody tr:hover .env-td-actions {
    background: rgba(20, 30, 55, 0.98);
}

.env-btn-sm {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    opacity: 0.6;
}

#env-tbody tr:hover .env-btn-sm {
    opacity: 1;
}

.env-btn-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.15);
}

/* ═══════════════════════════════════════ */
/* Summary Dashboard                      */
/* ═══════════════════════════════════════ */
.pv-summary {
    padding: 0 0 20px;
}

.pv-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .pv-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pv-kpi-card {
    background: var(--pv-card-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--pv-card-border);
    border-left: 3px solid var(--kpi-color, #64748b);
    border-radius: var(--pv-card-radius);
    padding: 14px 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pv-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(34, 211, 238, 0.06);
}

.pv-kpi-value {
    font-size: var(--pv-text-2xl);
    font-weight: 700;
    color: #f1f5f9;
    font-family: var(--pv-font-mono);
    font-feature-settings: 'tnum' 1;
}

.pv-kpi-label {
    font-size: var(--pv-text-xs);
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    font-family: var(--pv-font-ui);
}

.pv-info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .pv-info-row {
        grid-template-columns: 1fr;
    }
}

.pv-info-card {
    background: var(--pv-card-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-card-radius);
    padding: 14px 16px;
}

.pv-info-card-title {
    font-size: var(--pv-text-xs);
    font-weight: 700;
    font-family: var(--pv-font-ui);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: var(--pv-text-sm);
    border-bottom: 1px solid rgba(56, 73, 107, 0.15);
}

.pv-info-list li:last-child {
    border-bottom: none;
}

.pv-info-key {
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-ui);
}

.pv-info-val {
    color: var(--pv-text-primary);
    font-weight: 500;
    font-family: var(--pv-font-mono);
    font-feature-settings: 'tnum' 1;
}

/* Loading overlay */
#pv-loading-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.pv-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #1e293b;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: pv-spin 0.7s linear infinite;
}

@keyframes pv-spin {
    to {
        transform: rotate(360deg);
    }
}

.pv-loading-text {
    color: #94a3b8;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* ── Section Dividers ── */
.pv-section {
    margin-bottom: 0.5rem;
}

.pv-section-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.25rem;
}

.pv-section-divider-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pv-text-primary, #e2e8f0);
    white-space: nowrap;
}

.pv-section-divider-line {
    flex: 1;
    min-width: 0;
    height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.pv-section-divider .pv-accordion-summary {
    font-size: 0.72rem;
    color: var(--pv-text-secondary, #64748b);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Fields Container ── */
.pv-fields-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.25rem 0.75rem;
}

/* ── Group Tabs (Segmented Control — HOM style) ── */
.pv-group-tabs {
    padding: 0 0.25rem 0.5rem;
}

.pv-group-tabs-bar {
    display: flex;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pv-group-tabs-bar::-webkit-scrollbar {
    display: none;
}

.pv-gtab {
    position: relative;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pv-gtab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.pv-gtab--active {
    background: transparent;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    box-shadow: none;
}

.pv-gtab-panel {
    padding: 1.25rem 0.25rem 0;
}

/* Gestalt spacing: wider gaps between field groups */
.pv-gtab-panel .grid {
    row-gap: 28px !important;
    column-gap: 40px !important;
}

/* Value typography: 14px white medium-weight */
.pv-gtab-panel .pv-input[readonly] {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* ── Mini Table Section (Card style) ── */
.pv-mini-table-section {
    background: var(--pv-card-surface, #151b2b);
    border: 1px solid var(--pv-card-border, rgba(56, 73, 107, 0.3));
    border-radius: var(--pv-card-radius, 16px);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--pv-elevation, 0 4px 24px rgba(0, 0, 0, 0.3));
}

.pv-mini-table-header {
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.pv-mini-table th {
    padding: 6px 12px;
    text-align: left;
    color: #64748b;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    border-bottom: 1px solid #1e293b;
}

.pv-mini-table td {
    padding: 7px 12px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.pv-mini-table tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

.pv-mini-table .pv-mt-money {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.pv-mini-table .pv-mt-center {
    text-align: center;
}

/* ═══════════════════════════════════════ */
/* Recents chips                           */
/* ═══════════════════════════════════════ */
.pv-recents {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0 4px;
    min-height: 0;
    align-items: stretch;
}

.pv-recents:empty {
    display: none;
}

.pv-recents::before {
    content: 'Recientes';
    display: flex;
    align-items: center;
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pv-text-secondary);
    padding-right: 4px;
}

.pv-recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--pv-card-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--pv-card-border);
    border-radius: 12px;
    color: var(--pv-text-primary);
    font-family: var(--pv-font-ui);
    font-size: var(--pv-text-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pv-recent-chip:hover {
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 8px rgba(34, 211, 238, 0.08);
}

.pv-recent-chip .pv-rc-sku {
    color: var(--pv-accent-cyan);
    font-family: var(--pv-font-mono);
    font-weight: 600;
    font-size: var(--pv-text-xs);
}

/* ═══════════════════════════════════════ */
/* Completion indicator dots               */
/* ═══════════════════════════════════════ */
.pv-section-dot.pv-dot--complete {
    background: #22c55e !important;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.pv-section-dot.pv-dot--partial {
    background: #eab308 !important;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.3);
}

.pv-section-dot.pv-dot--empty {
    background: #ef4444 !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════ */
/* Product Catalog                         */
/* ═══════════════════════════════════════ */
.pv-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pv-catalog-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.pv-catalog-count {
    font-size: 0.78rem;
    color: #64748b;
}

.pv-catalog-head-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pv-catalog-new-btn {
    font-family: var(--pv-font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    background: var(--pv-accent, #3b82f6);
    border: none;
    border-radius: 9px;
    padding: 7px 15px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    box-shadow: 0 6px 16px -8px rgba(59, 130, 246, 0.7);
}

.pv-catalog-new-btn:hover {
    background: var(--pv-accent-hover, #2563eb);
}

/* ── Alta de producto: estado de éxito (con CTA "Calcular precio") ── */
.np-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    max-width: 620px;
    margin: 28px auto 36px;
    padding: 34px 30px;
    background: linear-gradient(180deg, rgba(18, 24, 40, 0.88), rgba(10, 14, 26, 0.88));
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 14px;
    box-shadow: 0 24px 70px -46px rgba(34, 211, 238, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: none;
}

.np-success-check {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.22), 0 12px 28px -18px rgba(74, 222, 128, 0.8);
}

.np-success:focus-visible { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 24px 70px -46px rgba(34, 211, 238, 0.65); }
.np-success-title { font-size: 1.12rem; font-weight: 650; color: var(--pv-text-primary); }
.np-success-sku { font-size: 0.9rem; color: var(--pv-text-secondary); }
.np-success-sku-num { font-family: var(--pv-font-mono); color: #cfd8e6; font-weight: 600; }
.np-success-hint { font-size: 0.82rem; color: var(--pv-text-3, #5e6c84); line-height: 1.5; margin-top: 2px; }
.np-success-hint strong { color: var(--pv-text-secondary); }

.np-success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

.np-success-btn {
    font-family: var(--pv-font-ui);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.np-success-btn--primary { background: var(--pv-accent, #3b82f6); color: #fff; box-shadow: 0 6px 16px -8px rgba(59, 130, 246, 0.7); }
.np-success-btn--primary:hover { background: var(--pv-accent-hover, #2563eb); }
.np-success-btn--ghost { background: rgba(255, 255, 255, 0.015); color: var(--pv-text-secondary); border-color: var(--pv-card-border); }
.np-success-btn--ghost:hover { color: var(--pv-text-primary); border-color: rgba(148, 163, 184, 0.35); }
.np-success-btn--quiet { background: transparent; color: var(--pv-text-3, #5e6c84); }
.np-success-btn--quiet:hover { color: var(--pv-text-secondary); }

.pv-catalog-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pv-catalog-filter {
    padding: 6px 13px;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid var(--pv-line, rgba(255, 255, 255, 0.05));
    border-radius: 999px;
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.pv-catalog-filter:hover {
    color: var(--pv-text-primary);
}

.pv-catalog-filter.active {
    background: rgba(59, 130, 246, 0.16);
    color: #cfe0ff;
    border-color: rgba(59, 130, 246, 0.28);
    font-weight: 600;
}

.pvc-fc {
    color: var(--pv-text-4, #4a566c);
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
}

.pv-catalog-filter.active .pvc-fc {
    color: rgba(207, 224, 255, 0.6);
}

/* ── Catalog as a list / table ── */
.pv-catalog-table-wrap {
    border: 1px solid var(--pv-line, rgba(255, 255, 255, 0.05));
    border-radius: 13px;
    background: rgba(20, 26, 40, 0.42);
    overflow: auto;
    max-height: 62vh;
}

.pv-catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--pv-font-ui);
}

.pvc-th {
    position: sticky;
    top: 0;
    background: rgba(16, 21, 34, 0.96);
    color: var(--pv-text-4, #4a566c);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 11px 14px;
    white-space: nowrap;
    border-bottom: 1px solid var(--pv-line, rgba(255, 255, 255, 0.05));
    z-index: 2;
}

.pvc-th-sort {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.pvc-th-sort:hover {
    color: var(--pv-text-primary);
}

.pvc-th-num {
    width: 44px;
    text-align: center;
}

.pvc-th-r {
    text-align: right;
}

.pvc-sort-arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    color: var(--pv-text-muted);
}

.pvc-row {
    cursor: pointer;
    transition: background 0.12s ease;
}

.pvc-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Franja de color por estatus a la izquierda de cada fila */
.pvc-td-num {
    position: relative;
}

.pvc-td-num::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 2px;
    background: var(--pvc-bar, transparent);
}

.pvc-row[data-status="active"] { --pvc-bar: #4ade80; }
.pvc-row[data-status="dev"] { --pvc-bar: #fbbf24; }
.pvc-row[data-status="disc"] { --pvc-bar: #f87171; }
.pvc-row[data-status="paused"] { --pvc-bar: #94a3b8; }
.pvc-row[data-status="reform"] { --pvc-bar: #c084fc; }

.pvc-td {
    padding: 9px 14px;
    font-size: var(--pv-text-sm);
    color: var(--pv-text-primary);
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
    white-space: nowrap;
}

.pvc-td-num {
    text-align: center;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-xs);
    font-family: var(--pv-font-mono);
}

.pvc-td-sku {
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-xs);
    color: #cfd8e6;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Columna "Tipo": texto sobrio (sin badge de color) — el badge de Estatus
   es el único elemento con color semántico en la fila. */
.pvc-tipo {
    font-size: var(--pv-text-xs);
    color: var(--pv-text-secondary);
    font-family: var(--pv-font-ui);
    white-space: nowrap;
}

/* Celdas enlazables de la tabla de Fórmula ("ir al origen": material/relación) */
.pv-cell-link {
    cursor: pointer;
    border-bottom: 1px dotted transparent;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.pv-cell-link:hover {
    color: var(--pv-accent-cyan, #22d3ee);
    border-bottom-color: var(--pv-accent-cyan, #22d3ee);
}

.pvc-td-name {
    color: var(--pv-text-primary);
    font-weight: 500;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pvc-td-price {
    text-align: right;
    font-family: var(--pv-font-mono);
    color: var(--pv-text-secondary);
    font-feature-settings: 'tnum' 1;
}

.pvc-status {
    display: inline-block;
    font-size: 0.66rem;
    padding: 2px 9px 3px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--pv-font-ui);
}

.pvc-empty {
    padding: 30px;
    text-align: center;
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
}

/* ═══════════════════════════════════════ */
/* Empty state — shown when no product is  */
/* selected on the Prefórmula tab          */
/* ═══════════════════════════════════════ */
.pv-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 380px;
    padding: 40px 24px;
    border: 1px dashed var(--pv-card-border);
    border-radius: var(--pv-card-radius);
    background: var(--pv-card-surface);
}

.pv-empty-state svg {
    color: var(--pv-text-secondary);
    opacity: 0.45;
    margin-bottom: 4px;
}

.pv-empty-state p {
    margin: 0;
    font-size: var(--pv-text-base);
    font-weight: 600;
    color: var(--pv-text-primary);
}

.pv-empty-state span {
    font-size: var(--pv-text-sm);
    color: var(--pv-text-secondary);
    max-width: 340px;
}
