/* BARBEARIA GUARARAPES — V45 — FIDELIDADE POR 10 CORTES */

@media (min-width: 761px) {
  .client-data-table .data-table__row {
    grid-template-columns: minmax(230px, 1.55fr) 0.58fr 0.92fr 0.72fr 132px !important;
  }
}

.loyalty-cuts-ranking {
  padding: clamp(18px, 2.4vw, 30px);
  overflow: hidden;
}

.loyalty-cuts-ranking__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(134, 226, 240, 0.13);
}

.loyalty-cuts-ranking__head small,
.client-history-loyalty small {
  color: #51e5f4;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.loyalty-cuts-ranking__head h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.loyalty-cuts-ranking__head > span {
  color: #d8c189;
  font-weight: 700;
}

.loyalty-cut-row {
  display: grid;
  grid-template-columns: 42px 42px minmax(180px, 1fr) minmax(210px, 0.8fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 8px;
  border-bottom: 1px solid rgba(134, 226, 240, 0.09);
}

.loyalty-cut-row:last-child { border-bottom: 0; }

.loyalty-cut-row__position {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(224, 181, 88, 0.4);
  border-radius: 50%;
  color: #e5c879;
  background: rgba(229, 200, 121, 0.07);
}

.loyalty-cut-row__client,
.loyalty-cut-row__cycle span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.loyalty-cut-row__client strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-cut-row small { color: #8995a6; }
.loyalty-cut-row__cycle strong { color: #f2e3b1; font-size: 1.05rem; }
.loyalty-cut-row__cycle .progress { margin-top: 8px; }

.loyalty-client-layout--cuts {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.loyalty-client-summary > div:not(.section-head):not(.loyalty-client-summary__reward) {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.loyalty-client-summary > div > span,
.loyalty-client-summary__reward > svg {
  color: #e4c36e;
}

.loyalty-client-summary section { display: flex; flex-direction: column; gap: 5px; }
.loyalty-client-summary section small { color: #94a0b2; }

.loyalty-client-summary__reward {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 15px;
  border: 1px solid rgba(93, 224, 180, 0.34);
  border-radius: 14px;
  color: #aff0d6;
  background: rgba(34, 166, 119, 0.1);
}

.client-history-loyalty {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(224, 181, 88, 0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(224, 181, 88, 0.1), rgba(8, 25, 36, 0.9));
}

.client-history-loyalty > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #e7c66e;
  background: rgba(224, 181, 88, 0.12);
}

.client-history-loyalty > div { display: flex; flex-direction: column; gap: 4px; }
.client-history-loyalty > div > strong { color: #fff4d2; font-size: 1.15rem; }
.client-history-loyalty p { margin: 0; color: #9ba7b9; }
.client-history-loyalty > b { color: #d7bd78; text-align: right; }

@media (max-width: 820px) {
  .loyalty-cut-row {
    grid-template-columns: 34px 38px minmax(0, 1fr);
    gap: 10px;
  }

  .loyalty-cut-row__cycle,
  .loyalty-cut-row > .status-badge {
    grid-column: 3;
  }

  .loyalty-client-layout--cuts { grid-template-columns: 1fr; }
  .client-history-loyalty { grid-template-columns: 42px 1fr; }
  .client-history-loyalty > b { grid-column: 2; text-align: left; }
}

@media (max-width: 520px) {
  .loyalty-cuts-ranking__head { align-items: flex-start; flex-direction: column; }
  .loyalty-cut-row { padding: 15px 0; }
  .loyalty-cut-row__position { width: 30px; height: 30px; }
  .loyalty-cut-row > .avatar { display: none; }
  .loyalty-cut-row { grid-template-columns: 34px minmax(0, 1fr); }
  .loyalty-cut-row__cycle,
  .loyalty-cut-row > .status-badge { grid-column: 2; }
}
