.team-charts {
  --tc-ink: #707378;
  --tc-green: #6c9e79;
  --tc-text: #363b44;
  --tc-muted: #707378;
  --tc-border: #dbe0e5;
  --tc-gap: clamp(14px, 2vw, 28px);
  min-width: 0;
  padding: 20px var(--tc-gap) 28px;
  min-height: 100%;
  background: #f5f5f5;
  color: var(--tc-text);
  font-family: 'PT Sans', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.tc-heading,
.tc-section-title,
.tc-keys,
.tc-key,
.tc-view-switch,
.tc-view-button,
.tc-owner-cell,
.tc-trend-legend,
.tc-series-toggle,
.tc-point-value {
  display: flex;
  align-items: center;
}
.tc-heading {
  gap: 4px 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.tc-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
}
.tc-current-total,
.tc-current-review,
.tc-report-period {
  white-space: nowrap;
  font-size: 14px;
}
.tc-current-total {
  font-weight: 700;
}
.tc-current-review,
.tc-report-period {
  color: var(--tc-muted);
}
.tc-report-period {
  padding-left: 13px;
  border-left: 1px solid var(--tc-border);
}
.tc-team-toolbar {
  gap: 0;
  padding-inline: 0;
}
.tc-team-toolbar .cal-title {
  flex: none;
  padding-inline-end: 8px;
}
.tc-metric-switch {
  display: flex;
  flex: none;
  align-items: center;
  padding-inline-end: 10px;
}
.tc-metric-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 39px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #81868c;
}
.tc-metric-button[aria-pressed='true'],
.team-charts .tc-view-button[aria-pressed='true'],
.tc-series-toggle[aria-pressed='true'] {
  color: var(--trade-selected);
}
.tc-metric-icon {
  width: 16px;
  height: 16px;
  font: 700 17px/16px 'PT Sans', Arial, sans-serif;
}
.tc-metric-button[data-metric='tickets'] .tc-metric-icon {
  --tc-metric-mask: url('/assets/icons/ticket.svg');
}
.tc-metric-button[data-metric='points'] .tc-metric-icon {
  --tc-metric-mask: url('/assets/icons/star.svg');
}
.tc-metric-button:is([data-metric='tickets'], [data-metric='points']) .tc-metric-icon {
  background-color: currentColor;
  -webkit-mask: var(--tc-metric-mask) center / contain no-repeat;
  mask: var(--tc-metric-mask) center / contain no-repeat;
}
.tc-metric-review-dot {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a66a25;
}
.tc-metric-tooltip {
  position: absolute;
  z-index: 2;
  inset-block-start: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  width: max-content;
  max-width: min(215px, 65vw);
  padding: 5px 8px;
  border-radius: 3px;
  background: #363b44;
  color: #fff;
  font: 400 13px/1.35 'PT Sans', Arial, sans-serif;
  overflow-wrap: anywhere;
  text-align: center;
}
.tc-metric-button:focus-visible {
  outline: 1px solid #71777e;
  outline-offset: -2px;
}
.tc-metric-button:focus-visible .tc-metric-tooltip {
  display: block;
}
@media (hover: hover) {
  .tc-metric-button[aria-pressed='false']:hover {
    color: #525b65;
  }
  .tc-metric-button:hover .tc-metric-tooltip {
    display: block;
  }
}
.tc-nav {
  display: flex;
  margin: 0 0 11px;
}
.tc-view-switch {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
}
/* amoCRM .line-toggler__item input:checked + .line-toggler__item-inner */
.team-charts .tc-view-button {
  border: 0;
  background: transparent;
  text-transform: uppercase;
  color: var(--tc-muted);
  font-size: 12px;
  font-weight: 700;
}
.tc-view-button[aria-pressed='false']:hover .tc-view-text {
  color: var(--tc-text);
}
.team-charts button:focus-visible {
  outline: 1px solid #71777e;
  outline-offset: 1px;
}
.tc-panel {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 3px;
  min-width: 0;
}
.tc-section-title {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 18px 14px;
}
.tc-section-title h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}
.tc-section-title p {
  font-size: 13px;
  margin: 3px 0 0;
  color: var(--tc-muted);
}
.tc-keys {
  flex-wrap: wrap;
  gap: 6px 15px;
}
.tc-key {
  gap: 5px;
  font-size: 13px;
  color: #707378;
}
.tc-key-symbol {
  display: inline-block;
  width: 15px;
  height: 7px;
  border-radius: 1px;
}
.tc-key-symbol.actual {
  background: var(--tc-ink);
}
.tc-key-symbol.campaign {
  background: #b3b3b3;
  height: 3px;
}
.tc-key-symbol.target {
  height: 13px;
  width: 3px;
  border-radius: 0;
  background: var(--tc-green);
  margin: 0 4px;
}
.tc-bullet-grid {
  padding: 0 18px 8px;
}
.tc-bullet-header,
.tc-bullet-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(145px, 1.05fr) minmax(100px, 2.9fr) minmax(90px, 0.7fr) minmax(95px, 0.75fr);
  gap: clamp(12px, 1.8vw, 30px);
}
.tc-bullet-header {
  border-block: 1px solid var(--tc-border);
  min-height: 38px;
  font-size: 12px;
  color: var(--tc-muted);
}
.tc-bullet-row {
  min-height: 71px;
  border-bottom: 1px solid #e8e8e8;
  padding-block: 6px;
}
.tc-bullet-row:last-child {
  border-bottom: 0;
}
.tc-bullet-row:hover {
  background: #fafafa;
}
.tc-bullet-axis {
  position: relative;
  margin-inline: 5px;
  height: 24px;
  min-width: 0;
}
.tc-axis-label {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 12px;
}
.tc-axis-label.first {
  transform: translateY(-50%);
}
.tc-axis-label.last {
  transform: translate(-100%, -50%);
}
.tc-right {
  text-align: right;
}
.tc-owner-cell {
  gap: 10px;
  min-width: 0;
}
.tc-rank {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 25px;
  flex: none;
  border-radius: 3px;
  background: #f2f2f2;
  color: #707378;
  font-size: 13px;
}
.tc-place {
  display: inline-grid;
  place-items: center;
  width: 42px;
  flex: none;
  vertical-align: middle;
}
.tc-place-badge {
  display: inline-grid;
  place-items: center;
  position: relative;
  font: 700 var(--medal-font, 13px)/1 'PT Sans', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.tc-place-badge svg { display: block; width: 100%; height: 100%; }
.tc-place-badge:not(.tc-place-ordinary) .tc-place-number {
  position: absolute;
  inset-inline: 0;
  top: var(--medal-center, 40%);
  transform: translateY(-50%);
  text-align: center;
}
.tc-place-gold {
  --medal-fill: #fff0b6;
  --medal-edge: #b88821;
  --medal-font: 16px;
  --medal-center: 46%;
  width: 42px;
  height: 34px;
  color: #674807;
}
.tc-place-silver {
  --medal-fill: #e5ebf0;
  --medal-edge: #8b98a5;
  --medal-font: 14px;
  width: 26px;
  height: 28px;
  color: #485662;
}
.tc-place-bronze {
  --medal-fill: #f0d7c4;
  --medal-edge: #b77d54;
  width: 23px;
  height: 25px;
  color: #754b30;
}
.tc-place-ordinary {
  min-width: 18px;
  height: 18px;
  box-sizing: border-box;
  padding-inline: 3px;
  border-radius: 3px;
  background: #f2f3f4;
  color: #60666c;
  font-size: 12px;
  font-weight: 400;
}
.tc-owner-photo {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #5d6872;
  font: 700 10px/1 'PT Sans', Arial, sans-serif;
}
.tc-owner-photo:not(:empty), .tc-owner-photo img { background: #edf0f2; }
.tc-owner-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tc-owner-photo img[hidden] { display: none; }
.tc-owner-link,
.tc-owner-label {
  min-width: 0;
  color: #363b44;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}
.tc-owner-link {
  display: inline;
  border: 0;
  padding: 2px 0;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
}
.tc-bullet-track {
  position: relative;
  padding: 0;
  margin-inline: 5px;
  height: 42px;
  min-width: 0;
}
.tc-grid-line,
.tc-goal-mark {
  position: absolute;
}
.tc-grid-line {
  top: -13px;
  bottom: -13px;
  border-left: 1px dashed #e8e8e8;
}
.tc-grid-line.zero {
  border-left: 1px solid #c9c9ca;
}
.tc-goal-mark {
  top: 9px;
  bottom: 8px;
  width: 3px;
  transform: translateX(-1.5px);
  border-radius: 1px;
  background: var(--tc-green);
}
.tc-actual-bar,
.tc-campaign-bar {
  display: block;
  position: absolute;
}
.tc-actual-bar {
  top: 15px;
  height: 13px;
  background: var(--tc-series);
  border-radius: 2px;
}
.tc-actual-bar.negative {
  background: repeating-linear-gradient(
    135deg,
    var(--tc-series) 0 3px,
    color-mix(in srgb, var(--tc-series) 55%, #62686e) 3px 5px
  );
}
.tc-actual-bar.is-zero {
  width: 2px !important;
  opacity: 0.6;
}
.tc-campaign-bar {
  top: 31px;
  height: 3px;
  background: color-mix(in srgb, var(--tc-series) 72%, #50565b);
  border-radius: 1px;
}
.tc-fact,
.tc-plan {
  display: grid;
  gap: 3px;
  align-content: center;
  text-align: right;
  font-size: 16px;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.tc-fact b {
  color: #363b44;
}
.tc-plan strong {
  font-weight: 400;
}
.tc-fact small,
.tc-plan small {
  color: var(--tc-muted);
  font-size: 12px;
  font-weight: 400;
}
.tc-plan small.met {
  color: #46734f;
  font-weight: 700;
}
.tc-empty {
  padding: 26px 18px;
  color: var(--tc-muted);
  text-align: center;
  margin: 0;
}
.tc-trend-legend {
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 10px;
}
.tc-series-toggle {
  padding: 0 8px;
  min-height: 29px;
  font-size: 13px;
}
.tc-series-toggle[aria-pressed='true'] {
  border-color: #c9c9ca;
}
.tc-series-toggle[aria-pressed='false'] {
  color: var(--tc-muted);
}
.tc-series-toggle[aria-pressed='false'] .tc-swatch {
  opacity: 0.32;
}
.tc-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid #747a7d;
  flex: none;
}
.tc-swatch.tc-circle {
  border-radius: 50%;
}
.tc-swatch.tc-diamond {
  transform: rotate(45deg);
}
.tc-people-filter {
  padding-bottom: 7px;
}
.tc-people-filter summary {
  cursor: pointer;
  color: #363b44;
  margin: 0 18px 7px;
  width: max-content;
  max-width: 95%;
}
.tc-time-chart {
  display: grid;
  grid-template-columns: clamp(38px, 5vw, 70px) minmax(0, 1fr);
  grid-template-rows: 204px 29px;
  gap: 0 8px;
  padding: 14px 24px 3px 6px;
}
.tc-time-chart:has(.tc-empty) {
  display: block;
  padding: 25px;
}
.tc-y-labels,
.tc-x-labels,
.tc-plot {
  position: relative;
  min-width: 0;
}
.tc-y-labels > span,
.tc-x-labels > span {
  position: absolute;
  color: var(--tc-muted);
  white-space: nowrap;
  font-size: 12px;
}
.tc-y-labels > span {
  right: 0;
  transform: translateY(-50%);
}
.tc-x-labels {
  grid-column: 2;
}
.tc-x-labels > span {
  top: 7px;
  transform: translateX(-50%);
}
.tc-x-labels > .first {
  transform: none;
}
.tc-x-labels > .last {
  transform: translateX(-100%);
}
.tc-horizontal-line,
.tc-zero {
  position: absolute;
  width: 100%;
  border-top: 1px dashed #e4e5e6;
  pointer-events: none;
}
.tc-zero {
  border-top: 1px solid #c1c1c1;
}
.tc-line-svg,
.tc-dots-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.tc-plot {
  cursor: crosshair;
  touch-action: pan-y;
}
.tc-plot:focus-visible {
  outline: none;
}
.tc-plot:focus-visible .tc-crosshair {
  border-color: #363b44;
  border-width: 2px;
}
.tc-crosshair {
  position: absolute;
  inset-block: 0;
  width: 0;
  border-left: 1px dashed #92989f;
  pointer-events: none;
}
.tc-inspect {
  display: flex;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #f7f8f9;
  border-top: 1px solid var(--tc-border);
  min-height: 45px;
}
.tc-inspect:empty {
  display: none;
}
.tc-inspect h4 {
  margin: 0;
  font-size: 13px;
  color: #363b44;
}
.tc-point-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 19px;
}
.tc-point-value {
  gap: 5px;
  font-size: 13px;
}
.tc-point-value .tc-owner-label,
.tc-point-value .tc-owner-link {
  padding: 0;
  color: #707378;
  font-weight: 400;
  font-size: 13px;
}
.tc-owner-link:hover {
  color: #202428;
}
.tc-point-value b {
  color: #363b44;
  margin-left: 2px;
}
.team-charts > .table-scroll {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 3px;
}
@media (max-width: 800px) {
  .tc-bullet-grid {
    padding-inline: 12px;
  }
  .tc-bullet-header,
  .tc-bullet-row {
    grid-template-columns: minmax(110px, 1fr) minmax(80px, 1.6fr) minmax(62px, 0.6fr) minmax(75px, 0.65fr);
    gap: 10px;
  }
  .tc-owner-cell {
    gap: 5px;
  }
}
@media (max-width: 1100px) {
  .tc-team-toolbar .cal-toolbar-actions {
    margin-inline-start: auto;
  }
}
@media (max-width: 610px) {
  .team-charts {
    padding: 14px 10px 20px;
  }
  .tc-heading {
    gap: 3px 10px;
    margin-bottom: 10px;
  }
  .tc-report-period {
    flex-basis: 100%;
    padding: 0;
    border: 0;
    font-size: 12px;
  }
  .tc-heading h2 {
    font-size: 18px;
  }
  .tc-view-button {
    padding: 4px 9px;
    gap: 5px;
    font-size: 13px;
  }
  .tc-nav {
    margin-bottom: 10px;
  }
  .tc-section-title {
    padding: 12px;
    gap: 7px;
  }
  .tc-section-title h3 {
    font-size: 16px;
  }
  .tc-key {
    font-size: 11px;
  }
  .tc-keys {
    gap: 4px 9px;
  }
  .tc-bullet-header {
    display: none;
  }
  .tc-bullet-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    gap: 2px 9px;
    min-height: 83px;
    border-top: 1px solid #e8e8e8;
    border-bottom: 0;
    padding-block: 9px;
  }
  .tc-owner-cell {
    grid-column: 1;
    grid-row: 1;
  }
  .tc-owner-link,
  .tc-owner-label {
    font-size: 14px;
  }
  .tc-bullet-track {
    grid-column: 1;
    grid-row: 2;
    height: 25px;
  }
  .tc-fact {
    grid-column: 2;
    grid-row: 1;
  }
  .tc-plan {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
  }
  .tc-plan strong::before {
    content: 'Цель · ';
    color: #707378;
  }
  .tc-grid-line {
    top: 1px;
    bottom: 2px;
  }
  .tc-actual-bar {
    top: 8px;
    height: 10px;
  }
  .tc-campaign-bar {
    top: 20px;
  }
  .tc-goal-mark {
    top: 3px;
    bottom: 2px;
  }
  .tc-time-chart {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 174px 24px;
    gap: 0 5px;
    padding: 12px 16px 4px 6px;
  }
  .tc-x-labels > .secondary:not(.last) {
    display: none;
  }
  .tc-trend-legend {
    padding: 0 12px 8px;
  }
  .tc-inspect {
    padding: 10px 12px;
  }
}

.tc-key-symbol.negative {
  background: repeating-linear-gradient(135deg, #707378 0 2px, #dfdfdf 2px 4px);
}
.tc-tooltip {
  display: none;
  pointer-events: none;
  position: absolute;
  z-index: 3;
  top: 9px;
  width: min(220px, 100%);
  left: clamp(0px, calc(var(--tc-cursor) + 12px), calc(100% - min(220px, 100%)));
  padding: 9px 11px;
  border: 1px solid #c9c9ca;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 5px #00000012;
  border-radius: 3px;
  font-size: 12px;
}
.tc-tooltip.left {
  left: clamp(0px, calc(var(--tc-cursor) - 232px), calc(100% - min(220px, 100%)));
}
.tc-plot:hover .tc-tooltip,
.tc-plot:focus-visible .tc-tooltip {
  display: block;
}
.tc-tooltip > strong {
  display: block;
  color: #363b44;
  margin-bottom: 4px;
}
.tc-tip-row {
  display: grid;
  align-items: center;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 5px;
  line-height: 1.35;
  padding: 1px 0;
}
.tc-tip-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-tip-row > b {
  font-weight: 700;
}
.tc-tooltip small {
  color: #707378;
}
