/* My Clients on the DSP home: one big tile per client, one column on a phone
   and two from tablet width up. Each tile is tall, with clear space around it,
   so a DSP taps the right client with one hand. */
.my-clients {
  padding: 1.125rem 1rem 1rem;
  border-radius: 1rem;
  background: var(--color-base-100);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);

  @media (min-width: 768px) { padding: 1.5rem; }
}
.my-clients__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.25rem 0.875rem;
}
.my-clients__title { font-size: 1.25rem; font-weight: 700; }
.my-clients__all {
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}
.my-clients__empty {
  padding: 1rem 0.25rem;
  color: color-mix(in oklab, var(--color-base-content) 65%, transparent);
}
.my-clients__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

/* A client's tile wears their Clock In color: the stripe down the left edge,
   the avatar disc, and a soft tint behind. */
.client-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 84px;
  padding: 0.75rem 0.875rem 0.75rem 1.375rem;
  overflow: hidden;
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--client-color) 10%, #fff);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  color: var(--color-base-content);
  transition: box-shadow 150ms ease-out;

  &::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--client-color);
  }
  &:hover { box-shadow: 0 6px 16px -8px rgb(19 50 60 / 0.35); }
  &:active { box-shadow: inset 0 0 0 2px var(--client-color); }
  &:focus-visible { outline: 3px solid var(--client-color); outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) { transition: none; }
}
.client-tile__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--client-color);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9), 0 0 0 4px var(--client-color);
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1;

  img { width: 100%; height: 100%; object-fit: cover; }
}
.client-tile__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.client-tile__name {
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-tile__line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

/* The badge always shows in full; the services give way and end in "…". */
.client-tile__clocked-in {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5625rem;
  border-radius: 0.375rem;
  background: color-mix(in oklab, var(--color-success) 20%, transparent);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;

  &::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-success);
  }
}
.client-tile__services {
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--color-base-content) 65%, transparent);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-tile__chevron {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
}
