.page.is-scores .page__scope {
  display: none;
}

.scores-updated {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.scores-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scores-summary {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.scores-summary__card {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 12px rgba(29, 42, 52, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scores-summary__title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.scores-summary__title img {
  width: 16px;
  height: 16px;
}

.scores-summary__title .tooltip-trigger,
.scores-table th .tooltip-trigger {
  margin-left: 0;
}

.scores-summary__value {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.scores-summary__value span {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

.scores-summary__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scores-meter__track {
  position: relative;
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: visible;
}

.scores-meter__red {
  flex: 0 0 200px;
  background: #e83c37;
  border-radius: 2px 0 0 2px;
}

.scores-meter__yellow {
  flex: 1;
  background: #ffd444;
  border-right: 1px solid var(--hairline);
}

.scores-meter__green {
  flex: 1;
  background: #29ab5f;
  border-radius: 0 2px 2px 0;
}

.scores-meter__needle {
  position: absolute;
  top: -5px;
  width: 0;
  height: 13px;
  border-left: 1px solid var(--ink);
  transform: translateX(-50%);
}

.scores-summary__foot {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.scores-summary__foot--action {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--ink);
  font-weight: 500;
}

.scores-summary__foot--action img {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.scores-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid transparent;
}

.scores-tab {
  margin: 0 0 -1px;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  cursor: default;
}

.scores-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.scores-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}

.scores-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px;
}

.scores-toolbar__count {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.scores-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scores-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
}

.scores-search img {
  width: 16px;
  height: 16px;
}

.scores-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  line-height: 1.6;
}

.scores-search input::placeholder {
  color: var(--muted);
}

.scores-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  cursor: default;
}

.scores-filter img {
  width: 16px;
  height: 16px;
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.scores-table th,
.scores-table td {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.6;
}

.scores-table th {
  background: var(--grey-200);
  font-weight: 500;
}

.scores-table td {
  font-weight: 400;
}

.scores-table th + th,
.scores-table td + td {
  border-left: 1px solid var(--hairline);
}

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.th-sort img {
  width: 16px;
  height: 16px;
}

.scores-table--drivers .col-score,
.scores-table--drivers .col-fleet {
  width: auto;
  white-space: nowrap;
}

.scores-table--drivers .col-driver,
.scores-table--drivers .col-events {
  width: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scores-table--drivers .scores-driver__name,
.scores-table--drivers .scores-driver__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scores-table--vehicles .col-score,
.scores-table--vehicles .col-fleet {
  white-space: nowrap;
}

.scores-table--vehicles .col-vehicle,
.scores-table--vehicles .col-events,
.scores-table--vehicles .col-fleet {
  overflow: hidden;
  text-overflow: ellipsis;
}

.scores-table--vehicles .scores-vehicle > div {
  min-width: 0;
}

.scores-table--vehicles .scores-vehicle__name,
.scores-table--vehicles .scores-vehicle__vin,
.scores-table--vehicles .scores-vehicle__ymm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scores-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.scores-score img {
  width: 14px;
  height: 14px;
}

.scores-driver {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scores-driver__name {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.scores-driver__email {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.scores-vehicle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scores-vehicle img {
  flex: 0 0 60px;
  width: 60px;
  height: 38px;
  object-fit: contain;
}

.scores-vehicle__name {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.scores-vehicle__vin,
.scores-vehicle__ymm {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.scores-assign {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--brand);
  cursor: default;
}

.scores-empty {
  padding: 48px 16px !important;
  text-align: center;
  color: var(--muted);
}

.scores-page {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
}

.scores-page__range {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.scores-page__btns {
  display: flex;
  gap: 8px;
}

.scores-page__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: default;
}

.scores-page__btn:disabled {
  opacity: 0.4;
}

.scores-page__btn img {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .scores-summary {
    flex-direction: column;
  }
}
