html, body { height: 100%; }

/* Общий каркас страницы */
.t-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ВАЖНО: применяем flex только к центральному wrapper'у контента */
#allrecords {                     /* основной контент */
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* А хедер и футер НЕ трогаем */
#allrecords--header,
#allrecords--footer {
  display: block;      /* явное блоковое поведение */
  flex: 0 0 auto;
}

/* Приклеиваем футер вниз по нашему классу */
.uc-site-footer { margin-top: auto; }


