.escores-cocho-page {
  min-height: 100vh;
  padding: 34px clamp(22px, 3vw, 54px) 42px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(232, 223, 209, 0.82)),
    var(--color-bg);
}

.escores-cocho-header,
.escores-cocho-workspace {
  max-width: var(--content-max);
  margin: 0 auto;
}

.escores-cocho-header {
  margin-bottom: 24px;
}

.escores-cocho-header h1 {
  margin: 0;
  color: var(--sa-marrom-escuro);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.escores-cocho-workspace {
  display: grid;
  gap: 18px;
}

.escores-cocho-records-header {
  gap: 16px;
}

.escores-cocho-filters {
  display: grid;
  grid-template-columns: minmax(160px, 240px) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid rgba(62, 45, 31, 0.12);
}

.escores-cocho-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}

.escores-cocho-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(62, 45, 31, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.76);
  color: var(--sa-marrom-escuro);
  font-size: 0.84rem;
  font-weight: 800;
}

.escores-cocho-legend i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.escores-cocho-table-wrap {
  overflow-x: auto;
  padding-bottom: 10px;
}

.escores-cocho-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.escores-cocho-table th,
.escores-cocho-table td {
  min-width: 104px;
  padding: 12px 14px;
  border-right: 1px solid rgba(62, 45, 31, 0.12);
  border-bottom: 1px solid rgba(62, 45, 31, 0.10);
  vertical-align: middle;
  white-space: nowrap;
}

.escores-cocho-table th:last-child,
.escores-cocho-table td:last-child {
  border-right: 0;
}

.escores-cocho-table th {
  background: rgba(107, 123, 75, 0.12);
  color: var(--sa-marrom-escuro);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.escores-cocho-table .numeric-cell {
  text-align: right;
  font-weight: 900;
}

.escores-cocho-table .date-cell {
  min-width: 118px;
  color: var(--sa-marrom-escuro);
  font-weight: 800;
}

.escores-cocho-table .average-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  color: var(--sa-marrom-escuro);
  background: #fffdf8;
  box-shadow: 1px 0 0 rgba(62, 45, 31, 0.12);
}

.escore--menos-4 {
  color: #fffdf8;
  background: #7c3a22;
}

.escore--menos-3 {
  color: #fffdf8;
  background: #a45128;
}

.escore--menos-2 {
  color: #3d2e1f;
  background: #d58935;
}

.escore--menos-1 {
  color: #3d2e1f;
  background: #efd66f;
}

.escore--zero {
  color: #243c28;
  background: #c8dc71;
}

.escore--1 {
  color: #fffdf8;
  background: #6f8d50;
}

.escore--2 {
  color: #4f2f28;
  background: #efb29b;
}

.escore--3 {
  color: #fffdf8;
  background: #d36c58;
}

.escore--4 {
  color: #fffdf8;
  background: #b93d38;
}

.escore--5 {
  color: #fffdf8;
  background: #7f1f2a;
}

@media (max-width: 760px) {
  .escores-cocho-page {
    padding: 84px 16px 30px;
  }

  .escores-cocho-filters {
    grid-template-columns: 1fr;
  }
}
