html body[data-t][data-vista="avance"] #pantalla .avx-surface {
  --avx-card: #fcfdff;
  --avx-edge: #cedaeb;
  --avx-band: #edf3fc;
  --avx-ink: #122543;
  --avx-muted: #485d78;
  --avx-blue: #2563eb;
  --avx-purple: #7c3aed;
  --avx-scale: 7%;
  container-type: inline-size;
}
html body[data-t="dark"][data-vista="avance"] #pantalla .avx-surface {
  --avx-card: #0f1d30;
  --avx-edge: #2c405e;
  --avx-band: #16273f;
  --avx-ink: #eef5ff;
  --avx-muted: #afbed5;
  --avx-blue: #69b6ff;
  --avx-purple: #bd89ff;
  --avx-scale: 15%;
}
.avx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.avx-cut {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--avx-ink);
  background: var(--avx-band);
  border: 1px solid var(--avx-edge);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
html body[data-t] #pantalla .avx-surface .v121-head { gap: 8px; margin-bottom: 5px !important; }
html body[data-t] #pantalla .avx-surface .avx-kpis {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  gap: 7px !important;
  margin: 6px 0 8px !important;
}
html body[data-t] #pantalla .avx-kpis > .v121-kpi {
  grid-template-columns: 26px minmax(0, 1fr) !important;
  grid-template-rows: minmax(24px, auto) auto auto auto auto auto !important;
  gap: 3px 7px !important;
  align-content: start;
  min-width: 0;
  padding: 7px 9px !important;
  border: 1px solid color-mix(in srgb, var(--avx-edge), var(--d-acc) var(--d-tint, 10%)) !important;
  border-radius: 9px !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--avx-card), var(--d-acc) var(--d-tint, 0%)), var(--avx-card)) !important;
  box-shadow: none !important;
  animation: none !important;
}
html body[data-t] #pantalla .avx-kpis > .v121-kpi > .d-ic {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
}
html body[data-t] #pantalla .avx-kpis > .v121-kpi > .d-ic svg { width: 15px; height: 15px; }
html body[data-t] #pantalla .avx-kpis > .v121-kpi .tym-kpi-head {
  padding: 0 !important;
  font-size: 11.5px !important;
  line-height: 1.22 !important;
}
html body[data-t] #pantalla .avx-kpis .v121-kpi .tym-kpi-head small { min-height: 0; }
html body[data-t] #pantalla .avx-kpis > .v121-kpi > b {
  font-size: clamp(22px, 2.1cqw, 30px) !important;
  margin: 0 !important;
}
html body[data-t] #pantalla .avx-kpis > .v121-kpi > :is(span:not(.d-badge),.d-tr,.d-cmp,.d-prop) {
  margin: 0 !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  gap: 2px 5px;
}
html body[data-t] #pantalla .avx-kpis .v121-kpi .d-tr :is(span,b) { font-size: 10.5px !important; }
html body[data-t] #pantalla .avx-kpis .v121-kpi > .d-badge {
  position: static !important;
  grid-row: 6;
  justify-self: start;
  align-self: end;
  margin: 0 !important;
  font-size: 10.5px;
}
html body[data-t] #pantalla .avx-kpis .v121-kpi > .d-prop {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
  margin: 3px 0 0 !important;
}
html body[data-t] #pantalla .avx-kpis .v121-kpi .d-prop small { margin: 2px 0 0; }
html body[data-t] #pantalla .avx-kpis .v121-kpi > .d-badge::before { animation: none; }
.avx-primary, .avx-diagnostics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 7px;
}
html body[data-t] #pantalla .avx-surface :is(.avx-card,.avx-transport) {
  display: flex;
  flex-direction: column;
  grid-column: auto !important;
  min-width: 0;
  padding: 8px 10px !important;
  margin: 0 !important;
  border: 1px solid var(--avx-edge) !important;
  border-radius: 10px !important;
  background: var(--avx-card) !important;
  color: var(--avx-ink);
  box-shadow: none !important;
  animation: none !important;
}
html body[data-t] #pantalla .avx-surface :is(.avx-card,.avx-transport) :is(.ph,h3) {
  color: var(--avx-ink);
  line-height: 1.2;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 7px;
}
.avx-card > h3 { display: flex; align-items: center; gap: 7px; }
.avx-card > h3::before { content: ''; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--avx-blue); }
.avx-card > .ph .r:empty { display: none !important; }
html body[data-t] #pantalla .avx-surface .avx-primary .v121-note { display: none; }
html body[data-t] #pantalla .avx-surface .avx-source-chart { display: none !important; }
html body[data-t] #pantalla .avx-surface .avx-interval-chart {
  display: flex;
  flex-direction: column;
  flex: 1;
}
html body[data-t] #pantalla .avx-surface .avx-interval-chart .tym-ec {
  height: auto !important;
  flex: 1 0 174px;
}
html body[data-t] #pantalla .avx-surface .avx-primary .av-head { gap: 4px; padding: 0; margin: 0 0 4px; }
html body[data-t] #pantalla .avx-surface .avx-curve .seg button { padding: 4px 9px; }
html body[data-t] #pantalla .avx-surface .avx-primary .av-k { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; }
html body[data-t] #pantalla .avx-surface .avx-curve .sk-chart { overflow: hidden; margin-top: 3px; padding: 0; }
html body[data-t] #pantalla .avx-surface .avx-curve .sk-chart > svg {
  min-width: 0 !important;
  display: block;
  width: 100%;
  max-width: 690px;
  height: auto;
  margin-inline: auto;
}
html body[data-t] #pantalla .avx-surface .avx-curve .sk-lg { gap: 5px 9px; font-size: 10.5px; margin: 3px 0 0; justify-content: flex-start; }
html body[data-t] #pantalla .avx-surface .avx-curve .sk-ax { fill: var(--avx-muted); font-size: 11px !important; }
.avx-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  align-items: center;
  min-height: 24px;
  color: var(--avx-muted);
  font-size: 11px;
  line-height: 1.3;
}
.avx-chart-meta > :is(label,b) { margin-inline-start: auto; }
.avx-chart-meta b { color: var(--avx-ink); }
.avx-chart-meta select {
  max-width: 160px;
  border: 1px solid var(--avx-edge);
  border-radius: 6px;
  padding: 3px 5px;
  color: var(--avx-ink);
  background: var(--avx-band);
  font: inherit;
}
.avx-chart-meta .avx-legend-blue::before,
.avx-chart-meta .avx-legend-purple::before,
.avx-chart-meta .avx-legend-delivered::before,
.avx-chart-meta .avx-legend-pending::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 4px;
  border-radius: 2px;
  background: var(--avx-blue);
}
.avx-chart-meta .avx-legend-purple::before { background: var(--avx-purple); }
.avx-opl-chart {
  --avx-opl-columns: minmax(0, 1fr) 56px minmax(0, 1.15fr) 53px;
  --avx-delivered: #087b45;
  --avx-pending: #d9e2ed;
  --avx-pending-ink: #213d59;
  min-width: 0;
}
body[data-t="dark"] .avx-opl-chart {
  --avx-delivered: #087e46;
  --avx-pending: #3b526c;
  --avx-pending-ink: #eef4ff;
}
.avx-chart-meta .avx-legend-delivered::before { background: var(--avx-delivered); }
.avx-chart-meta .avx-legend-pending::before { background: var(--avx-pending); }
.avx-opl-head, .avx-opl-row {
  display: grid;
  grid-template-columns: var(--avx-opl-columns);
  align-items: center;
  gap: 6px;
  padding: 5px 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.avx-opl-head { color: var(--avx-muted); border-bottom: 1px solid var(--avx-edge); font-weight: 750; }
.avx-opl-head :last-child, .avx-opl-plan { text-align: right; }
.avx-opl-scroll { max-height: 216px; overflow: auto; scrollbar-width: thin; }
.avx-opl-row {
  width: 100%;
  min-height: 31px;
  color: var(--avx-ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--avx-edge);
}
button.avx-opl-row { cursor: pointer; }
button.avx-opl-row:is(:hover,:focus-visible) { background: var(--avx-band); }
button.avx-opl-row:focus-visible { outline-offset: -2px; }
.avx-opl-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 750; }
.avx-opl-pct {
  padding: 3px 4px;
  border-radius: 5px;
  color: var(--state-ink);
  background: color-mix(in srgb, var(--state-color) 15%, var(--avx-card));
  text-align: center;
  white-space: nowrap;
  font-weight: 800;
}
.avx-opl-track { background: var(--avx-band); border-radius: 4px; overflow: hidden; }
.avx-opl-fill { display: grid; grid-template-columns: var(--delivered) var(--pending); min-height: 18px; }
.avx-opl-fill > span { overflow: hidden; text-align: center; white-space: nowrap; line-height: 18px; font-size: 10px; font-weight: 750; }
.avx-opl-fill > span:first-child { color: #fff; background: var(--avx-delivered); }
.avx-opl-fill > span:last-child { color: var(--avx-pending-ink); background: var(--avx-pending); }
html body[data-t] #pantalla .avx-surface .avx-opl-standalone { grid-column: 1 / -1 !important; margin-bottom: 7px !important; }
.avx-surface [data-status="ok"] { --state-color: var(--d-ok); --state-ink: var(--d-ok-t); }
.avx-surface [data-status="warn"] { --state-color: var(--d-warn); --state-ink: var(--d-warn-t); }
.avx-surface [data-status="bad"] { --state-color: var(--d-bad); --state-ink: var(--d-bad-t); }
.avx-surface :is(td, .avx-rates > div)[data-status] { color: var(--state-ink); }
.avx-empty { color: var(--avx-muted); font-size: 12px; padding-block: 10px; }
.avx-foot { color: var(--avx-muted); font-size: 10.5px; line-height: 1.35; margin: auto 0 0; padding-top: 4px; }
.avx-rank-list { min-width: 0; max-height: 178px; overflow: auto; margin-top: 4px; scrollbar-width: thin; }
html body[data-t] #pantalla .avx-rank .tym-table-export-row { display: none; }
html body[data-t] #pantalla .avx-rank-list table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
html body[data-t] #pantalla .avx-rank-list :is(th,td) {
  padding: 4px !important;
  border-bottom: 1px solid var(--avx-edge);
  font-size: 11px !important;
  line-height: 1.15;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
html body[data-t] #pantalla .avx-rank-list :is(th,td):first-child { width: 32%; text-align: left; }
html body[data-t] #pantalla .avx-rank-list :is(th,td):nth-child(2) { width: 33%; text-align: left; }
html body[data-t] #pantalla .avx-rank-list thead th { position: sticky; top: 0; z-index: 1; background: var(--avx-band); color: var(--avx-muted); }
.avx-rank-link, .avx-action {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}
.avx-rank-link { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avx-rank-link:is(:hover,:focus-visible),.avx-action:is(:hover,:focus-visible) { color: var(--avx-blue); text-decoration: underline; }
.avx-pair { font-size: 10.5px; white-space: nowrap; }
.avx-bullet { position: relative; height: 5px; border-radius: 5px; background: var(--avx-band); margin: 4px 0 2px; }
.avx-bullet i { display: block; width: var(--real); height: 100%; border-radius: inherit; background: var(--state-color); }
.avx-bullet::after { content: ''; position: absolute; top: -2px; bottom: -2px; left: var(--expected); width: 2px; background: var(--avx-muted); }
.avx-rates { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin: 0 0 5px; }
.avx-rates > div { border-radius: 6px; background: color-mix(in srgb, var(--avx-band), var(--state-color, var(--avx-blue)) var(--avx-scale)); padding: 5px 6px; }
.avx-rates dt, .avx-recovery-items dt { color: var(--avx-muted); font-size: 11px; line-height: 1.25; }
.avx-rates dd { font-size: clamp(14px, 1.18cqw, 20px); font-weight: 800; margin: 1px 0 0; }
.avx-rates dd small { font-size: 10px; }
.avx-recovery-items { margin: 0; }
.avx-recovery-items > div { display: flex; justify-content: space-between; gap: 5px; padding: 4px 0; border-bottom: 1px solid var(--avx-edge); }
.avx-recovery-items dd { flex-shrink: 0; margin: 0; font-size: 11px; font-weight: 750; }
.avx-recovery-actions { padding-top: 6px; }
.avx-recovery-actions h4 { margin: 0 0 3px; font-size: 11.5px; }
.avx-recovery-actions p { margin: 2px 0; color: var(--avx-muted); font-size: 11px; line-height: 1.3; }
html body[data-t] #pantalla .avx-surface .avx-transport {
  grid-column: 1 / -1 !important;
  scroll-margin-top: calc(var(--sh-top-h, 75px) + 18px);
  position: relative;
}
html body[data-t] #pantalla .avx-transport > .ph > .r { display: none; }
html body[data-t] #pantalla .avx-surface .avx-table-scroll {
  position: relative;
  max-height: 355px;
  overflow: auto !important;
  scrollbar-width: thin;
}
html body[data-t] #pantalla .avx-table-scroll:has(tbody tr:nth-child(60)) {
  contain-intrinsic-block-size: auto 355px;
}
html body[data-t] #pantalla .avx-table-scroll table { border-collapse: separate; border-spacing: 0; }
html body[data-t] #pantalla .avx-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--avx-band) !important;
  color: var(--avx-ink) !important;
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: 1.15;
}
html body[data-t] #pantalla .avx-table-scroll thead th:nth-child(n+6):nth-child(-n+13) { min-width: 95px; }
html body[data-t] #pantalla .avx-table-scroll b.tym-av-num[data-status] { color: var(--state-ink, var(--avx-purple)) !important; }
html body[data-t] #pantalla .avx-table-scroll :is(th,td):first-child { position: sticky; left: 0; min-width: 105px; z-index: 2; background: var(--avx-card) !important; }
html body[data-t] #pantalla .avx-table-scroll thead th:first-child { z-index: 4; background: var(--avx-band) !important; }
html body[data-t] #pantalla .avx-table-scroll :is(th,td):nth-child(2) { min-width: 78px; }
html body[data-t] #pantalla .avx-table-scroll td:nth-child(20) { min-width: 145px; }
html body[data-t] #pantalla .avx-transport .v123-filterbox { margin: 2px 0 6px !important; padding: 4px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html body[data-t] #pantalla .avx-transport .v123-filter-title { display: none !important; }
html body[data-t] #pantalla .avx-transport .v123-filterbar { gap: 5px !important; }
html body[data-t] #pantalla .avx-transport .v123-field.v123-search {
  box-sizing: border-box;
  flex: 0 0 100% !important;
  flex-wrap: wrap;
  max-width: none !important;
  width: 100%;
  height: auto !important;
  padding: 7px 8px 4px !important;
}
html body[data-t] #pantalla .avx-transport .v123-search > label {
  flex-basis: 100%;
  white-space: normal !important;
}
html body[data-t] #pantalla .avx-transport .v123-searchwrap {
  flex-basis: 100% !important;
  margin: 2px 0 0 !important;
}
html body[data-t] #pantalla .avx-transport .v123-searchwrap input {
  padding-inline-start: 0 !important;
}

@container (min-width: 1051px) {
  html body[data-t] #pantalla .avx-surface > .v121-head { min-height: 47px !important; padding-block: 5px !important; }
  html body[data-t] #pantalla .avx-surface .avx-card :is(.ph,h3) { margin-bottom: 4px; }
  html body[data-t] #pantalla .avx-transport > .tym-table-export-row {
    position: absolute;
    top: 5px;
    right: 10px;
    margin: 0;
  }
}
@container (max-width: 1050px) {
  html body[data-t] #pantalla .avx-surface .avx-kpis { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  .avx-primary, .avx-diagnostics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html body[data-t] #pantalla .avx-surface :is(.avx-opl-panel,.avx-recovery) { grid-column: 1 / -1 !important; }
}
@container (max-width: 590px) {
  html body[data-t] #pantalla .avx-surface .avx-kpis { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .avx-primary, .avx-diagnostics { grid-template-columns: minmax(0,1fr); }
  .avx-cut { font-size: 10.5px; }
  .avx-chart-meta select { min-height: 30px; }
  html body[data-t] #pantalla .avx-surface .v121-head > div:has(> h2) { display: block !important; }
  html body[data-t] #pantalla .avx-surface .v121-head h2 { font-size: 15px !important; }
  html body[data-t] #pantalla .avx-surface .v121-head h2 + p { display: none; }
}
