:root {
  --rs-stock: #6b8ec0;
  --rs-imoex: #d9ac3a;
  --rs-moexeu: #7fab55;
  --rs-blue: #1b68ae;
  --rs-site-blue: #005b9c;
  --rs-link-blue: #3189da;
  --rs-accent: #d7e6f0;
  --rs-button-blue: #789abe;
  --rs-button-hover: #3189da;
  --rs-text: #3c3e40;
  --rs-muted: #807f83;
  --rs-border: #d1d3d4;
  --rs-table-border: #d1d3d4;
  --rs-table-head-bg: #eaf3fb;
  --rs-table-head-text: #005b9c;
  --rs-table-stripe: #f4f9fd;
  --rs-control-blue: #95b7d9;
  --rs-grid: #d8dee8;
  --rs-danger: #db2b36;
  --rs-success: green;
}

@font-face {
  font-family: "OpenSansCondensedBold";
  src: url("../fonts/OpenSans-CondBold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: var(--rs-text);
  font-family: Arial;
  font-size: 14px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.rsf-mini-body {
  min-height: 0;
  background: transparent;
}

button,
input,
select {
  font: inherit;
}

.widget {
  width: 100%;
  max-width: 100%;
  background: #fff;
  overflow-x: hidden;
}

.widget-inner {
  width: 100%;
  max-width: 730px;
  padding: 0;
  margin: 0;
}

.rsf-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.rsf-page-title h1 {
  margin: 0;
  color: var(--rs-blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 27px;
}

.rsf-stock-page .rsf-page-title,
.rsf-archive-page .rsf-page-title,
.rsf-calc-page .rsf-page-title {
  justify-content: flex-end;
  min-height: 24px;
  margin: 0 0 8px;
}

.rsf-stock-page .rsf-page-title h1,
.rsf-archive-page .rsf-page-title h1,
.rsf-calc-page .rsf-page-title h1 {
  display: none;
}

.rsf-print-icon {
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  position: relative;
}

.rsf-print-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 14px;
  height: 9px;
  border: 2px solid #b8b8b8;
  background: #d5d5d5;
}

.rsf-print-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #b8b8b8;
  border-bottom: 0;
  background: #f7f7f7;
}

.positive {
  color: var(--rs-success);
}

.negative {
  color: red;
}

.muted,
.footer-note {
  color: var(--rs-muted);
}

.rsf-hidden {
  display: none !important;
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.35;
}

.notice,
.error {
  margin: 10px 0;
  border: 1px solid var(--rs-border);
  padding: 9px 11px;
  font-size: 12px;
}

.notice {
  background: #f7fafc;
  color: var(--rs-text);
}

.error {
  border-color: #f1b5bf;
  background: #fff4f6;
  color: var(--rs-danger);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.contentTable {
  width: 100%;
  margin: 0 0 15px;
  border-collapse: collapse;
  border-right: 1px solid var(--rs-table-border);
  border-left: 1px solid var(--rs-table-border);
  border-bottom: 1px solid var(--rs-table-border);
  color: var(--rs-text);
  font-family: Arial;
}

.contentTable th {
  border: 1px solid var(--rs-table-border);
  background: var(--rs-table-head-bg);
  color: var(--rs-table-head-text);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  text-align: center;
  white-space: nowrap;
}

.contentTable th:first-child {
  text-align: left;
}

.contentTable td {
  border: 1px solid var(--rs-table-border);
  color: var(--rs-text);
  font-size: 12px;
  padding: 14px 10px 10px 16px;
  text-align: center;
  white-space: nowrap;
}

.contentTable td:first-child {
  text-align: left;
  font-weight: 700;
}

.contentTable tr.odd td {
  background: #fff;
}

.contentTable tr.even td {
  background: var(--rs-table-stripe);
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Stock graph */

.rsf-stock-page {
  font-family: Arial;
  font-size: 14px;
}

.rsf-info {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 22px;
}

.rsf-info > *,
.rsf-top-controls > * {
  min-width: 0;
}

.rsf-summary-main {
  min-height: 150px;
  color: var(--rs-text);
}

.rsf-summary-label {
  color: var(--rs-text);
  font-size: 14px;
  line-height: 18px;
}

.rsf-summary-gap {
  margin-top: 20px;
}

.rsf-last-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-height: 24px;
}

.rsf-currency {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.rsf-last-price {
  font-size: 16px;
  font-weight: 700;
}

.rsf-summary-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
}

.rsf-summary-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  border-bottom: 1px solid #dbdfe2;
  color: var(--rs-text);
  gap: 12px;
  min-width: 0;
}

.rsf-summary-metrics b {
  color: var(--rs-site-blue);
  font-size: 14px;
  line-height: 16px;
  min-width: 0;
}

.rsf-summary-metrics span {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.rsf-periods {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 14px;
}

.rsf-periods button {
  flex: 0 1 auto;
  min-width: max-content;
  height: 40px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #8499a7;
  cursor: pointer;
  font: 400 14px/40px Arial;
  margin-bottom: 0;
  padding: 0 8px;
  text-align: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rsf-periods button:hover,
.rsf-periods button.active {
  border-bottom-color: var(--rs-link-blue);
  color: #3c3e40;
}

.rsf-custom-period {
  position: relative;
  flex: 0 1 auto;
  min-width: max-content;
}

.rsf-custom-period > button {
  width: 100%;
}

.rsf-custom-popover {
  position: absolute;
  z-index: 5;
  top: 100%;
  right: 0;
  display: none;
  min-width: 250px;
  border-radius: 3px;
  background: var(--rs-link-blue);
  color: #fff;
  padding: 11px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.rsf-custom-popover.open {
  display: block;
}

.rsf-date-grid {
  display: grid;
  grid-template-columns: 28px 58px 46px 46px;
  gap: 5px;
  align-items: center;
  margin-bottom: 8px;
}

.ymd {
  height: 20px;
  border: 1px solid var(--rs-border);
  background: #f7f7f7;
  color: var(--rs-text);
  font-size: 11px;
  padding: 2px 5px;
  text-align: center;
}

.ymd.y {
  width: 60px;
}

.ymd.m,
.ymd.d {
  width: 50px;
}

.rsf-stock-page .ymd {
  width: 50px;
  height: 36px;
  border-color: var(--rs-control-blue);
  border-radius: 3px;
  background: #fff;
  font-size: 14px;
}

.rsf-stock-page select {
  width: 195px;
  height: 36px;
  border: 1px solid var(--rs-control-blue);
  background: #fff;
  color: var(--rs-text);
  font-size: 14px;
  padding: 2px 26px 2px 5px;
}

.rsf-stock-page select.rsf-line-select {
  appearance: none;
  width: 195px;
  height: 36px;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rs-blue) 50%),
    linear-gradient(135deg, var(--rs-blue) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 17px,
    calc(100% - 9px) 17px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  color: var(--rs-text);
  padding: 2px 28px 2px 4px;
  outline: 0;
}

.rsf-stock-page select.rsf-line-select:focus {
  border-bottom-color: var(--rs-blue);
}

.rsf-top-controls {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 10px;
}

.cblock {
  border: 0;
  background: #fff;
  padding: 0;
}

.cblock h5,
.rsf-history-form h5 {
  margin: 0 0 12px;
  color: var(--rs-text);
  font-size: 13px;
  font-weight: 700;
}

.rsf-index-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 20px;
}

.rsf-index-block h5 {
  flex-basis: 100%;
}

.rsf-check {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--rs-text);
  cursor: pointer;
  font-size: 12px;
  gap: 6px;
  margin: 0 10px 10px 0;
  vertical-align: middle;
}

.rsf-check input[type="checkbox"],
.rsf-check input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsf-check span {
  width: 15px;
  height: 15px;
  border: 1px solid var(--rs-control-blue);
  background: #fff;
  display: inline-block;
  flex: 0 0 15px;
}

.rsf-check[data-led="stock"].checked span {
  background: var(--rs-stock);
}

.rsf-check[data-led="imoex"].checked span {
  background: var(--rs-imoex);
}

.rsf-check[data-led="moexeu"].checked span {
  background: var(--rs-moexeu);
}

.rsf-check[data-led="sma"].checked span,
.rsf-check[data-led="sma2"].checked span,
.rsf-check[data-led="macd"].checked span {
  background: var(--rs-danger);
}

.rsf-check[data-led="trend"].checked span {
  background: #c2c385;
}

.rsf-check[data-led="total"].checked span {
  background: #717576;
}

.rsf-check[data-led="ema"].checked span {
  background: #986867;
}

.rsf-check[data-led="rsi"].checked span {
  background: #dad8cd;
}

.rsf-check[data-led="muted"].checked span {
  background: #8196a6;
}

.rsf-check[data-led="compare"].checked span {
  background: var(--rs-check-color, var(--rs-stock));
}

.rsf-factor input[type="text"] {
  width: 50px;
  height: 36px;
  border: 1px solid var(--rs-control-blue);
  border-radius: 3px;
  background: #fff;
  color: var(--rs-text);
  padding: 2px 5px;
  text-align: center;
}

.macd-factor input[type="text"] {
  width: 50px;
}

.rsf-chart-panel {
  position: relative;
  border: 0;
  background: #fff;
  margin-bottom: 14px;
  padding: 0;
  overflow: visible;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rsf-chart-panel.is-updating {
  opacity: 0.45;
  transform: translateY(2px);
}

.rsf-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}

.rsf-chart-head h4,
.rsf-dynamics h4,
.rsf-calc-form h4 {
  margin: 0 0 10px;
  color: var(--rs-text);
  font-size: 15px;
  font-weight: 700;
}

.rsf-head-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.contentPane {
  position: relative;
  background: #fff;
}

.main-chart {
  height: 300px;
}

.sub-chart {
  height: 150px;
  margin-bottom: 10px;
}

.volume-chart {
  height: 165px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
  color: #5c6f7d;
  font-size: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 18px;
  height: 3px;
  background: var(--rs-stock);
}

.rsf-news-hint {
  display: none;
  position: absolute;
  left: 58px;
  bottom: 10px;
  max-width: calc(100% - 80px);
  border: 1px solid var(--rs-border);
  background: #fff;
  color: var(--rs-text);
  padding: 8px 10px;
  box-shadow: 0 0 10px var(--rs-border);
  cursor: pointer;
  z-index: 4;
}

.rsf-news-hint.open {
  display: block;
}

.rsf-chart-tooltip {
  display: none;
  position: absolute;
  width: 280px;
  border: 1px solid #bfbfbf;
  background: #fff;
  color: var(--rs-text);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  z-index: 6;
  pointer-events: none;
  font-size: 14px;
}

.rsf-chart-tooltip.open {
  display: block;
}

.rsf-chart-tooltip-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding: 14px 14px 7px;
}

.rsf-chart-tooltip-name {
  color: var(--rs-stock);
  font-weight: 700;
  line-height: 1.1;
}

.rsf-chart-tooltip-date {
  color: #000;
  font-weight: 700;
  text-align: right;
}

.rsf-chart-tooltip table {
  width: calc(100% - 20px);
  margin: 0 10px 12px;
  border-collapse: collapse;
}

.rsf-chart-tooltip td {
  border: 1px solid #c7c7c7;
  padding: 2px 6px;
  line-height: 18px;
}

.rsf-chart-tooltip td:last-child {
  text-align: right;
}

.rsf-news-hint a {
  color: #0694d4;
  font-weight: 700;
  text-decoration: none;
}

.rsf-news-hint span {
  display: block;
  margin-top: 3px;
  color: var(--rs-muted);
  font-size: 12px;
}

.rsf-news-preview-date {
  color: var(--rs-text);
  font-size: 14px;
  margin-bottom: 4px;
}

.rsf-news-preview-title {
  color: var(--rs-text);
  font-size: 14px;
  line-height: 1.25;
}

.rsf-news-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 80px 20px;
}

.rsf-news-modal.open {
  display: flex;
}

.rsf-news-modal-window {
  position: relative;
  width: min(900px, 100%);
  border: 1px solid var(--rs-border);
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  padding: 14px;
}

.rsf-news-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #a7a7a7;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 22px;
  text-align: center;
}

.rsf-news-modal-date {
  color: var(--rs-text);
  font-size: 14px;
  font-weight: 700;
  margin: 18px 34px 2px 0;
}

.rsf-news-modal h3 {
  margin: 0 34px 10px 0;
  color: var(--rs-text);
  font-size: 16px;
  line-height: 1.3;
}

.rsf-news-modal-body {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--rs-border);
  padding: 18px 10px;
  color: var(--rs-text);
  font-size: 14px;
  line-height: 1.35;
}

.rsf-news-modal-body a {
  color: var(--rs-blue);
}

.rsf-analysis {
  margin: 28px 0 20px;
  border-top: 3px solid var(--rs-accent);
  border-bottom: 3px solid var(--rs-accent);
  background: #fff;
  padding: 20px 0 14px;
}

.rsf-analysis .cblock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.rsf-analysis h5 {
  flex-basis: 100%;
}

.rsf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
}

.rsf-compare {
  margin: -20px 0 18px;
  background: #fff;
  padding: 16px 0 10px;
}

.rsf-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--rs-text);
  cursor: pointer;
  font: 700 13px Arial;
  margin: 0 0 8px;
  padding: 0;
}

.rsf-compare-toggle b {
  font-size: 15px;
  line-height: 1;
}

.rsf-compare-list {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.rsf-compare.open .rsf-compare-list {
  display: flex;
}

.rsf-compare .rsf-check {
  margin-right: 0;
  white-space: nowrap;
}

.rsf-actions button,
.rsf-stock-page .rsf-custom-popover button {
  width: 185px;
  height: 41px;
  border: 0;
  border-radius: 0;
  background: var(--rs-button-blue);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  padding: 0;
  text-align: center;
  transition: background 0.2s ease;
}

.rsf-actions button:hover,
.rsf-stock-page .rsf-custom-popover button:hover {
  background: var(--rs-button-hover);
}

.rsf-dynamics {
  margin-top: 20px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rsf-dynamics h4 {
  margin-bottom: 8px;
}

.rsf-stock-page .contentTable {
  border: 0;
  border-collapse: collapse;
  font-family: Arial;
}

.rsf-stock-page .contentTable th {
  height: 45px;
  border: 0;
  border-bottom: 2px solid var(--rs-accent);
  background: var(--rs-table-head-bg);
  color: var(--rs-text);
  font-size: 13px;
  padding: 10px 6px;
  text-align: left;
}

.rsf-stock-page .contentTable th:nth-child(n+2) {
  text-align: center;
}

.rsf-stock-page .contentTable td {
  border: 0;
  border-bottom: 1px solid #dbdfe2;
  padding: 10px 6px;
  text-align: center;
}

.rsf-stock-page .contentTable td:first-child {
  text-align: left;
}

.rsf-stock-page .rsf-dynamics .contentTable {
  border-collapse: collapse;
  border: 1px solid var(--rs-table-border);
  font-size: 14px;
  width: 100%;
}

.rsf-stock-page .rsf-dynamics .contentTable th {
  height: 42px;
  border: 1px solid var(--rs-table-border);
  border-bottom: 2px solid var(--rs-accent);
  background: var(--rs-table-head-bg);
  color: var(--rs-table-head-text);
  font-weight: 700;
  text-align: center;
}

.rsf-stock-page .rsf-dynamics .contentTable th:first-child {
  text-align: left;
}

.rsf-stock-page .rsf-dynamics .contentTable td {
  border: 1px solid var(--rs-table-border);
  padding: 13px 10px;
  color: var(--rs-text);
}

.rsf-stock-page .rsf-dynamics .contentTable tr.odd td {
  background: #fff;
}

.rsf-stock-page .rsf-dynamics .contentTable tr.even td {
  background: var(--rs-table-stripe);
}

.rsf-stock-page .rsf-dynamics .contentTable th:nth-child(2),
.rsf-stock-page .rsf-dynamics .contentTable td:nth-child(2) {
  width: 72px;
}

.rsf-stock-page .rsf-dynamics .contentTable td:first-child {
  font-weight: 400;
}

.rsf-expanded .widget-inner {
  max-width: none;
}

.rsf-expanded .main-chart {
  height: 520px;
}

.rsf-expanded .sub-chart,
.rsf-expanded .volume-chart {
  height: 200px;
}

/* Calculator */

.rsf-calc-page {
  font-family: Arial;
  font-size: 12px;
}

.rsf-calc-page .widget-inner {
  padding-top: 0;
}

.rsf-calc-form {
  max-width: 550px;
  color: var(--rs-text);
}

.rsf-calc-instrument {
  margin-bottom: 18px;
  white-space: nowrap;
}

.rsf-calc-instrument input[type="radio"] {
  display: none;
}

.rsf-calc-page .rsf-check {
  display: block;
  color: var(--rs-text);
  font: 12px/16px Arial;
  margin: 0 0 10px;
}

.rsf-calc-page .rsf-check input[type="checkbox"] {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 15px;
  height: 15px;
  margin: 0 4px 0 0;
  vertical-align: -2px;
}

.rsf-calc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.rsf-calc-field {
  min-width: 70px;
  font-size: 10px;
}

.rsf-calc-field div {
  margin-bottom: 4px;
}

.rsf-calc-page .ymd {
  height: 20px;
  border: 1px solid var(--rs-border);
  background: #f7f7f7;
  color: var(--rs-text);
  font-size: 11px;
}

.amount-field {
  width: 50px;
}

.money-field {
  width: 100px;
}

.rsf-date-select-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  width: 550px;
  max-width: 100%;
  margin-bottom: 12px;
}

.rsf-date-select-line .h5 {
  flex-basis: 100%;
  color: var(--rs-text);
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 4px;
}

.rsf-calc-page select {
  width: 180px;
  height: 26px;
  border: 1px solid var(--rs-border);
  background: #f7f7f7;
  color: var(--rs-text);
  font: 11px Arial;
  padding: 2px 5px;
}

.rsf-calc-submit {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 550px;
  max-width: 100%;
  margin: 14px 0 28px;
}

.rsf-calc-submit .rsf-check {
  flex: 1 1 auto;
  line-height: 18px;
  margin-top: 0;
}

.rsf-calc-submit button,
.rsf-history-actions button {
  width: 150px;
  min-width: 150px;
  height: 39px;
  border: 1px solid var(--rs-button-blue);
  background: var(--rs-button-blue);
  color: #fff;
  cursor: pointer;
  font: 12px Arial;
  padding: 8px 10px;
  text-align: center;
}

.rsf-calc-submit button:hover,
.rsf-history-actions button:hover {
  background: var(--rs-button-hover);
  border-color: var(--rs-button-hover);
  color: #fff;
}

.rsf-result-table {
  width: 100%;
  margin-top: 15px;
}

.rsf-result-table th:first-child,
.rsf-result-table td:first-child {
  width: 70%;
}

/* Quotation archive */

.rsf-archive-page {
  font-family: Arial;
  font-size: 12px;
}

.rsf-history-form {
  margin-bottom: 16px;
}

.hist {
  border-collapse: collapse;
  margin: 0 0 10px;
}

.hist td {
  border: 0 !important;
  padding: 1px !important;
}

.hist td:first-child {
  width: 60px;
}

.rsf-archive-page .ymd {
  height: 20px;
  border: 1px solid var(--rs-border);
  background: #f7f7f7;
}

.rsf-archive-page .ymd.y {
  width: 43px;
}

.rsf-archive-page .ymd.m,
.rsf-archive-page .ymd.d {
  width: 33px;
}

.rsf-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.rsf-history-actions > div {
  width: 175px;
}

.rsf-history-actions select {
  width: 180px;
  height: 32px;
  margin-top: 8px;
  border: 1px solid var(--rs-border);
  background: #f7f7f7;
  color: var(--rs-text);
  font: 11px Arial;
  padding: 2px 5px;
}

.rsf-history-actions button {
  width: 175px;
  min-width: 175px;
  margin-top: 14px;
}

/* Mini informer */

.rsf-mini {
  width: 206px;
  max-width: 206px;
  height: 220px;
  color: #005b9f;
  background: transparent;
  font-family: "OpenSansCondensedBold";
  overflow: hidden;
}

.rsf-mini,
.rsf-mini * {
  cursor: default;
  font-family: "OpenSansCondensedBold";
}

.rsf-mini #stocksChart {
  width: 206px;
  height: 220px;
  border: 0;
  background: transparent;
  padding: 0;
}

.rsf-mini-title {
  color: #005B9C;
  font: 18px / 22px "OpenSansCondensedBold";
  letter-spacing: 0.02em;
  margin-bottom: 1px;
  text-transform: uppercase;
}

.rsf-mini-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #005b9f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
  white-space: nowrap;
}

.rsf-mini-meta strong {
  font-size: 11px;
  font-weight: 700;
}

.rsf-mini-meta .metric-change {
  font-size: 11px;
  font-weight: 400;
}

.rsf-mini-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  margin: 0 0 0 14px;
  color: #005b9f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.rsf-mini-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rsf-mini-legend-item i {
  display: inline-block;
  width: 11px;
  height: 2px;
  background: currentColor;
}

.legend_chart {
  color: #005b9f;
}

.legend_index {
  color: #0088cf;
}

.legend_index_pw {
  color: #24a9e8;
}

.mini-chart {
  display: block;
  width: 206px;
  height: 160px;
}

.rsf-mini-xlabels {
  display: flex;
  justify-content: space-between;
  padding-left: 1px;
  color: #777;
  font-size: 10px;
  line-height: 1;
  margin-top: -2px;
}

@media (max-width: 560px) {
  .widget-inner {
    padding: 10px;
  }

  .rsf-info,
  .rsf-summary-metrics,
  .rsf-top-controls {
    grid-template-columns: 1fr;
  }

  .rsf-chart-head,
  .rsf-calc-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .rsf-stock-page select,
  .rsf-calc-page select,
  .rsf-history-actions select,
  .rsf-actions button,
  .rsf-history-actions button,
  .rsf-calc-submit button {
    width: 100%;
  }

  .rsf-head-controls,
  .rsf-actions,
  .rsf-history-actions {
    justify-content: flex-start;
  }

  .main-chart {
    height: 240px;
  }

  .rsf-date-select-line {
    width: 100%;
  }
}

@media print {
  .rsf-periods,
  .rsf-top-controls,
  .rsf-analysis,
  .rsf-compare,
  .rsf-actions,
  .rsf-print-icon,
  .footer-note {
    display: none !important;
  }

  .widget-inner {
    padding: 0;
  }
}
