.article-metrics-summary {
  padding: 0.75em 1em;
  margin-bottom: 0.5em;

  a {
    text-decoration: none;
  }

  svg {
    color: rgba(0,0,0,0.65);
  }
}

#showMetricsModal {
  &:before {
    content: " ";
    white-space: pre;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.45);
  z-index: 8000;
  transition: opacity 0.4s ease-in;
}


}

.metric-item {
  margin: 20px 0 30px 0;
}

.stats-since {
  text-align: right;
}

.metric-views {
  display: flex;
  border: 1px solid #ccc;
  border-top: 4px solid #006296;
  margin-bottom: 1em;
}

.metric-views-all {
  display: flex;
  border: 1px solid #ccc;
  border-top: 4px solid #C96A5C;
  margin-bottom: 1em;
}

.metric-views-wrap {
  max-width: 90%;
}

.metric-total-views {
  width: 40%;
  padding: 10px;
  text-align: right;
  border-right: 1px solid #ccc;

  .metric-number {
    display: block;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.75);
  }
}

.stats-note {
    text-align: right;
    margin-top: 0.25rem;
    color: rgba(0,0,0,0.45);
    font-style: italic;
}

.stats-note small {
    font-size: 0.85rem;
}

.metrics-fallback-text {
    color: rgba(0,0,0,0.45);
    font-style: italic;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.dimensions-fallback,
.altmetric-fallback {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-breakdown-views-wrap {
  width: 60%;

  .metric-breakdown-view {
    text-align: left;
    padding: 0.25em;

    .metric-number {
      font-weight: bold;
      color: rgba(0, 0, 0, 0.75);
    }
  }

  .breakdown-border {
    border-bottom: 1px solid #ccc; 
  }
}

.metric-text {
    color: rgba(0,0,0,0.65) !important;
  }
  
.all-time-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ccc;
}

.metrics-stats-wrap {
    margin-top: 1.5rem;
    border-top: 1px solid #ccc;
    padding-top: 1.25rem;
}


.metrics-periods-container {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
	justify-content: center;
}


.metrics-period-item {
    flex: 1;
    min-width: 0; 
}


@media (max-width: 768px) {
    .metrics-periods-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .metrics-period-item {
        width: 100%;
    }
    
    
    .metrics-period-item:first-child {
        border-bottom: 1px solid #ccc;
        padding-bottom: 1.5rem;
    }
}

.metrics-item {
    width: 50%;
    box-sizing: border-box;
}

.metrics-citations {
    float: left;
    padding-right: 1rem;
    border-right: 1px solid #ccc;
}

.metrics-altmetric {
    float: right;
    padding-left: 1rem;
}

.widget-title-2 {
    color: rgba(0, 0, 0, 0.65);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.metrics-badges-wrap {
    margin-bottom: 0.5rem;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}


@media (max-width: 768px) {
    .metrics-item {
        width: 100%;
        float: none;
        padding: 0;
        border-right: none;
    }
    
    .metrics-citations {
        border-bottom: 1px solid #ccc;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .metrics-altmetric {
        padding-left: 0;
    }
}


.usageStatsGraph {
  margin-bottom: 1.5rem;
}

#metricsModal {
  width: 70%;
  max-width: 790px;
  position: relative;
  margin: 2% auto;
  padding: 25px;
  background: #fff;
  max-height: 94%;
  overflow-y: scroll;
  border-radius: 3px;

  .metricsTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #006296;
    line-height: 1.2;
    padding-bottom: 5px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  #metricsModal {
    width: 95%;
    max-width: none;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
    height: 100vh;
  }

  .metric-views-wrap {
    width: 100%;
  }
}

.close-metrics {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.875rem;
  transition: color 0.2s ease;

  &:hover {
    color: darken(#006296, 10%);
  }
}