.m-tes-pantalla, .m-cli-pantalla, .m-res-pantalla {
  display: grid;
  gap: 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.m-cli-pantalla .page-head, .m-res-pantalla .page-head {
  flex-wrap: wrap;
  gap: .75rem;
}

.m-tes-lista, .m-cli-lista, .m-res-lista,
.m-tes-form, .m-cli-form, .m-res-form, .m-res-dia {
  display: grid;
  gap: .75rem;
  min-width: 0;
}

.m-tes-item, .m-cli-item, .m-res-item, .m-tes-kpi, .m-tes-aviso {
  display: grid;
  gap: .5rem;
  padding: .875rem 1rem;
  min-width: 0;
}

.m-tes-lista > .m-tes-item, .m-tes-kpis > .m-tes-kpi,
.m-cli-lista > .m-cli-item, .m-res-lista > .m-res-item { margin-top: 0; }
.m-tes-pantalla .page-head, .m-cli-pantalla .page-head, .m-res-pantalla .page-head { margin-bottom: 0; }

.m-tes-item > .btn { justify-self: start; }
.m-tes-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
.m-tes-kpi strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.m-tes-aviso { border-inline-start: 3px solid #a14225; }

.m-tes-acciones, .m-cli-acciones, .m-res-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.m-tes-pantalla .btn, .m-cli-pantalla .btn, .m-res-pantalla .btn,
.m-tes-form .btn, .m-cli-form .btn, .m-res-form .btn,
.m-tes-form .in, .m-cli-form .in, .m-res-form .in, .m-cli-pantalla .in {
  min-height: 44px;
}

.m-tes-form > .f, .m-cli-form > .f, .m-res-form > .f { margin: 0; }
.m-tes-form .in, .m-cli-form .in, .m-res-form .in, .m-cli-pantalla .in {
  display: block;
  margin-top: .25rem;
  min-width: 0;
  font-size: 16px;
}
.m-tes-chip { border-radius: 999px; }
.m-cli-error { color: #982e21; }
.m-res-notas { white-space: pre-wrap; margin: 0; }
.m-res-estado { flex-shrink: 0; }
.m-res-estado.m-res-pendiente { color: #664700; background: #fbebbf; }
.m-res-estado.m-res-sentada { color: #22563c; background: #e0f1e6; }
.m-res-estado.m-res-no_vino { color: #544760; background: #ece6f1; }
.m-res-estado.m-res-cancelada { color: #852f25; background: #f7e2dd; }

@media (min-width: 650px) {
  .m-tes-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .m-cli-lista { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
