.article-stats-page .main-product {
  align-items: flex-start;
  min-height: 680px;
}

.article-stats-page .find-box {
  width: min(1320px, calc(100% - 32px));
  max-width: 1320px;
  margin: 28px auto;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid #dbe5f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 48px rgba(15, 42, 73, 0.1);
}

.article-stats-page .article-stats-eyebrow {
  margin: 0 0 8px;
  color: #ff6b00;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.article-stats-page .find-box > h1 {
  margin: 0;
  color: #0d2d50;
  font-size: clamp(27px, 4vw, 45px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.article-stats-intro,
.article-stats-reference,
.article-stats-period {
  margin: 9px 0 0;
  color: #61798e;
  font-size: 16px;
  text-align: center;
}

.article-stats-search {
  margin: 24px 0;
  padding: 17px;
  border: 1px solid #d8e4ee;
  border-radius: 15px;
  background: #f7fafc;
}

.article-stats-search label {
  display: block;
  margin-bottom: 7px;
  color: #173b5b;
  font-weight: 800;
}

.article-stats-period-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dce6ee;
}

.article-stats-period-filter select {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #c7d8e7;
  border-radius: 11px;
  background: #fff;
  color: #173b5b;
  font-size: 16px;
  text-align: center;
}

.article-stats-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.article-stats-search input,
.article-stats-search button {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 1px solid #c7d8e7;
  border-radius: 11px;
  font-size: 16px;
}

.article-stats-search input {
  padding: 9px 13px;
  background: #fff;
  text-align: right;
}

.article-stats-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #0879d9;
  background: linear-gradient(135deg, #1688df, #075fa8);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.article-stats-reset {
  display: inline-flex;
  margin-top: 10px;
  color: #075fa8;
  font-weight: 700;
}

.article-stats-list {
  overflow: hidden;
  border: 1px solid #cbd9e5;
  border-radius: 14px;
}

.article-stats-list-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(120px, 0.75fr) minmax(95px, 0.55fr);
  width: 100%;
  color: #173b5b;
  background: #fff;
}

.article-stats-list-row + .article-stats-list-row {
  border-top: 1px solid #d8e3ec;
}

.article-stats-list-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  overflow-wrap: anywhere;
  text-align: center;
}

.article-stats-list-row > div:not(:last-child) {
  border-left: 1px solid #d8e3ec;
}

.article-stats-list-header {
  background: #3978aa;
  color: #fff;
  font-weight: 800;
}

.article-stats-product-link:hover,
.article-stats-product-link:focus {
  background: #eef7ff;
  color: #075fa8;
  text-decoration: none;
}

.article-stats-secondary-name {
  display: block;
  margin-right: 7px;
  color: #73889a;
  font-size: 12px;
}

.article-stats-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.article-stats-status.is-visible {
  background: #e9f8ee;
  color: #207b45;
}

.article-stats-status.is-hidden {
  background: #f1f3f5;
  color: #6f7982;
}

.article-stats-empty {
  padding: 24px 12px;
  color: #687f92;
  text-align: center;
}

.article-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.article-stats-summary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 9px;
  align-items: center;
  padding: 17px;
  border: 1px solid #d5e2ed;
  border-radius: 14px;
  background: #f6f9fc;
  color: #41627e;
}

.article-stats-summary i {
  grid-row: 1 / 3;
  color: #1688df;
  font-size: 26px;
}

.article-stats-summary strong {
  color: #0d2d50;
  font-size: 25px;
}

.article-stats-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.article-stats-chart-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d5e2ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 42, 73, 0.07);
}

.article-stats-chart-card h2 {
  margin: 0 0 14px;
  color: #173b5b;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}

.article-stats-canvas-wrap {
  position: relative;
  width: 100%;
  height: 310px;
}

.article-stats-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.article-stats-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd9e5;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.article-stats-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: #173b5b;
  text-align: center;
}

.article-stats-table th,
.article-stats-table td {
  padding: 11px 8px;
  border-left: 1px solid #d5e0e9;
  border-bottom: 1px solid #d5e0e9;
  white-space: nowrap;
}

.article-stats-table th:last-child,
.article-stats-table td:last-child {
  border-left: 0;
}

.article-stats-table thead {
  background: #3978aa;
  color: #fff;
}

.article-stats-table tbody tr:nth-child(even) {
  background: #f6f9fc;
}

.article-stats-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-stats-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.article-stats-detail-page .article-stats-navigation {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-stats-navigation .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbddeb;
  border-radius: 12px;
  background: #eef5fa;
  color: #426582;
  font-size: 16px;
  font-weight: 800;
}

.article-stats-navigation .article-stats-logout {
  grid-column: 1 / -1;
  border-color: #efcaca;
  background: #fff6f6;
  color: #ad3038;
}

@media (max-width: 900px) {
  .article-stats-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .article-stats-page .find-box {
    width: calc(100% - 10px);
    max-width: none;
    margin: 8px 5px;
    padding: 22px 5px;
    border-radius: 15px;
  }

  .article-stats-search {
    padding: 11px 7px;
  }

  .article-stats-search-row,
  .article-stats-period-filter,
  .article-stats-summary,
  .article-stats-navigation,
  .article-stats-detail-page .article-stats-navigation {
    grid-template-columns: 1fr;
  }

  .article-stats-list-row {
    grid-template-columns: minmax(155px, 1.7fr) minmax(82px, 0.75fr) minmax(72px, 0.6fr);
    font-size: 12px;
  }

  .article-stats-list-row > div {
    min-height: 52px;
    padding: 7px 3px;
  }

  .article-stats-secondary-name {
    display: none;
  }

  .article-stats-status {
    padding: 4px 6px;
    font-size: 11px;
  }

  .article-stats-canvas-wrap {
    height: 270px;
  }

  .article-stats-chart-card {
    padding: 14px 5px;
  }

  .article-stats-navigation .article-stats-logout {
    grid-column: auto;
  }
}
