/* 2.5.322 · Panel "Hoy en tus cuentas". Solo presentación. */
.hi-panel { background: #fff; border: 1px solid var(--suite-gray-200, #e5e7eb); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 1.2rem; }
.hi-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hi-head > div { flex: 1 1 auto; min-width: 0; }
.hi-head h2 { margin: 0; font-size: 1.15rem; }
.hi-meta { font-size: .8rem; color: var(--suite-gray-500, #6b7280); }
.hi-btn { border: 1px solid var(--suite-primary, #2563eb); background: var(--suite-primary, #2563eb); color: #fff; border-radius: 8px; padding: .45rem .8rem; font-weight: 700; cursor: pointer; }
.hi-btn[disabled] { opacity: .6; cursor: wait; }
.hi-btn-ghost { background: transparent; color: var(--suite-primary, #2563eb); }
.hi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: .9rem 0; }
.hi-kpi { background: var(--suite-gray-50, #f9fafb); border-radius: 10px; padding: .6rem .75rem; }
.hi-kpi b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hi-kpi span { font-size: .75rem; color: var(--suite-gray-500, #6b7280); }
.hi-kpi .up { color: var(--suite-gain, #16a34a); }
.hi-kpi .down { color: var(--suite-loss, #dc2626); }
.hi-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.hi-col h3 { margin: 0 0 .5rem; font-size: .95rem; }
.hi-loss h3 { color: var(--suite-loss, #dc2626); }
.hi-gain h3 { color: var(--suite-gain, #16a34a); }
.hi-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; cursor: pointer; border: 1px solid var(--suite-gray-200, #e5e7eb); border-left-width: 4px; border-radius: 10px; padding: .6rem .75rem; margin-bottom: .55rem; }
.hi-card:hover, .hi-card:focus-visible { background: var(--suite-gray-50, #f9fafb); outline: 2px solid var(--suite-primary, #2563eb); outline-offset: 1px; }
.hi-module { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--suite-gray-500, #6b7280); margin-bottom: .2rem; }
.hi-count { display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; font-size: .82rem; color: var(--suite-gray-600, #4b5563); margin-top: .3rem; }
.hi-count b { font-size: 1.05rem; color: inherit; font-variant-numeric: tabular-nums; }
.hi-count .hi-open { margin-left: auto; font-weight: 700; color: var(--suite-primary, #2563eb); }
.hi-drawer { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 60; display: flex; justify-content: flex-end; }
.hi-drawer[hidden] { display: none; }
.hi-drawer-sheet { background: #fff; width: min(560px, 100%); height: 100%; overflow: auto; padding: 1rem 1.2rem 2rem; box-shadow: -8px 0 24px rgba(0,0,0,.15); }
.hi-drawer-close { float: right; }
.hi-drawer-sheet h3 { margin: .2rem 0 .6rem; font-size: 1.1rem; }
.hi-d-kpis { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: .4rem 0 .6rem; }
.hi-d-kpis b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.hi-d-kpis span { font-size: .75rem; color: var(--suite-gray-500, #6b7280); }
.hi-d-list { margin: .4rem 0 .8rem; padding-left: 1.3rem; font-size: .85rem; }
.hi-d-list li { display: flex; justify-content: space-between; gap: .8rem; padding: .3rem 0; border-bottom: 1px solid var(--suite-gray-100, #f3f4f6); }
.hi-d-list li::marker { color: var(--suite-gray-400, #9ca3af); }
.hi-d-value { color: var(--suite-gray-600, #4b5563); white-space: nowrap; }
.hi-go { display: inline-block; text-decoration: none; margin-top: .4rem; }
body.hi-drawer-open { overflow: hidden; }
.hi-loss .hi-card { border-left-color: var(--suite-loss, #dc2626); }
.hi-gain .hi-card { border-left-color: var(--suite-gain, #16a34a); }
.hi-card.stale { border-left-color: var(--suite-gray-400, #9ca3af); color: var(--suite-gray-500, #6b7280); }
.hi-card-top { display: flex; gap: .5rem; align-items: baseline; justify-content: space-between; }
.hi-card-top strong { font-size: .92rem; }
.hi-amount { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.hi-amount small { display: block; font-weight: 400; font-size: .7rem; color: var(--suite-gray-500, #6b7280); }
.hi-card p { margin: .3rem 0; font-size: .82rem; }
.hi-card ul { margin: .2rem 0 .3rem; padding-left: 1.1rem; font-size: .8rem; }
.hi-card li span { color: var(--suite-gray-600, #4b5563); }
.hi-card a { font-size: .8rem; font-weight: 700; }
.hi-empty { font-size: .85rem; color: var(--suite-gray-500, #6b7280); padding: .4rem 0; }
.hi-health { margin-top: .6rem; font-size: .85rem; }
.hi-health summary { cursor: pointer; font-weight: 700; }
.hi-health-row { display: flex; gap: .5rem; padding: .25rem 0; border-bottom: 1px solid var(--suite-gray-100, #f3f4f6); }
.hi-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: 0 0 auto; margin-top: .3rem; }
.hi-dot.ok { background: var(--suite-gain, #16a34a); }
.hi-dot.warn { background: var(--suite-warning, #d97706); }
.hi-dot.bad { background: var(--suite-loss, #dc2626); }
.hi-foot { font-size: .72rem; color: var(--suite-gray-500, #6b7280); margin: .6rem 0 0; }

/* 2.5.328 · Versión gráfica del panel: indicadores con variación y mini-gráfico,
   curva de 14 días, barras por cuenta, chips de estado y medidor de impacto. */
.hi-kpi { position: relative; border: 1px solid var(--suite-gray-200, #e5e7eb); min-height: 112px; display: flex; flex-direction: column; gap: .15rem; }
.hi-kpi-label { font-size: .75rem; color: var(--suite-gray-500, #6b7280); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }
.hi-kpi b { font-size: 1.35rem; line-height: 1.2; }
.hi-kpi-extra { font-size: .74rem; color: var(--suite-gray-600, #4b5563); display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: center; }
.hi-kpi-graphic { margin-top: auto; padding-top: .35rem; display: flex; flex-direction: column; gap: .3rem; }
.hi-kpi.good { border-color: rgba(22, 163, 74, .35); background: rgba(22, 163, 74, .05); }
.hi-kpi.warn { border-color: rgba(217, 119, 6, .4); background: rgba(217, 119, 6, .06); }
.hi-kpi.bad { border-color: rgba(220, 38, 38, .4); background: rgba(220, 38, 38, .05); }
.hi-kpi.bad b { color: var(--suite-loss, #dc2626); }
.hi-delta { display: inline-block; font-style: normal; font-weight: 700; font-size: .72rem; padding: .05rem .4rem; border-radius: 999px; white-space: nowrap; }
.hi-delta.up { color: var(--suite-gain, #16a34a); background: rgba(22, 163, 74, .12); }
.hi-delta.down { color: var(--suite-loss, #dc2626); background: rgba(220, 38, 38, .12); }
.hi-delta.flat { color: var(--suite-gray-500, #6b7280); background: var(--suite-gray-100, #f3f4f6); }
.hi-warn { color: var(--suite-warning, #d97706); font-style: normal; }
.hi-spark { display: block; width: 100%; height: 34px; }
.hi-meter { display: block; height: 6px; border-radius: 999px; background: var(--suite-gray-100, #f3f4f6); overflow: hidden; }
.hi-meter > span { display: block; height: 100%; border-radius: 999px; transition: width .3s ease; }
.hi-twin { display: flex; gap: .6rem; align-items: flex-end; height: 44px; font-size: .68rem; color: var(--suite-gray-500, #6b7280); }
.hi-twin span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .15rem; height: 100%; width: 34px; }
.hi-twin i { display: block; width: 22px; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--suite-gray-300, #d1d5db); }
.hi-twin i.now { background: var(--suite-warning, #d97706); }
.hi-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.hi-chart-box { background: var(--suite-gray-50, #f9fafb); border: 1px solid var(--suite-gray-200, #e5e7eb); border-radius: 12px; padding: .75rem .9rem .6rem; min-width: 0; }
.hi-chart-box h3 { margin: 0 0 .4rem; font-size: .9rem; color: var(--suite-gray-700, #374151); }
.hi-chart { display: block; width: 100%; height: auto; max-height: 240px; }
.hi-grid { stroke: var(--suite-gray-200, #e5e7eb); stroke-width: 1; }
.hi-zero { stroke: var(--suite-gray-400, #9ca3af); stroke-width: 1; }
.hi-axis { font-size: 10.5px; fill: var(--suite-gray-500, #6b7280); font-family: inherit; }
.hi-bar { fill: var(--suite-primary, #2563eb); opacity: .78; }
.hi-bar:hover { opacity: 1; }
.hi-bar.today { fill: var(--suite-warning, #d97706); opacity: 1; }
.hi-line-profit { fill: none; stroke: var(--suite-gain, #16a34a); stroke-width: 2.2; stroke-linejoin: round; }
.hi-dot-profit { fill: #fff; stroke: var(--suite-gain, #16a34a); stroke-width: 2; }
.hi-dot-profit.neg { stroke: var(--suite-loss, #dc2626); }
.hi-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .72rem; color: var(--suite-gray-500, #6b7280); margin-top: .35rem; }
.hi-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.hi-sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: var(--suite-primary, #2563eb); opacity: .8; }
.hi-sw.line { height: 3px; background: var(--suite-gain, #16a34a); }
.hi-sw.today { background: var(--suite-warning, #d97706); }
.hi-accounts { display: flex; flex-direction: column; gap: .45rem; }
.hi-acc { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto auto; gap: .6rem; align-items: center; font-size: .8rem; }
.hi-acc-label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-acc-bar { position: relative; display: block; height: 16px; background: var(--suite-gray-100, #f3f4f6); border-radius: 6px; overflow: hidden; }
.hi-acc-bar .rev { position: absolute; inset: 0 auto 0 0; background: var(--suite-primary, #2563eb); opacity: .35; border-radius: 6px; }
.hi-acc-bar .prof { position: absolute; left: 0; top: 4px; bottom: 4px; background: var(--suite-gain, #16a34a); border-radius: 4px; }
.hi-acc-bar .prof.neg { background: var(--suite-loss, #dc2626); }
.hi-acc-val { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hi-acc-val small { display: block; color: var(--suite-gray-500, #6b7280); font-size: .68rem; white-space: nowrap; }
.hi-acc-delta { min-width: 58px; text-align: right; }
.hi-card { display: flex; gap: .6rem; align-items: stretch; }
.hi-card-icon { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; color: #fff; background: var(--suite-gray-400, #9ca3af); margin-top: .15rem; }
.hi-loss .hi-card-icon { background: var(--suite-loss, #dc2626); }
.hi-gain .hi-card-icon { background: var(--suite-gain, #16a34a); }
.hi-card.stale .hi-card-icon { background: var(--suite-gray-400, #9ca3af); }
.hi-card-body { flex: 1 1 auto; min-width: 0; display: block; }
.hi-card-top { display: flex; }
.hi-impact { display: block; height: 4px; border-radius: 999px; background: var(--suite-gray-100, #f3f4f6); margin: .35rem 0 .1rem; overflow: hidden; }
.hi-impact > span { display: block; height: 100%; border-radius: 999px; background: currentColor; opacity: .55; }
.hi-loss .hi-impact > span { color: var(--suite-loss, #dc2626); }
.hi-gain .hi-impact > span { color: var(--suite-gain, #16a34a); }
.hi-ok-state { display: flex; gap: .6rem; align-items: center; background: rgba(22, 163, 74, .06); border: 1px dashed rgba(22, 163, 74, .35); border-radius: 10px; padding: .7rem .8rem; color: var(--suite-gray-600, #4b5563); }
.hi-ok-icon { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--suite-gain, #16a34a); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.hi-pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.hi-pill.ok { color: var(--suite-gain, #16a34a); background: rgba(22, 163, 74, .12); }
.hi-pill.warn { color: var(--suite-warning, #d97706); background: rgba(217, 119, 6, .14); }
.hi-pill.bad { color: var(--suite-loss, #dc2626); background: rgba(220, 38, 38, .12); }
.hi-health summary small { font-weight: 400; color: var(--suite-gray-500, #6b7280); margin-left: .3rem; }
.hi-health-group { padding: .4rem 0; border-bottom: 1px solid var(--suite-gray-100, #f3f4f6); }
.hi-health-group > b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .02em; color: var(--suite-gray-500, #6b7280); margin-bottom: .3rem; }
.hi-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.hi-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--suite-gray-200, #e5e7eb); background: #fff; font-size: .78rem; max-width: 100%; }
.hi-chip small { color: var(--suite-gray-500, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hi-chip.warn { border-color: rgba(217, 119, 6, .45); background: rgba(217, 119, 6, .06); }
.hi-chip.bad { border-color: rgba(220, 38, 38, .45); background: rgba(220, 38, 38, .06); }
.hi-chip .hi-dot { margin-top: 0; }
@media (max-width: 640px) {
  .hi-charts, .hi-cols { grid-template-columns: minmax(0, 1fr); }
  .hi-acc { grid-template-columns: 1fr auto; }
  .hi-acc-bar { grid-column: 1 / -1; }
  .hi-acc-delta { min-width: 0; }
}

/* 2.5.329 · Montos parciales (cuentas con órdenes atrasadas se nombran y van sin monto) */
.hi-partial[hidden] { display: none; }
.hi-partial { margin: 0 0 .8rem; font-size: .82rem; color: var(--suite-warning, #b45309); background: rgba(217, 119, 6, .08); border: 1px solid rgba(217, 119, 6, .25); border-radius: 8px; padding: .45rem .7rem; }
.hi-acc.stale .hi-acc-label, .hi-acc.stale .hi-acc-val { opacity: .6; }
.hi-acc.stale .hi-acc-bar { background: repeating-linear-gradient(45deg, rgba(107, 114, 128, .12) 0 6px, transparent 6px 12px); }
/* 2.5.331 · Pestañas por canal */
.hi-channels { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0 0; }
.hi-tab { border: 1px solid var(--suite-border, #cbd5e1); background: var(--suite-surface, #fff); color: inherit; border-radius: 999px; padding: .35rem .85rem; font-weight: 700; cursor: pointer; font-size: .85rem; }
.hi-tab.on { background: var(--suite-primary, #2563eb); border-color: var(--suite-primary, #2563eb); color: #fff; }
.hi-tab.off { opacity: .65; }
.hi-tab small { font-weight: 500; }
.hi-tab-badge { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 999px; background: var(--suite-loss, #dc2626); color: #fff; font-size: .72rem; text-align: center; }

/* 2.5.332 · Actualizar, indicadores clicables y detalle enriquecido con miniaturas */
.hi-ago { font-size: .75rem; color: var(--suite-gray-500, #6b7280); align-self: center; white-space: nowrap; }
.hi-note { font-size: .78rem; color: #1d4ed8; margin-top: .15rem; }
.hi-kpi-click { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hi-kpi-click:hover, .hi-kpi-click:focus-visible { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .15); outline: none; }
.hi-d-search { width: 100%; box-sizing: border-box; margin: .3rem 0 .4rem; padding: .45rem .6rem; border: 1px solid var(--suite-gray-300, #d1d5db); border-radius: 8px; font-size: .85rem; }
.hi-d-list.hi-d-rich { padding-left: 0; list-style: none; }
.hi-d-list.hi-d-rich li { display: block; padding: 0; }
.hi-d-list.hi-d-rich li[hidden] { display: none; }
.hi-d-row { display: flex; align-items: center; gap: .65rem; padding: .5rem .3rem; color: inherit; text-decoration: none; border-radius: 8px; }
a.hi-d-row:hover, a.hi-d-row:focus-visible { background: var(--suite-gray-50, #f9fafb); outline: none; }
.hi-thumb { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--suite-gray-200, #e5e7eb); }
.hi-thumb-empty { display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; color: var(--suite-gray-400, #9ca3af); background: var(--suite-gray-50, #f9fafb); }
.hi-d-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.hi-d-main .hi-d-label { font-weight: 600; overflow-wrap: anywhere; }
.hi-d-sku { color: var(--suite-gray-500, #6b7280); font-size: .72rem; }
.hi-d-meta { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
.hi-d-meta em { font-style: normal; font-size: .7rem; background: var(--suite-gray-100, #f3f4f6); color: var(--suite-gray-700, #374151); border-radius: 999px; padding: .05rem .45rem; }
.hi-d-rich .hi-d-value { font-size: .8rem; text-align: right; white-space: normal; max-width: 38%; }
.hi-d-go { color: #2563eb; font-weight: 700; }
.hi-d-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin: .5rem 0 .8rem; }
.hi-d-kpis div { background: var(--suite-gray-50, #f9fafb); border-radius: 8px; padding: .5rem .6rem; display: flex; flex-direction: column; }
.hi-d-kpis span { font-size: .72rem; color: var(--suite-gray-500, #6b7280); }
.hi-drawer-sheet h4 { margin: .8rem 0 .3rem; font-size: .9rem; }
.hi-d-table { overflow-x: auto; }
.hi-d-table table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.hi-d-table th, .hi-d-table td { padding: .3rem .4rem; border-bottom: 1px solid var(--suite-gray-100, #f3f4f6); text-align: left; }
.hi-d-table .num { text-align: right; white-space: nowrap; }
.hi-d-table .neg { color: #b91c1c; }
@media (max-width: 640px) { .hi-ago { display: none; } .hi-d-rich .hi-d-value { max-width: 45%; } }
/* 2.5.340 · Filtro por período, detalle Ads y análisis de Devoluciones */
.hi-period { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .2rem 0 .7rem; }
.hi-period-label { font-size: .8rem; font-weight: 700; color: var(--suite-gray-500, #6b7280); margin-right: .2rem; }
.hi-period .hi-tab, .hi-choice .hi-tab { font-size: .8rem; padding: .28rem .7rem; }
.hi-range { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .8rem; }
.hi-range input { font: inherit; padding: .25rem .4rem; border: 1px solid var(--suite-border, #cbd5e1); border-radius: 6px; }
.hi-range .hi-btn { padding: .3rem .7rem; }
.hi-choice { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .7rem; }
.hi-drawer-sheet.wide { width: min(900px, 100%); }
.hi-d-kpis b.neg { color: var(--suite-loss, #dc2626); }
.hi-d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .4rem 1.2rem; }
.hi-hbars { display: grid; gap: .3rem; }
.hi-hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: .5rem; align-items: center; font-size: .78rem; }
.hi-hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-hbar-track { height: .7rem; background: var(--suite-gray-100, #f3f4f6); border-radius: 999px; overflow: hidden; }
.hi-hbar-track span { display: block; height: 100%; border-radius: 999px; }
.hi-hbar-val { font-weight: 700; white-space: nowrap; }
.hi-chart-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .hi-hbar { grid-template-columns: 40% 1fr auto; } }
.hi-charts:has(.hi-chart-wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .hi-charts:has(.hi-chart-wide) { grid-template-columns: minmax(0, 1fr); } }
.hi-drawer-sheet .hi-chart { max-height: 230px; }
.hi-d-table td small.hi-d-sku { display: block; }

/* 2.5.346 · Por pagar ML y Ofertas Falabella */
.hi-money { margin: .6rem 0 .3rem; }
.hi-money .hi-kpi { min-height: 0; }
.hi-money[hidden] { display: none; }
.hi-d-table td.hi-skus { font-size: 12px; word-break: break-word; max-width: 420px; }
.hi-d-table tr.neg td { color: var(--suite-loss, #dc2626); }
.hi-money-accounts { flex-basis: 100%; }
.hi-money-accounts strong { font-weight: 600; color: var(--suite-gray-700, #374151); }
.hi-d-table tr.hi-no-offers td { background: var(--suite-warn-bg, #fff7ed); }
