.compare-page .main-form > div {
  width: auto;
  position: relative;
  flex: 1;
  margin-right: 8px;
}

.compare-page .main-form label {
  min-height: 19px;
}

.compare-page .main-form {
  margin-bottom: 59px;
  margin-top: 17px;
}

.compare-page .tab-content-view {
  margin-bottom: 64px;
}

.compare-page .main-form input[type="date"] {
  padding-left: 40px;
  width: 200px;
  height: 48px;
}

.compare-page .input-inside-label {
  font-weight: normal;
  font-size: 16px;
  line-height: 170%;
  color: #a7afbe;
  position: absolute;
  top: 35px;
  left: 16px;
}

.compare-page .listing-table tr td:first-of-type {
  border-left-color: transparent;
}

.compare-page .listing-table tr.fund-1 td:first-of-type {
  border-left-color: var(--primary-font-color);
}

.compare-page .listing-table tr.fund-2 td:first-of-type {
  border-left-color: var(--secondary-font-color);
}

.compare-page .listing-table tr.fund-3 td:first-of-type {
  border-left-color: #ca4072;
}

.compare-page .listing-table tr.fund-4 td:first-of-type {
  border-left-color: #5bcaa9;
}

.compare-page .listing-table tr.fund-5 td:first-of-type {
  border-left-color: #e4ca41;
}

.compare-page .listing-table th:first-of-type {
  width: auto;
}

/* TFC-147: link "usuń z porównania" inline obok nazwy (globalna reguła
   .main .listing-table a daje inline-block o szerokości ~100%). */
.compare-page .listing-table a.remove-fund {
  display: inline;
  width: auto;
  color: #e00;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

/* TFC-147: mniejszy odstęp między linkami CSV/XLSX a tabelą (globalnie 64px + 40px). */
.compare-page .chart-menu {
  margin-bottom: 8px;
}

.compare-page .listing-table {
  margin-top: 8px;
}

.switch-buttons {
  list-style-type: none;
  margin: 24px 0 0 0;
  padding: 0;
  flex: 4;
  justify-content: flex-end;
  display: flex;
}

.switch-buttons li {
  float: left;
  margin: 0;
  width: auto;
  height: 48px;
  position: relative;
}

.switch-buttons li:first-of-type label {
  border-radius: 8px 0 0 8px;
  border-left: 1px solid #9fb7df;
}

.switch-buttons li:last-of-type label {
  border-radius: 0 8px 8px 0;
}

.switch-buttons label,
.switch-buttons input {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.switch-buttons label {
  position: relative;
}

.switch-buttons input[type="radio"] {
  opacity: 0.011;
  z-index: 100;
}

.switch-buttons input[type="radio"]:checked + label {
  background: var(--primary-font-color);
  color: #fff;
}

.switch-buttons label {
  padding: 11px 12px;
  border: 1px solid #9fb7df;
  border-left: none;
  cursor: pointer;
  z-index: 90;
  text-align: center;
  vertical-align: middle;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  color: var(--comment-font-color);
}

.switch-buttons label:hover {
  background: #f9fafb;
}

@media only screen and (max-width: 768px) {
  .compare-page .main-form input[type="date"] {
    width: 100%;
  }

  .switch-buttons li:first-of-type,
  .switch-buttons li {
    width: 100%;
    height: auto;
  }

  .compare-page .main-form {
    margin-bottom: 32px;
  }
}
