/* Una tabla semántica compartida por PRO y público. */
html.qv-workspace #planes-recomendados[data-vista="tabla"] { display: block; min-width: 0; }
.qv-table-scroll {
  overflow: auto; max-block-size: calc(100dvh - var(--qvw-top, 0px) - var(--qvw-toolbar-height, 56px) - 100px);
  min-block-size: 180px; overscroll-behavior: contain; scrollbar-gutter: stable;
  border: 1px solid var(--qv-surface-border); border-radius: 14px; background: var(--surface, #fff);
}
.qv-results-table { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; font: 400 14px/1.4 var(--ff-sans, system-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.qv-table-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.qv-results-table > :is(thead, tbody) > tr > :is(th, td) { padding: 8px 12px; vertical-align: middle; border-bottom: 1px solid var(--qv-surface-border); text-align: right; }
.qv-results-table [hidden] { display: none; }
.qv-results-table > thead > tr > th { position: sticky; top: 0; z-index: 2; height: 38px; box-sizing: border-box; background: var(--qv-page-canvas); color: var(--muted-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.qv-results-table > thead button { appearance: none; border: 0; border-radius: 6px; padding: 6px 0; min-height: 32px; width: 100%; background: transparent; color: inherit; font: inherit; display: inline-flex; gap: 6px; justify-content: flex-end; align-items: center; cursor: pointer; }
.qv-results-table > thead button:hover, .qv-results-table th[aria-sort] { color: var(--brand); }
.qv-results-table > :is(thead, tbody) > .qv-table-row > :first-child, .qv-results-table > thead > tr > :first-child { position: sticky; left: 0; text-align: left; }
.qv-results-table > thead > tr > :first-child { z-index: 3; }
.qv-results-table > tbody > tr > th { z-index: 1; background: var(--surface, #fff); font-weight: 400; }
.qv-results-table > tbody > .qv-table-row:hover > *, .qv-results-table > tbody > .qv-table-row:focus-within > * { background: var(--qv-page-canvas); }
.qv-results-table > tbody > tr:last-child > * { border-bottom: 0; }
.qv-table-identity-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; max-width: calc(var(--qv-table-identity-width) - 24px); }
.qv-table-identity-line .plan-logo-wrap { margin-inline: 8px; }
.qv-table-identity-text { grid-column: 2; min-width: 0; }
.qv-table-name, .qv-table-code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qv-table-code { display: block; font-size: 12px; line-height: 1.4; color: var(--muted-2); }
.qv-table-name { display: block; padding-block: 3px; min-height: 24px; box-sizing: border-box; font-weight: 600; color: var(--ink); text-decoration: none; }
.qv-table-name:hover { color: var(--brand); text-decoration: underline; }
.qv-table-price { white-space: nowrap; }
.qv-results-table .precio-line { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.qv-results-table .precio-secundario::before { content: none; }
.qv-results-table .precio-principal { font-size: 15px; font-weight: 650; }
.qv-results-table .precio-secundario { font-size: 11px; color: var(--muted-2); transform: none; }
.qv-table-seven { font-size: 12px; color: var(--muted-2); }
.qv-table-seven__amount, .qv-table-seven__label { display: block; white-space: nowrap; }
.qv-table-seven__amount { font-size: 13px; }
.qv-table-seven[data-tone="extra"] { color: #bc3737; }
.qv-table-seven[data-tone="inside"] { color: #236747; }
.qv-table-number { font-size: 13px; white-space: nowrap; }
.qv-table-pick { display: none; border: 0; padding: 4px 0; min-height: 28px; background: transparent; color: var(--brand); font: inherit; cursor: pointer; }
body:has(#quvi-assistance-panel[data-picking="true"]:not([hidden])) .qv-table-pick { display: inline-block; }
.qv-table-row[data-qva-explored="true"] .qv-table-name { color: var(--brand); }
.qv-table-action { white-space: nowrap; }
.qv-results-table .plan-request-public { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; min-height: 32px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.qv-results-table .plan-request-public svg { width: 15px; height: 15px; }
.qv-results-table .cta-label-mobile { display: none; }
.qv-table-scroll:focus-visible, .qv-results-table :is(a, button):focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
#qvwTableOptions { display: none; }
html.qv-workspace.qvw-desktop #qvwTableOptions { display: block; }
html.qv-workspace.qvw-desktop #qvwTableOptions[hidden] { display: none; }
.qvw-table-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.qvw-table-options legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.qvw-table-options label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13px; cursor: pointer; }
.qvw-table-options input { accent-color: var(--brand); }
@media (max-width: 767px) {
  .qv-results-table > :is(thead, tbody) > tr > :is(th, td) { padding-inline: 10px; }
  .qv-table-scroll { max-block-size: calc(100dvh - 220px); }
}

/* Detalle de una fila: región en flujo, sin overlays ni cabeceras sticky heredadas. */
.qv-table-disclosure { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 32px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.qv-table-disclosure > svg { width: 14px; height: 14px; flex: none; color: var(--muted-2); }
.qv-table-disclosure:hover, .qv-table-disclosure[aria-expanded="true"] { color: var(--brand); }
.qv-table-disclosure[aria-expanded="true"] > svg { transform: rotate(180deg); }
.qv-results-table > tbody > .qv-table-detail > td { text-align: left; background: var(--qv-page-canvas); }
.qv-table-detail__content { max-width: 820px; margin-inline: auto; padding: 8px 4px; }
.qv-table-detail__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 12px; }
.qv-table-detail__heading h3 { margin: 0; font-size: 14px; font-weight: 600; }
.qv-table-detail__heading button, .qv-table-more { border: 1px solid var(--qv-surface-border); border-radius: 8px; padding: 6px 12px; min-height: 32px; font: inherit; font-size: 13px; color: var(--brand); background: var(--surface, #fff); cursor: pointer; }
.qv-table-more { display: block; margin: 12px auto; }
.qv-table-more[hidden] { display: none; }
.qv-table-detail .plan-network__body { max-height: 280px; overflow: auto; overscroll-behavior: contain; }
.qv-table-detail .plan-network__body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qv-table-detail .plan-network__body :is(th, td) { padding: 8px; border-bottom: 1px solid var(--qv-surface-border); text-align: right; font-weight: 400; }
.qv-table-detail .plan-network__body th:first-child { text-align: left; }
.qv-table-detail .plan-network__body thead th { font-weight: 600; }
.qv-table-detail .plan-price-breakdown { font-size: 13px; }
.qv-table-detail .plan-price-breakdown :is(ul, dl, dd) { margin: 0; padding: 0; list-style: none; }
.qv-table-detail .plan-price-breakdown li, .qv-table-detail .plan-price-breakdown dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 8px; border-bottom: 1px solid var(--qv-surface-border); }
.qv-table-detail .plan-price-breakdown :is(dt, li > span) { color: var(--muted-2); }
.qv-table-detail .plan-price-breakdown strong { font-weight: 600; }
