.login-wrapper {
  position: relative;
}

.lyear-login {
  display: flex !important;
  min-height: 100vh;
  align-items: center !important;
  justify-content: center !important;
}

.lyear-login:after {
  content: '';
  min-height: inherit;
  font-size: 0;
}

.login-center {
  background: #fff;
  min-width: 29.25rem;
  padding: 2.14286em 3.57143em;
  border-radius: 4px;
  margin: 2.85714em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.login-header {
  margin-bottom: 1.5rem !important;
}

.login-center .has-feedback.feedback-left .form-control {
  padding-left: 38px;
  padding-right: 12px;
}

.login-center .has-feedback.feedback-left .form-control-feedback {
  left: 0;
  right: auto;
  width: 38px;
  height: 38px;
  line-height: 38px;
  z-index: 4;
  color: #dcdcdc;
}

.stat-card .card-body {
  min-height: 94px;
}

.stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stat-card-link:hover,
.stat-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.stat-card-link .stat-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card-link:hover .stat-card,
.stat-card-link:focus .stat-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 45, 61, .14);
}

.filter-card .form-group {
  margin-bottom: 15px;
}

.trend-chart-wrap {
  position: relative;
  width: 100%;
  height: 300px;
}

.referrer-trend-chart-wrap {
  height: 340px;
}

.referrer-modal-trend-chart-wrap {
  height: 260px;
  margin-top: 12px;
}

.referrer-modal-trend-legend {
  justify-content: flex-start;
  margin-top: 10px;
}

.referrer-modal-trend-legend .trend-legend-item {
  cursor: default;
}

.referrer-modal-trend-table {
  margin-top: 14px;
}

.trend-status {
  margin-bottom: 10px;
  color: #666;
  line-height: 1.5;
}

.referrer-trend-toolbar,
.referrer-trend-limit {
  display: flex;
  align-items: center;
}

.referrer-trend-toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.referrer-trend-limit {
  gap: 6px;
  color: #666;
}

.referrer-trend-limit select {
  width: 74px;
}

.trend-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 22px;
}

.trend-legend-item,
.trend-tooltip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend-item {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #5f6b7a;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.trend-legend-item:hover,
.trend-legend-item:focus {
  color: #33cabb;
  outline: none;
}

.trend-legend-item.is-hidden {
  color: #a8b0ba;
  opacity: .62;
}

.trend-legend-item.is-hidden i {
  background: transparent !important;
  border: 1px solid currentColor;
}

.trend-legend-item i,
.trend-tooltip i {
  display: inline-block;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 50%;
}

.trend-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  pointer-events: none;
}

.trend-empty[hidden] {
  display: none;
}

.trend-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid #e5e9f2;
  border-radius: 4px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px rgba(31, 45, 61, .12);
  color: #555;
  font-size: 12px;
  pointer-events: none;
}

.trend-tooltip strong {
  display: block;
  margin-bottom: 6px;
  color: #333;
}

.trend-tooltip span {
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.referrer-search-form {
  width: 240px;
  margin: 0;
}

.referrer-search-form .input-group {
  width: 100%;
}

@media (max-width: 767px) {
  .referrer-search-form {
    width: 100%;
  }
}

.table-responsive {
  border: 0;
}

.link-cell {
  max-width: 420px;
  word-break: break-all;
}

.domain-open-link,
.domain-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #8a98a8;
  text-decoration: none;
  vertical-align: middle;
}

.domain-open-link:hover,
.domain-open-link:focus,
.domain-search-link:hover,
.domain-search-link:focus {
  color: #33cabb;
  text-decoration: none;
}

.domain-open-link i,
.domain-search-link i {
  font-size: 14px;
  line-height: 1;
}

.domain-search-link {
  color: #5c6f82;
}

.nowrap {
  white-space: nowrap;
}

td small,
.table small {
  display: block;
  margin-top: 5px;
  color: #999;
  line-height: 1.45;
}

.empty {
  height: 120px;
  color: #999;
  text-align: center;
  vertical-align: middle !important;
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 15px;
  color: #777;
}

.rank-number {
  color: #777;
  font-weight: 700;
  white-space: nowrap;
}

.rank-share {
  min-width: 160px;
}

.rank-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}

.rank-bar span {
  display: block;
  height: 100%;
  background: #33cabb;
  border-radius: inherit;
}

.rank-share small {
  margin-top: 6px;
}

.referrer-unique-ip-notice {
  color: #33cabb !important;
  font-weight: 700;
}

.referrer-unique-ip-warning {
  color: #f0ad4e !important;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  min-width: 0;
  border: 1px solid #edf1f5;
  border-radius: 4px;
  padding: 13px 14px;
  background: #fbfcfe;
}

.detail-item span {
  display: block;
  color: #999;
  font-size: 12px;
  margin-bottom: 7px;
}

.detail-item strong,
.detail-item a {
  display: block;
  word-break: break-all;
  line-height: 1.5;
  font-weight: 600;
}

.layer-detail-body {
  padding: 18px;
}

.layer-list-body {
  padding: 18px;
}

.layer-list-summary {
  margin-bottom: 10px;
  color: #666;
}

.layui-layer {
  border-radius: 4px !important;
}

.layui-layer-title {
  font-weight: 600;
}

.danger-card {
  border-color: #f2dede;
}

.danger-card .card-header h4,
.danger-card .text-danger {
  color: #e74c3c;
}

.setting-checkbox {
  font-weight: 600;
}

.known-referrer-picker {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.known-referrer-picker select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 168px;
}

.known-referrer-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.known-referrer-actions .btn {
  white-space: nowrap;
}

.ua-feature-add {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.ua-feature-add .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.ua-feature-add .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ua-analysis-summary {
  margin-bottom: 10px;
  color: #666;
}

.ua-feature-text,
.ua-sample {
  word-break: break-all;
}

@media (max-width: 767px) {
  .login-center {
    min-width: 0;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 24px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .pagination-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .known-referrer-picker {
    flex-direction: column;
  }

  .known-referrer-picker select,
  .known-referrer-actions,
  .known-referrer-actions .btn {
    width: 100%;
  }

  .ua-feature-add {
    flex-direction: column;
  }

  .ua-feature-add .btn {
    width: 100%;
  }
}
