/* V1012: compact seven-timeframe flow table matching the supplied reference.
   Keep UI874 placement and V1011 height containment; scroll only on overflow. */
html body #vyroMtfRightRail > #vyroMtfFlowPanel.panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0 !important;
  background: #081219 !important;
  border-color: #263b49 !important;
}
html body #vyroMtfRightRail > #vyroMtfFlowPanel.panel > h3 {
  color: #d7eaf4 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}
#mtfRows {
  min-width: 0;
  max-width: 100%;
  container-name: vyro-mtf;
  container-type: inline-size;
}
#mtfRows .vyroMtf1012,
#mtfRows .vyroMtf1012 * {
  box-sizing: border-box;
}
#mtfRows .vyroMtf1012 {
  width: 100%;
  min-width: 216px;
  color: #b9cedc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
#mtfRows .vyroMtf1012-summary {
  padding: 7px 8px;
  margin-bottom: 7px;
  border: 1px solid #087d79;
  border-radius: 12px;
  background: #06211b;
  font-family: Consolas, "Liberation Mono", "Courier New", monospace;
}
#mtfRows .vyroMtf1012-availability {
  display: block;
  color: #d9eef0;
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  overflow-wrap: anywhere;
}
#mtfRows .vyroMtf1012-counts {
  display: block;
  margin-top: 4px;
  color: #a4bdc8;
  font-size: 9px;
  line-height: 12px;
  overflow-wrap: anywhere;
}
#mtfRows .vyroMtf1012-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 10px;
  line-height: 14px;
}
#mtfRows .vyroMtf1012-table th,
#mtfRows .vyroMtf1012-table td {
  padding: 7px 3px;
  border-bottom: 1px solid #294454;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
#mtfRows .vyroMtf1012-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 6px 3px;
  background: #081219;
  color: #80ddf8;
  font-size: 9px;
  font-weight: 800;
  line-height: 12px;
}
#mtfRows .vyroMtf1012-table thead th:nth-child(1) { width: 16%; text-align: left; }
#mtfRows .vyroMtf1012-table thead th:nth-child(2) { width: 17%; }
#mtfRows .vyroMtf1012-table thead th:nth-child(3) { width: 18%; }
#mtfRows .vyroMtf1012-table thead th:nth-child(4) { width: 16%; }
#mtfRows .vyroMtf1012-table thead th:nth-child(5) { width: 12%; }
#mtfRows .vyroMtf1012-table thead th:nth-child(6) { width: 21%; text-align: left; }
#mtfRows .vyroMtf1012-table .vyroMtf1012-tf {
  color: #d4e5ee;
  font-size: inherit;
  font-weight: 800;
  text-align: left;
}
#mtfRows .vyroMtf1012-table .vyroMtf1012-signal {
  text-align: left;
  font-size: 9px;
  font-weight: 700;
}
#mtfRows .vyroMtf1012-row:hover > * { background-color: #0c202b; }
#mtfRows .vyroMtf1012 .is-up { color: #00edaa; }
#mtfRows .vyroMtf1012 .is-down { color: #ff576c; }
#mtfRows .vyroMtf1012 .is-wait { color: #ffcd00; }
#mtfRows .vyroMtf1012 .is-muted { color: #7996a7; }
/* Keep all six columns legible in the narrower tablet rail. The existing
   scroller also permits horizontal movement in exceptionally narrow FULL. */
@container vyro-mtf (max-width: 240px) {
  #mtfRows .vyroMtf1012-availability { font-size: 13px; }
  #mtfRows .vyroMtf1012-table { font-size: 9px; }
  #mtfRows .vyroMtf1012-table th,
  #mtfRows .vyroMtf1012-table td { padding: 6px 2px; }
  #mtfRows .vyroMtf1012-table thead th { font-size: 8px; }
  #mtfRows .vyroMtf1012-table .vyroMtf1012-signal { font-size: 8px; }
}

/* The chart determines the desktop row height. Size containment stops the
   combined MTF + SMC content from pushing the lower controls away from it.
   Stretch uses that row's actual height, including wrapped chart controls. */
@media (min-width: 740px) {
  html body.vyroLayout874:not(.vyroFs830) .main.vyroWorkspace874 > #vyroMtfRightRail {
    contain: size !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
}
/* On phones the rail has its own grid row, so give it a definite height
   instead of inheriting the desktop row's size containment. */
@media (max-width: 739px) {
  html body.vyroLayout874:not(.vyroFs830) .main.vyroWorkspace874 > #vyroMtfRightRail {
    contain: none !important;
    height: var(--vyro-chart-height) !important;
    min-height: 0 !important;
    max-height: var(--vyro-chart-height) !important;
    overflow: hidden !important;
  }
}
html body.vyroLayout874 #vyroMtfRightRail > #vyroMtfFlowPanel.panel,
html body.vyroLayout874.vyroFs830 #vyroMtfRightRail > #vyroMtfFlowPanel.panel.vyroFsFlow830 {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
html body.vyroLayout874 #vyroMtfRightRail > #vyroMtfFlowPanel.panel > h3 {
  flex: 0 0 auto !important;
}
html body.vyroLayout874 #vyroMtfFlowPanel > #mtfRows {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
/* SMC stays below MTF. Tall SMC text scrolls within its half of the rail,
   leaving space for the multi-timeframe table. */
html body.vyroLayout874:not(.vyroFs830) #vyroMtfRightRail > #vyroSmcProPanel.panel {
  box-sizing: border-box !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
  max-height: 50% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}
html body.vyroLayout874 #vyroMtfFlowPanel > #mtfRows,
html body.vyroLayout874 #vyroSmcProPanel {
  scrollbar-width: thin;
  scrollbar-color: #367886 #07131b;
}
html body.vyroLayout874 #vyroMtfFlowPanel > #mtfRows::-webkit-scrollbar,
html body.vyroLayout874 #vyroSmcProPanel::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
html body.vyroLayout874 #vyroMtfFlowPanel > #mtfRows::-webkit-scrollbar-track,
html body.vyroLayout874 #vyroSmcProPanel::-webkit-scrollbar-track {
  background: #07131b;
  border-radius: 8px;
}
html body.vyroLayout874 #vyroMtfFlowPanel > #mtfRows::-webkit-scrollbar-thumb,
html body.vyroLayout874 #vyroSmcProPanel::-webkit-scrollbar-thumb {
  background: #367886;
  border: 2px solid #07131b;
  border-radius: 8px;
}
html body.vyroLayout874 #vyroMtfFlowPanel > #mtfRows::-webkit-scrollbar-thumb:hover,
html body.vyroLayout874 #vyroSmcProPanel::-webkit-scrollbar-thumb:hover {
  background: #54abb9;
}
html body.vyroLayout874 #vyroMtfFlowPanel > #mtfRows:focus-visible,
html body.vyroLayout874 #vyroSmcProPanel:focus-visible {
  outline: 1px solid #20ead6;
  outline-offset: -2px;
}
