/* Pedí Acá — panel de administración */
:root {
    --bg: #f6f3f0;
    --surface: #fff;
    --ink: #2a1f19;
    --muted: #776a61;
    --line: #e8ddd4;
    --accent: #1b4d2e;
    --accent-dark: #133a22;
    --ok: #15803d;
    --danger: #b91c1c;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-dark); }
h1 { font-size: 1.4rem; margin: 0 0 16px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Barra superior */
.admin-top { background: var(--ink); color: #fff; }
.admin-top-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.admin-brand { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.admin-brand small { font-weight: 400; opacity: .6; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.admin-nav a, .nav-btn { color: #f3e9e1; text-decoration: none; padding: 6px 10px; border-radius: 8px; background: none; border: 0; }
.admin-nav a:hover, .nav-btn:hover { background: rgb(255 255 255 / .1); }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-nav form { margin: 0; }

.admin-main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.flash { background: #dcfce7; color: #14532d; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.error-box { background: #fdecec; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.error-box ul { margin: 0; padding-left: 18px; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 3px; display: block; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: #cdbcae; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { padding: 4px 10px; font-size: .87rem; }
.btn.wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.inline { display: inline; margin: 0; }

/* Formularios */
.stack > * + * { margin-top: 12px; }
.field { display: block; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .input {
    width: 100%; padding: 8px 10px; border: 1px solid #d9cabd; border-radius: 8px; background: #fff;
}
.field input[type="color"] { padding: 2px; height: 40px; width: 80px; }
/* Contraseña con ojito para mostrarla */
.field > span.password-wrap { position: relative; display: block; margin: 0; font-weight: 400; font-size: 1rem; }
.password-wrap input { padding-right: 46px; }
.password-toggle {
    position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
    width: 38px; height: 34px; display: grid; place-items: center;
    border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--accent); background: rgb(27 77 46 / .08); }
.password-toggle:focus-visible { outline: 2px solid rgb(27 77 46 / .5); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgb(27 77 46 / .35); outline-offset: 0; border-color: var(--accent); }
.is-invalid { border-color: var(--danger) !important; background: #fff7f7 !important; }
.check { display: flex; gap: 8px; align-items: center; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.help { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.field > label { display: block; }
.field > label > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* Opciones de un producto: tocar la que se acabó la marca «Sin stock» */
.option-stock { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.option-stock .help { flex-basis: 100%; margin: 0; }
.option-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px;
    border: 1.5px solid #d9cabd; border-radius: 99px; background: #fff; cursor: pointer; font-size: .9rem;
}
.option-chip input { position: absolute; opacity: 0; pointer-events: none; }
.option-chip small { display: none; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.option-chip:has(input:checked) { background: #f1efed; border-color: #a8a29e; color: #78716c; }
.option-chip:has(input:checked) span { text-decoration: line-through; }
.option-chip:has(input:checked) small { display: inline; color: #b45309; }
.option-chip:has(input:focus-visible) { outline: 2px solid rgb(27 77 46 / .5); outline-offset: 2px; }

/* Login */
.login-box { max-width: 380px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.login-box h1 { font-size: 1.25rem; }
.login-box .btn { width: 100%; justify-content: center; padding: 10px; }

/* Tablas */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fbf8f5; }
tr:last-child td { border-bottom: 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: #efe9e4; color: var(--muted); }
.badge.on { background: #dcfce7; color: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Confirmación de borrado en la página */
.confirm-delete { position: relative; }
.confirm-delete > summary { list-style: none; }
.confirm-delete > summary::-webkit-details-marker { display: none; }
.confirm-panel { margin-top: 8px; padding: 10px 12px; background: #fdecec; border-radius: 10px; color: var(--danger); font-size: .9rem; max-width: 340px; }
.confirm-panel .actions { margin-top: 8px; }

/* Productos (edición en tabla) */

/* Pedidos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .9rem; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { opacity: .65; margin-left: 4px; }
.search { display: flex; gap: 6px; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.orders { display: grid; gap: 8px; }
.order { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--status, #ccc); border-radius: 10px; }
.order[data-status="pendiente"] { --status: #f59e0b; }
.order[data-status="confirmado"] { --status: #2563eb; }
.order[data-status="entregado"] { --status: #15803d; }
.order[data-status="cancelado"] { --status: #9ca3af; }
.order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; }
.order-check { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--danger); }
.order:has(.order-check:checked) { outline: 2px solid var(--danger); outline-offset: -2px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.order-toggle { flex: 1 1 320px; display: grid; grid-template-columns: 62px 96px minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 4px 0; }
.order-toggle .num { font-weight: 800; }
.order-toggle .when { color: var(--muted); font-size: .88rem; }
.order-toggle .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-toggle .who small { color: var(--muted); }
.order-toggle .amount { font-weight: 700; }
.order-toggle::after { content: "▾"; color: var(--muted); }
.order-toggle[aria-expanded="true"]::after { content: "▴"; }
.status-form select { padding: 6px 8px; border-radius: 8px; border: 1px solid #d9cabd; background: #fff; font-weight: 600; }
.order-detail { border-top: 1px dashed var(--line); padding: 14px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.order-detail h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.order-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.order-detail dt { color: var(--muted); }
.order-detail dd { margin: 0; }
.items-truck { font-weight: 700; margin: 10px 0 4px; }
.items-truck:first-of-type { margin-top: 0; }
.item-line { display: flex; justify-content: space-between; gap: 10px; font-size: .93rem; }
.item-removed { color: var(--danger); font-weight: 600; }
.item-sub { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 3px; padding-top: 3px; }
.totals-line { display: flex; justify-content: space-between; }
.totals-line.grand { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }

/* Paginación */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.pager a, .pager span { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .disabled { opacity: .45; }

@media (max-width: 640px) {
    .order-toggle { grid-template-columns: 52px minmax(0, 1fr) auto 14px; }
    .order-toggle .when { display: none; }
    .search { max-width: none; margin-left: 0; }
}

/* Paleta de color del comercio */
.palette { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 16px 0 0; min-width: 0; }
.palette legend { font-weight: 700; padding: 0 6px; }
.palette-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 10px; }
.palette-grid .check { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.palette-grid input[type="color"] { padding: 2px; height: 40px; width: 80px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.palette-grid input[type="color"]:disabled { opacity: .35; cursor: not-allowed; }
.palette-preview {
    margin-top: 14px; padding: 22px 18px; border-radius: 12px; color: #fff;
    display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 3px rgb(0 0 0 / .35);
}
.palette-preview strong { font-size: 1.25rem; }
.palette-preview span { font-size: .85rem; opacity: .95; }

/* Productos: foto */
.image-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.image-cell .thumb {
    width: 96px; height: 64px; border-radius: 8px; border: 1px solid var(--line);
    background: #f4ece6 center / cover no-repeat; display: flex; align-items: center; justify-content: center;
    font-size: .72rem; color: var(--muted);
}
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.remove-image { font-size: .8rem; gap: 4px; }
.remove-image input { width: 14px; height: 14px; }
.image-status { font-size: .75rem; color: var(--muted); max-width: 120px; line-height: 1.25; }
.image-status:empty { display: none; }

/* Productos: ordenar arrastrando */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drag-handle {
    width: 30px; height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--muted);
    font-size: 1.25rem; line-height: 1; cursor: grab; touch-action: none; user-select: none;
}
.drag-handle:hover, .drag-handle:focus-visible { background: #f1e7de; color: var(--ink); }
.is-sorting, .is-sorting * { cursor: grabbing !important; user-select: none; }
.order-dirty { font-size: .88rem; font-weight: 600; color: var(--accent-dark, #133a22); }

/* Productos: tarjetas, pensadas primero para el celular */
.products-hint { margin: -6px 0 10px; }
.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pcards-new:not(:empty) { margin-top: 10px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pcard.is-new { border: 2px dashed #e5c9b3; background: #fffaf4; }
.pcard-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px 4px; }
.pcard.is-new .pcard-head { padding-left: 10px; }
.pcard-new { flex: 0 0 auto; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--accent-dark); }
.pcard-thumb {
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px;
    background: #f1e7de center / cover no-repeat;
}
.pcard-thumb.is-empty { background-image: linear-gradient(135deg, #f4ece6, #ece1d8); }
.pcard-summary {
    flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px;
    border: 0; background: none; padding: 6px 0; text-align: left; color: inherit;
}
.pcard-name { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-meta { grid-column: 1; display: flex; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--ink); min-width: 0; }
.pcard-section { font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-section:empty { display: none; }
.pcard-edit {
    grid-column: 2; grid-row: 1 / span 2; font-size: .85rem; font-weight: 700; color: var(--accent-dark);
    padding: 8px 10px; border-radius: 9px; background: #fdf1e7;
}
.pcard-edit::after { content: " ▾"; }
.pcard.is-open .pcard-edit::after { content: " ▴"; }

/* Interruptores grandes, fáciles de tocar */
.pcard-switches { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 2px 12px 10px 48px; }
.pcard.is-new .pcard-switches { padding-left: 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; font-size: .92rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #d6cbc2; transition: background .15s; flex: 0 0 auto; }
.switch-track::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s;
}
.switch input:checked + .switch-track { background: var(--ok); }
.switch.is-warn input:checked + .switch-track { background: #57534e; }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid rgb(27 77 46 / .5); outline-offset: 2px; }

/* Estados: oculto en la tienda / sin stock */
.pcard.is-hidden .pcard-head, .pcard.is-out-of-stock .pcard-head { opacity: .6; }
.pcard.is-out-of-stock .pcard-thumb { filter: grayscale(1); }
.pcard.is-out-of-stock .pcard-name::after, .pcard.is-hidden .pcard-name::after {
    margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: .7rem; font-weight: 800; vertical-align: 2px;
    text-transform: uppercase; letter-spacing: .03em; background: #57534e; color: #fff;
}
.pcard.is-out-of-stock .pcard-name::after { content: "Sin stock"; }
.pcard.is-hidden .pcard-name::after { content: "Oculto"; background: #a8a29e; }

/* Datos desplegables */
.js .pcard:not(.is-open) .pcard-body { display: none; }
.pcard-body { border-top: 1px solid var(--line); padding: 12px; }
.pcard-fields { display: grid; gap: 12px; }
.pcard-fields input, .pcard-fields textarea { font-size: 16px; } /* 16px: el iPhone no hace zoom al escribir */
.pcard-fields textarea { resize: vertical; }

/* Ordenar arrastrando */
.pcard .drag-handle { width: 40px; height: 48px; font-size: 1.4rem; }
.pcard.is-dragging { position: relative; z-index: 2; border-color: var(--accent); box-shadow: 0 14px 28px -12px rgb(0 0 0 / .45); }

/* Barra de guardar fija abajo */
.products-form { padding-bottom: 8px; }
.products-help { margin-top: 18px; }
.save-bar {
    position: sticky; bottom: 0; z-index: 10; margin: 16px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    background: rgb(246 243 240 / .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line);
}
.save-bar .btn { min-height: 44px; }
.save-bar .order-dirty { margin-right: auto; }

/* Celular: la página de productos ocupa todo el ancho */
@media (max-width: 640px) {
    .admin-main { padding-top: 14px; }
    .page-head h1 { font-size: 1.2rem; }
    .save-bar .btn.primary { flex: 1 1 auto; justify-content: center; }
    .save-bar .order-dirty { flex: 1 0 100%; text-align: center; margin: 0; }
    .save-bar { flex-wrap: wrap; }
}

/* Pantallas anchas: los datos en dos columnas */
@media (min-width: 760px) {
    .pcard-fields { grid-template-columns: 1fr 1fr; }
    .pcard-fields .field-wide { grid-column: 1 / -1; }
    .pcard-thumb { width: 64px; height: 64px; }
}
.pcard .image-status { max-width: none; }

/* ---------- Métricas ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.metrics-note { font-size: .85rem; margin: -4px 0 14px; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kpi-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .85rem; color: var(--muted); }
.kpi-hero { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: #fff; }
.kpi-hero .kpi-label, .kpi-hero .kpi-sub { color: rgb(255 255 255 / .85); }
.kpi-hero .kpi-value { font-size: 1.8rem; }
@media (min-width: 700px) { .kpi-hero { grid-column: span 2; } }

.chart-card h2 { margin: 0 0 4px; font-size: 1.05rem; }
.chart-sub { margin: 0 0 12px; font-size: .85rem; }
.chart-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* Tooltip de los cuadros y columnas (mouse, dedo o teclado) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; z-index: 5; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    padding: 5px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; pointer-events: none;
}
[data-tip]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Mapa de calor día × hora: un solo tono, de claro a oscuro */
.heatmap-scroll { overflow-x: auto; padding-top: 34px; margin-top: -26px; }
.heatmap { border-collapse: separate; border-spacing: 2px; width: 100%; min-width: 620px; table-layout: fixed; }
.heatmap th, .heatmap td { padding: 0; border: 0; }
.heatmap thead th { font-size: .7rem; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 2px; }
.heatmap thead th:first-child, .heatmap tbody th { width: 38px; }
.heatmap tbody th { font-size: .8rem; font-weight: 600; color: var(--muted); padding-right: 4px; }
.heatmap td { height: 26px; border-radius: 4px; background: #f3eee9; }
.heatmap td.is-hot { background: color-mix(in srgb, var(--accent) var(--heat), #fff); }

/* Barras horizontales */
.hbars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 14px; }
.hbar { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--accent) 55%, #fff); }
.hbars li.is-best .hbar { background: var(--accent); }
.hbars li.is-best .hbar-label { font-weight: 800; }
.hbar-value { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.hbar-value small { color: var(--muted); font-weight: 400; }

/* Columnas verticales */
.columns { display: flex; align-items: stretch; gap: 2px; height: 170px; padding-top: 30px; margin-top: 4px; }
.column-slot { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.column { display: block; width: 100%; max-width: 28px; min-height: 2px; height: calc((100% - 22px) * var(--h, 0)); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 55%, #fff); }
.column.is-best { background: var(--accent); }
.column-slot:hover .column { background: var(--accent); }
.column-label { height: 18px; margin-top: 4px; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.columns-days .column-label { overflow: visible; }

/* Ranking de productos */
.rank { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rank th { font-size: .8rem; color: var(--muted); }
.rank td { position: relative; padding-bottom: 14px; }
.rank .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-bar { position: absolute; left: 12px; bottom: 6px; height: 4px; max-width: calc(100% - 24px); border-radius: 2px; background: color-mix(in srgb, var(--accent) 55%, #fff); }
