/* скрытие ненужных элементов */
#boxCenterComingGames > span.yellow_green11, /* Пояснение термина "Предстоящие игры" */
#boxCenterComingGames > span:nth-child(3), /* Круглая скобка до пояснения термина "Предстоящие игры" */

#boxCenterComingGames > span:nth-child(5), /* Круглая скобка после пояснения термина "Предстоящие игры" */
#tdContentLeft > div[style="margin-bottom:10px; text-align:center;"], /* Контейнер, содержащий "Размещение рекламы" (#lnkAdPlacement) */
#boxOnlineHelp, /* Штатные ссылки на соц.сети */
#bottomLineRow, /* линия над подвалом */
#boxMovie, /* Видео "Куда я попал?!? */
#boxCenterIntro, /* Блок "Жизнь это игра. Прими в ней участие!" */
#tdEn016, /* Ссылка на www.en.cx в левом нижнем углу */
#trGreenLineFoot
{
  display: none;
}

/* ------------------ */
/* Глобальные размеры */
/* ------------------ */

/* Ограничиваем ширину диалогового окна */
.ui-dialog {
  max-width: 100%;
}

/* Сжимаем до размера экрана слишком большие картинки */
.divDescr img, /* В списке игр */
.gameInfo ~ table img /* В анонсах */
{
  max-width: 100%;
  height: auto;
  object-fit: scale-down;
}

/* Сжимаем до размера экрана вставки с видео */
#tdContentCenter iframe {
  max-width: 100%;
}

/* Переносы справа от аватарки в личном деле */
script + table > tbody > tr:nth-child(2) div.enPnl1 > table > tbody > tr > td:nth-child(2) {
  white-space: normal;
}

/* Ссылки на администраторской */
#lnkManager {
  white-space: normal;
}

@media (max-width: 768px) {
  .menuWrap,/* Шапка с ссылками */
  #DivRightDesign,/* Правая панель */
  #boxComingGames,/* Прдестоящие */
  #boxCenterTopUsers, /* Топ пользователей */
  #boxCenterTopTeams, /* Топ команд */
  #boxCenterTopAuthors, /* Топ авторов вместе с ошметками html ниже */
  #boxCenterTopAuthors + div[style="padding-top: 5px"],
  #boxCenterTopAuthors + div[style="padding-top: 5px"] + div.hr,
  #boxCenterLastPhotoGalleries /* Фотогалереи */

  {
    display: none;
  }

  
  #tdContentLeft {
    display: inline-block;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  #tdContentCenter {
    display: inline-block;
    width: 100%;
  }

  #tdContentRight {
    display: inline-block;
    width: 100%;
  }

  #tdContentRight > table {
    width: 100%;
  }

  #tdContentLeft > div {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Позволяем разделить заголовок игры на несколько строк */
  #tdContentCenter > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table[background="https://cdn.endata.cx/images/green_lines.gif"] td,
  span.crumbLastItem + table table[background="https://cdn.endata.cx/images/green_lines.gif"] td,
  .gameInfo table[background="https://cdn.endata.cx/images/green_lines.gif"] td,
  h1.PageTitle ~ table[background="https://cdn.endata.cx/images/green_lines.gif"] td,
  #nedavniye_igri table[background="https://cdn.endata.cx/images/green_lines.gif"] td {
    display: inline-block;
    padding-bottom: 5px;
  }

  /* Выравнивание по левому краю */
  #tdContentCenter > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table[background="https://cdn.endata.cx/images/green_lines.gif"] td.left5p19h,
  span.crumbLastItem + table table[background="https://cdn.endata.cx/images/green_lines.gif"] td,
  .gameInfo table[background="https://cdn.endata.cx/images/green_lines.gif"] td.left5p19h {
    padding-left: 0;
  }
  /* Перенос слов на главной в заголовке "Жизнь это игра. Прими в ней участие!" без логина */
  #boxCenterIntro > div> div> table >tbody > tr >td:nth-of-type(2) {
    white-space: normal;
  }
}
/* ----- */
/* Почта */
/* ----- */

/* Схлапываем расстояние между табами */
.enMailTab {
  font-size: 0;
}

.enMailTab > tbody > tr > td {
  font-size: 12px;
}

/* Позволяем переносить табы на новую сточку */
.enMailTab > tbody > tr > td {
  float: left;
}

/* Скрываем отдельный элемент с отчеркиванием справа от табов на небольших устройствах */
.enMailTab > tbody > tr > td.td_last {
  display: none;
}

/* Добавляем отчерк на строку таблицы */
.enMailTab > tbody > tr {
  background: url("https://cdn.endata.cx/images/tab/EnMail/freeBg.gif") repeat-x bottom;
}
@media (max-width: 992px) {
  .enMailTab > tbody > tr {
    background: none;
  }
}

/* Схлапываем нижнюю и верхнюю границы при переносе табов */
.enMailTab > tbody > tr > td,
.enMailTab > tbody > tr > td.td_free {
  margin-top: -1px;
}

/* Гарантируем левую границу табов */
.enMailTab > tbody > tr > td:not(.td_free)::before {
  content: '';
  float: left;
  background: url("https://cdn.endata.cx/images/tab/EnMail/freeRight.gif") no-repeat left top;
  height: 100%;
  width: 1px;
  margin-left: -1px;
}

/* Переносим "Создать" на новую строчку на небольших устройствах */
@media (max-width: 992px) {
  .enMailTab #mailTabNew + td {
    clear: both;
  }

  .enMailTab .td_free, .enMailTab .td_free a {
    background: none;
  }
}

/* Позволяем переносить действия с письмами */
#tblMailSelect {
  margin-top: -8px;
  font-size: 0;
}

#tblMailSelect td {
  display: inline-block;
  padding-top: 8px;
}

/* Отключаем перенос текста действий с письмом */
#EnMailFolderForm .msgHead div[style="padding-top: 12px;"] a {
  white-space: nowrap;
}

/* Компактный вариант действий на телефонах */
@media (max-width: 480px) {
  #EnMailFolderForm .msgHead div[style="padding-top: 12px;"] a[style="color:Red;"] {
    font-size: 0;
  }

  #EnMailFolderForm .msgHead div[style="padding-top: 12px;"] a[style="color:Red;"]::after {
    content: 'x';
    font-size: 12px;
  }
}

/* Разрешил перенос длинного времени и домена */
#EnMailFolderForm .msgHead .msgDateTime {
  white-space: normal;
}

/* Создать письмо на планшетах и телефонах */
@media (max-width: 768px) {
  /* Разрешаем переносить поля */
  form[action="/EnMail.aspx?ctrl=new"] td {
    margin-top: 8px;
    float: left;
  }

  /* Разрываем форму на 2 строки по radio кнопкам */
  form[action="/EnMail.aspx?ctrl=new"] td[style="padding-left:4px"] {
    clear: both;
    padding-left: 0 !important;
  }
}
/* --------------------------------------- */
/* Общее для Моё личное дело и Моя команда */
/* --------------------------------------- */
@media (max-width: 768px) {
  /* Раскладка аватарки и информации */
  /* Личное дело: */
  script + table > tbody > tr:nth-child(2) div.enPnl1 > table > tbody > tr > td,
  /* Команда: */
  script + br + div[style="width:100%;"] > div.enPnl1 > table > tbody > tr > td {
    display: inline-block;
    margin-top: 10px;
  }

  script + table > tbody > tr:nth-child(2) div.enPnl1,
  script + br + div[style="width:100%;"] > div.enPnl1 {
    padding: 0 0 10px 10px !important;
  }

  script + table > tbody > tr:nth-child(2) div.enPnl1 > table > tbody > tr > td:nth-child(2),
  script + br + div[style="width:100%;"] > div.enPnl1 > table > tbody > tr > td:nth-child(2) {
    padding-left: 0 !important;
  }

  script + table > tbody > tr:nth-child(2) div.enPnl1 > table > tbody > tr > td,
  script + br + div[style="width:100%;"] > div.enPnl1 > table > tbody > tr > td {
    padding-right: 10px;
  }

  /* Схлапываем расстояние между табами */
  /* Личное дело: */
  script + table + div[style="padding-top: 10px;"] > table table.enTab > tbody > tr,
  /* Команда: */
  script + br + div[style="width:100%;"] ~ br + br + div table.enTab > tbody > tr,
  /* Моя команда (с форумом): */
  script + br + div[style="width:100%;"] + br + div + div + div + table ~ br + br + div table.enTab > tbody > tr,
  /* Моя команда с управлением форумом: */
  script + br + div[style="width:100%;"] + br + div + div + a + div + div + table ~ br + br + div table.enTab > tbody > tr {
    font-size: 0;
  }

  /* Разрешаем переносить табы */
  script + table + div[style="padding-top: 10px;"] > table table.enTab > tbody > tr > td,
  script + br + div[style="width:100%;"] ~ br + br + div table.enTab > tbody > tr > td,
  script + br + div[style="width:100%;"] + br + div + div + div + table ~ br + br + div table.enTab > tbody > tr > td,
  script + br + div[style="width:100%;"] + br + div + div + a + div + div + table ~ br + br + div table.enTab > tbody > tr > td {
    display: inline-block;
  }

  /* Убираем ширину во весь экран у последнего элемента */
  script + table + div[style="padding-top: 10px;"] > table table.enTab > tbody > tr > td.td_last,
  script + br + div[style="width:100%;"] ~ br + br + div table.enTab > tbody > tr > td.td_last,
  script + br + div[style="width:100%;"] + br + div + div + div + table ~ br + br + div table.enTab > tbody > tr > td.td_last,
  script + br + div[style="width:100%;"] + br + div + div + a + div + div + table ~ br + br + div table.enTab > tbody > tr > td.td_last {
    width: initial !important;
  }

  /* Схлапываем нижнюю и верхнюю границы при переносе табов */
  script + table + div[style="padding-top: 10px;"] > table table.enTab > tbody > tr > td,
  script + br + div[style="width:100%;"] ~ br + br + div table.enTab > tbody > tr > td,
  script + br + div[style="width:100%;"] + br + div + div + div + table ~ br + br + div table.enTab > tbody > tr > td,
  script + br + div[style="width:100%;"] + br + div + div + a + div + div + table ~ br + br + div table.enTab > tbody > tr > td {
    margin-top: -1px;
  }

  /* Гарантируем правую границу табов */
  script + table + div[style="padding-top: 10px;"] > table table.enTab > tbody > tr > td:not(.td_last)::before,
  script + br + div[style="width:100%;"] ~ br + br + div table.enTab > tbody > tr > td:not(.td_last)::before,
  script + br + div[style="width:100%;"] + br + div + div + div + table ~ br + br + div table.enTab > tbody > tr > td:not(.td_last)::before,
  script + br + div[style="width:100%;"] + br + div + div + a + div + div + table ~ br + br + div table.enTab > tbody > tr > td:not(.td_last)::before {
    content: '';
    float: right;
    background: url("https://cdn.endata.cx/images/tab/tabLeftLast.gif") no-repeat left top;
    height: 100%;
    width: 1px;
    margin-right: -1px;
  }
}
/* Послужной список на телефонах */
@media (max-width: 480px) {
  /* Скрываем иконки с нумерацию */
  /* Личное дело: */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table > tbody > tr > td:first-child:not([colspan]),
  /* Чужая команда: */
  script + br + div + br + br + div #aspnetForm > div + div + table > tbody > tr > td:first-child:not([colspan]),
  /* Моя команда: */
  table.tblGBSection + br + br + div #aspnetForm > div + div + table > tbody > tr > td:first-child:not([colspan]) {
    display: none;
  }

  /* Скрываем ссылку на помощь с огромной формулой */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table > tbody > tr > td:nth-child(2) a.gold,
  script + br + div + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(2) a.gold,
  table.tblGBSection + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(2) a.gold {
    display: none;
  }

  /* Уменьшаем заголовки */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table .white_bold13,
  script + br + div + br + br + div #aspnetForm > div + div + table .white_bold13,
  table.tblGBSection + br + br + div #aspnetForm > div + div + table .white_bold13 {
    font-size: 10px;
  }

  /* Уменьшаем типы игр */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table .h17,
  script + br + div + br + br + div #aspnetForm > div + div + table .h17,
  table.tblGBSection + br + br + div #aspnetForm > div + div + table .h17 {
    font-size: 12px;
  }

  /* Уменьшаем текст в таблице */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table > tbody > tr > td,
  script + br + div + br + br + div #aspnetForm > div + div + table > tbody > tr > td,
  table.tblGBSection + br + br + div #aspnetForm > div + div + table > tbody > tr > td,
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table > tbody > tr > td td,
  script + br + div + br + br + div #aspnetForm > div + div + table > tbody > tr > td td,
  table.tblGBSection + br + br + div #aspnetForm > div + div + table > tbody > tr > td td {
    font-size: 10px;
  }

  /* Оставляем только даты */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table > tbody > tr > td:nth-child(2),
  script + br + div + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(2),
  table.tblGBSection + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(2) {
    font-size: 0;
  }

  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table > tbody > tr > td:nth-child(2) span:last-child,
  script + br + div + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(2) span:last-child,
  table.tblGBSection + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(2) span:last-child {
    font-size: 10px;
  }

  /* Разрешаем разрывать названия игр */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm > div + div + table > tbody > tr > td:nth-child(4),
  script + br + div + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(4),
  table.tblGBSection + br + br + div #aspnetForm > div + div + table > tbody > tr > td:nth-child(4) {
    word-break: break-all;
  }
}

/* Убираем лишние поля в таблицах "Участие в командах" и "История команды" */
script + table + div[style="padding-top: 10px;"] > table tr:nth-child(2) table #membershipContent table td,
script + br + div + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table td,
table.tblGBSection + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table td {
  padding-left: 0;
  padding-right: 0;
}

/* Разрешаем разрывать длинные имена в таблицах "Участие в командах" и "История команды" */
script + table + div[style="padding-top: 10px;"] > table tr:nth-child(2) table #membershipContent table td:nth-child(2),
script + br + div + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table td:nth-child(2),
table.tblGBSection + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table td:nth-child(2) {
  min-width: 80px;
  word-break: break-all;
}

/* Уменьшаем "Участие в командах" и "История команды" на телефонах */
@media (max-width: 480px) {
  /* Уменьшаем шрифт таблицы */
  script + table + div[style="padding-top: 10px;"] > table tr:nth-child(2) table #membershipContent table td,
  script + br + div + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table td,
  table.tblGBSection + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table td {
    font-size: 9px;
  }

  /* Подменяем текст заголовка */
  script + table + div[style="padding-top: 10px;"] > table tr:nth-child(2) table #membershipContent table tr:first-child td:first-child,
  script + br + div + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table tr:first-child td:first-child,
  table.tblGBSection + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table tr:first-child td:first-child {
    font-size: 0;
  }
  script + table + div[style="padding-top: 10px;"] > table tr:nth-child(2) table #membershipContent table tr:first-child td:first-child::after,
  script + br + div + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table tr:first-child td:first-child::after,
  table.tblGBSection + br + br + div div[style="padding: 4px 4px 10px 4px;"] > div > table tr:first-child td:first-child::after {
    font-size: 9px;
    content: 'Дата/время';
  }
}

/* --------------- */
/* Моё личное дело */
/* --------------- */

/* Переносы справа от аватарки в личном деле */
script + table > tbody > tr:nth-child(2) div.enPnl1 > table > tbody > tr > td:nth-child(2) {
  white-space: normal;
}

/* Убираем отчерк под действием "Аттестация" в личном кабинете */
script + table + div[style="padding-top: 10px;"] > table table.enTab > tbody > tr > td.td_last {
  background: none !important;
}

/* Фотографии в личном деле */
#EnTabContainer1_content_ctl00_panelLinePhotos_photosBlock_rowViewPortraits table {
  width: initial !important;
  margin: auto;
}

#EnTabContainer1_content_ctl00_panelLinePhotos_photosBlock_rowViewPortraits table td {
  width: initial !important;
  display: inline-block;
}

@media (max-width: 768px){
  /* Переносы на вкладке "Информация" */
  script + table + div[style="padding-top: 10px;"] > table #aspnetForm table > tbody > tr > td {
    white-space: normal;
  }

  /* Разрешаем переносить названия игр на вкладке "Судейство" */
  script + table + div[style="padding-top: 10px;"] > table #content > table.bg_light2 td:nth-child(4)[nowrap="nowrap"] {
    white-space: normal;
  }

  /* Разрешаем разрывать название домена на вкладке "Судейство" */
  script + table + div[style="padding-top: 10px;"] > table #content > table.bg_light2 td:nth-child(2) {
    word-break: break-all;
  }
}

/* Скрываем даты на вкладке "Судейство" на телефонах */
@media (max-width: 480px) {
  script + table + div[style="padding-top: 10px;"] > table #content > table.bg_light2 td:nth-child(1) {
    display: none;
  }
}

/* Скрываем галерею */
script + table + div[style="padding-top: 10px;"] > table #tabItem3 {
  display: none;
}

/* ----------- */
/* Моя команда */
/* ----------- */

/* Ниже селекторы */
/*   script + br + div[style="width:100%;"] + br + br + div */
/*   script + br + div[style="width:100%;"] + br + div + div + div + table + br + br + div */
/* сокращены до */
/*   script + br + div + br + br + div */
/*   table.tblGBSection + br + br + div */

@media (max-width: 768px) {
  /* Убираем недотянутой отчерк справа в команде */
  script + br + div[style="width:100%;"] ~ br + br + div table.enTab > tbody > tr > td.td_last,
  script + br + div[style="width:100%;"] + br + div + div + div + table ~ br + br + div table.enTab > tbody > tr > td.td_last,
  script + br + div[style="width:100%;"] + br + div + div + a + div + div + table ~ br + br + div table.enTab > tbody > tr > td.td_last {
    display: none;
  }
  /* Переносы на вкладке "Состав команды" */
  script + br + div + br + br + div #aspnetForm > table > tbody > tr > td,
  table.tblGBSection + br + br + div #aspnetForm > table > tbody > tr > td,
  table.tblGBSection + br + br + div #aspnetForm > a[name="invite"] table:last-child > tbody > tr > td {
    white-space: normal;
  }

  /* Скрываем командный форум */
  /* Ссылка на форум без управления и близлежащие элементы: */
  script + br + div[style="width:100%;"] + br,
  script + br + div[style="width:100%;"] + br + div[style="padding-bottom: 7px"],
  script + br + div[style="width:100%;"] + br + div[style="padding-bottom: 7px"] ~ div.hr,
  script + br + div[style="width:100%;"] + br + div[style="padding-bottom: 7px"] ~ div.hr + div[style="height:10; width:1px;"],
  script + br + div[style="width:100%;"] + br + div[style="padding-bottom: 7px"] ~ div.hr + div[style="height:10; width:1px;"] ~ table.tblGBSection,
  script + br + div[style="width:100%;"] + br + div[style="padding-bottom: 7px"] ~ div.hr + div[style="height:10; width:1px;"] ~ table.tblGBSection + br,
  /* Управление и близлежащие элементы: */
  a#enhlGBManage,
  a#enhlGBManage + div.hr,
  a#enhlGBManage + div.hr + div[style="height:10; width:1px;"],
  a#enhlGBManage + div.hr + div[style="height:10; width:1px;"] ~ table.tblGBSection,
  a#enhlGBManage + div.hr + div[style="height:10; width:1px;"] ~ table.tblGBSection + br {
    display: none;
  }
}

/* ----------------------------- */
/* Таблицы с участниками команды */
/* ----------------------------- */

/* Отключаем разворачивание таблиц на всю страницу */
/* → Капитан команды */
script + br + div + br + br + div #aspnetForm > table:nth-child(6),
table.tblGBSection + br + br + div #aspnetForm > table:nth-child(6),
/* → Основной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + br + table,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + table,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + br + span.Text4white + br + table,
/* → Запасной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + table,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + table,
/* → Приглашенные в команду */
table.tblGBSection + br + br + div #aspnetForm > table + br + table,
/* → Приглашение вступить в команду */
table.tblGBSection + br + br + div #aspnetForm > table + table:last-child,
table.tblGBSection + br + br + div #aspnetForm > a[name="invite"] table:last-child {
  width: initial !important;
}

/* Разрешаем разрывать имена */
/* → Капитан команды */
script + br + div + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] + td + td + td,
table.tblGBSection + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] + td + td + td,
/* → Основной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td + td + td,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td + td + td,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + br + span.Text4white + br + table td[height="21"] + td + td + td,
/* → Запасной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td + td + td,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td + td + td,
/* → Приглашенные в команду */
table.tblGBSection + br + br + div #aspnetForm > table + br + table td[height="21"] + td + td,
/* → Приглашение вступить в команду */
table.tblGBSection + br + br + div #aspnetForm > table + table:last-child td:nth-child(2),
table.tblGBSection + br + br + div #aspnetForm > a[name="invite"] table:last-child td:nth-child(2) {
  word-break: break-all;
}

/* Скрываем бесполезную надпись "id" на телефонах */
@media (max-width: 480px) {
  /* → Капитан команды */
  script + br + div + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] span[class="yellow_darkgreen"],
  table.tblGBSection + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] span[class="yellow_darkgreen"],
  /* → Основной состав команды */
  script + br + div + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] span[class="yellow_darkgreen"],
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] span[class="yellow_darkgreen"],
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + br + span.Text4white + br + table td[height="21"] span[class="yellow_darkgreen"],
  /* → Запасной состав команды */
  script + br + div + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] span[class="yellow_darkgreen"],
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] span[class="yellow_darkgreen"],
  /* → Приглашенные в команду */
  table.tblGBSection + br + br + div #aspnetForm > table + br + table td[height="21"] span[class="yellow_darkgreen"] {
    display: none;
  }
}

/* Скрываем звания на телефонах */
@media (max-width: 480px) {
  /* → Капитан команды */
  script + br + div + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] + td,
  table.tblGBSection + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] + td,
  /* → Основной состав команды */
  script + br + div + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td,
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td,
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + br + span.Text4white + br + table td[height="21"] + td,
  /* → Запасной состав команды */
  script + br + div + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td,
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td,
  /* → Приглашенные в команду */
  table.tblGBSection + br + br + div #aspnetForm > table + br + table td[height="21"] + td {
    display: none;
  }
}

/* Скрываем пол на телефонах */
@media (max-width: 480px) {
  /* → Капитан команды */
  script + br + div + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] + td + td,
  table.tblGBSection + br + br + div #aspnetForm > table:nth-child(6) td[height="18"] + td + td,
  /* → Основной состав команды */
  script + br + div + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td + td,
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td + td,
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + br + span.Text4white + br + table td[height="21"] + td + td,
  /* → Запасной состав команды */
  script + br + div + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td + td,
  table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td + td {
    display: none;
  }
}

/* Запрещаем разрывать действия */
/* → Основной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td + td + td + td,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + table td[height="21"] + td + td + td + td,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + br + span.Text4white + br + table td[height="21"] + td + td + td + td,
/* → Запасной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td + td + td + td,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + table td[height="18"] + td + td + td + td,
/* → Приглашенные в команду */
table.tblGBSection + br + br + div #aspnetForm > table + br + table td[height="21"] + td + td + td + td {
  white-space: nowrap;
}

/* Убираем лишний столбец в Приглашенные в команду */
table.tblGBSection + br + br + div #aspnetForm > table + br + table td:last-child:not([colspan="7"]):not([colspan="8"]) {
  display: none;
}

/* Компактный вариант действий на планшетах и телефонах */
@media (max-width: 768px) {
  table.tblGBSection + br + br + div #aspnetForm a#lnkRemoveFromTeam[href],
  table.tblGBSection + br + br + div #aspnetForm a#lnkReject[href],
  table.tblGBSection + br + br + div #aspnetForm a#lnkJoinToTeam[href],
  table.tblGBSection + br + br + div #aspnetForm a#lnkRemoveInvitation[href] {
    font-size: 0;
  }

  table.tblGBSection + br + br + div #aspnetForm a#lnkRemoveFromTeam[href]::before,
  table.tblGBSection + br + br + div #aspnetForm a#lnkReject[href]::before,
  table.tblGBSection + br + br + div #aspnetForm a#lnkJoinToTeam[href]::before,
  table.tblGBSection + br + br + div #aspnetForm a#lnkRemoveInvitation[href]::before {
    font-size: 12px;
  }

  table.tblGBSection + br + br + div #aspnetForm a#lnkRemoveFromTeam[href]::before,
  table.tblGBSection + br + br + div #aspnetForm a#lnkRemoveInvitation[href]::before {
    content: 'x';
  }

  table.tblGBSection + br + br + div #aspnetForm a#lnkReject[href]::before {
    content: '⌀';
  }

  table.tblGBSection + br + br + div #aspnetForm a#lnkJoinToTeam[href]::before {
    content: '✔';
  }
}

/* Убираем заполнение ширины последним столбцом */
/* → Основной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + br + table td:last-child,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + table td:last-child,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + br + br + span.Text4white + br + table td:last-child,
/* → Запасной состав команды */
script + br + div + br + br + div #aspnetForm > span.white_bold14 + table td:last-child,
table.tblGBSection + br + br + div #aspnetForm > span.white_bold14 + table td:last-child,
/* → Приглашенные в команду */
table.tblGBSection + br + br + div #aspnetForm > table + br + table td:last-child,
/* → Приглашение вступить в команду */
table.tblGBSection + br + br + div #aspnetForm > table + table:last-child td:last-child,
table.tblGBSection + br + br + div #aspnetForm > a[name="invite"] table:last-child td:last-child {
  width: initial !important;
}

/* ---------------------------------------------------------------------- */
/* Формы редактирование личного дела, регистрации и восстановления пароля */
/* ---------------------------------------------------------------------- */

/* Переносы в названиях полей */
form[name="LoginInfoForm"] > div > div > table > tbody > tr > td,
form[name="PersonalDataBlockForm"] > div > div > table > tbody > tr > td,
form[name="ContactsBlockForm"] > div > div > table > tbody > tr > td,
form[name="TransportBlockForm"] > div > div > table > tbody > tr > td,
form[name="EquipmentBlockForm"] > div > div > table > tbody > tr > td,
form[name="LocationBlockForm"] > div > div > table > tbody > tr > td,
#changeSiteBlock_headerPanelLine_divContent + div > div > table > tbody > tr > td,
#subscriptionBlock_headerPanelLine_divContent + div > div > table > tbody > tr > td,
form[name="AdditionalInfoBlockForm"] > div > div > table > tbody > tr > td,
form[action="/SignUp.aspx"] > table > tbody > tr > td,
form[action="./ForgotPassword.aspx"] > table > tbody > tr > td > table > tbody > tr > td {
  white-space: normal;
}

/* Ширина блока с полем ввода и галочкой */
form[name="LoginInfoForm"] table.tblDelim,
form[name="PersonalDataBlockForm"] table.tblDelim,
form[name="ContactsBlockForm"] table.tblDelim,
form[name="TransportBlockForm"] table.tblDelim,
form[name="EquipmentBlockForm"] table.tblDelim,
form[name="LocationBlockForm"] table.tblDelim,
form[name="AdditionalInfoBlockForm"] table.tblDelim {
  width: initial;
}

/* Ширина полей ввода */
form[name="LoginInfoForm"] input.textbox,
form[name="PersonalDataBlockForm"] input.textbox,
form[name="ContactsBlockForm"] input.textbox,
form[name="TransportBlockForm"] input.textbox,
form[name="TransportBlockForm"] select,
form[name="EquipmentBlockForm"] input.textbox,
form[name="LocationBlockForm"] input.textbox,
form[name="AdditionalInfoBlockForm"] input.textbox,
form[action="/SignUp.aspx"] input.textbox,
form[action="./ForgotPassword.aspx"] input.textbox,
form[action="./ForgotPassword.aspx"] select {
  width: 140px !important;
}

/* Регистрация → высота отбивки */
#RegistrationForm_lblPublicExplain + div.hr {
  margin-top: -38px;
}

/* Регистрация → кнопка "Проверить" */
form[action="/SignUp.aspx"] > table > tbody > tr:nth-child(3) td:nth-child(2),
form[action="/SignUp.aspx"] > table > tbody > tr:nth-child(3) td:nth-child(3) {
  display: inline-block;
  width: initial !important;
}

/* Регистрация → код страны */
form[action="/SignUp.aspx"] > table > tbody > tr:nth-child(6) table td {
  display: inline-block;
}

form[action="/SignUp.aspx"] > table > tbody > tr:nth-child(6) table {
  border-spacing: 0;
}

/* Восстановление пароля → код страны */
form[action="./ForgotPassword.aspx"] > table table > tbody > tr:nth-child(4) table td {
  display: inline-block;
}

form[action="./ForgotPassword.aspx"] > table table > tbody > tr:nth-child(4) table td:nth-child(1) {
  width: initial !important;
}

form[action="./ForgotPassword.aspx"] > table table > tbody > tr:nth-child(4) table td:nth-child(2) {
  padding-left: 0 !important;
}

form[action="./ForgotPassword.aspx"] > table table > tbody > tr:nth-child(4) div[style="width:150px;"] {
  width: initial !important;
}

/* Регистрация → войти через соц.сеть */
.formmain .login-through a {
  margin-bottom: 14px;
}

.formmain .login-through .vkontakte {
  margin-right: 6px;
}

.formmain .login-through .facebook {
  margin-left: 0;
}

.formmain .login-through {
  height: initial;
  text-align: center;
}

/* Редактировании блока "Информация для авторизации" → кнопка "Проверить" */
#AuthorizationInfoBlock_LoginEditTbl td {
  display: inline-block;
}

/* Редактировании блока "Личные данных" → Форматирование полей ввода и галочек */
form[name="PersonalDataBlockForm"] table.tblDelim td:nth-child(1) {
  width: 160px;
}

form[name="PersonalDataBlockForm"] table.tblDelim td:nth-child(2) {
  width: initial;
}

/* Редактировании блока "Контакты" → код страны */
form[name="ContactsBlockForm"] table.tblDelim td[width="45px"],
form[name="ContactsBlockForm"] table.tblDelim td[width="45px"] + td {
  display: inline-block;
}

form[name="ContactsBlockForm"] table.tblDelim td[width="45px"] {
  width: initial !important;
}

/* Редактировании блока "Транспорт" → рамка вокруг select-ов */
form[name="TransportBlockForm"] div.enPnl1[style="width:197px;"] {
  width: 140px !important;
}

/* Редактировании блока "Транспорт" → Гос. номер, имя */
form[name="TransportBlockForm"] input[name="RegistrationNumber"] {
  float: left;
}

/* Редактировании блока "Транспорт" → Текст "Изменение фотографии" */
form[name="TransportBlockForm"] #TransportBlock_AutomobileModelsRow + tr + tr td[width="150"] {
  width: 0 !important;
}

form[name="TransportBlockForm"] #TransportBlock_AutomobileModelsRow + tr + tr td[width="150"] + td table {
  width: 100%;
}

/* Редактировании блока "Транспорт" → загрузка файла */
form[name="TransportBlockForm"] #TransportBlock_TrImgUploadBtnRow div[style="width:500px;"] {
  width: initial !important;
}

form[name="TransportBlockForm"] #TransportBlock_TrImgUploadBtnRow input[type="file"] {
  width: 100% !important;
}

/* Редактировании блока "Фотографии" → загрузка файла */
#PhotosBlock_headerPanelLine_divContent + div form div[style="width:500px;"] {
  width: initial !important;
}

#PhotosBlock_headerPanelLine_divContent + div form input[type="file"] {
  width: 100% !important;
}

/* Загрузка гимна и флага команды → загрузка файлов */
form[name="MainForm"] > table > tbody > tr > td > div[style="width:500px;"] {
  width: initial !important;
}

form[name="MainForm"] > table > tbody > tr > td > div[style="width:500px;"] input[type="file"] {
  width: 100% !important;
}

/* Загрузка гимна и флага команды → убираем лишние отступы по краям флага */
form[name="MainForm"] > table > tbody > tr > td[style="padding: 10px 33px;"] {
  padding: 10px 0 !important;
}

/* Редактировании блока "Места обитания" → текстовые поля */
form[name="LocationBlockForm"] div[style="width:402px;"] {
  width: initial !important;
}

form[name="LocationBlockForm"] textarea {
  width: 240px !important;
}

/* Редактировании блока "Места обитания" → раскладка для широких полей */
@media (max-width: 768px) {
  form[name="LocationBlockForm"] > div > div > table > tbody > tr > td {
    display: block;
    width: initial !important;
    text-align: center;
  }

  form[name="LocationBlockForm"] > div > div > table > tbody > tr > td > table.tblDelim {
    margin: auto;
  }
}

/* Редактировании блока "Подписка" → кнопка "Добавить" */
#subscriptionBlock_headerPanelLine_divContent + div > div > form > table > tbody > tr > td:nth-child(2),
#subscriptionBlock_headerPanelLine_divContent + div > div > form > table > tbody > tr > td:nth-child(3) {
  float: left;
}

#subscriptionBlock_headerPanelLine_divContent + div > div > form > table {
  margin: auto;
}

/* Редактировании блока "Подписка" → флажки */
#subscriptionBlock_headerPanelLine_divContent + div > div > form > div.fl {
  float: none;
  display: inline;
}

#subscriptionBlock_headerPanelLine_divContent + div > div > form > div.fl + div {
  float: none !important;
  display: inline;
  line-height: 18px;
  vertical-align: top;
}

/* Редактировании блока "Дополнительная информация" → раскладка для широких полей */
@media (max-width: 768px) {
  form[name="AdditionalInfoBlockForm"] > div > div > table > tbody > tr > td {
    display: block;
    width: initial !important;
    text-align: center;
  }

  form[name="AdditionalInfoBlockForm"] > div > div > table > tbody > tr > td > div.enPnl1 {
    margin: auto;
  }
}

/* ---------- */
/* Мой баланс */
/* ---------- */

/* Разрешаем перенос заголовка и текста внутри */
.padT5 .padT5.padL10.padR10 td.h18[nowrap="nowrap"],
.padT5 .padT5.padL10.padR10 td.h18[nowrap="nowrap"] + td {
  display: inline-block;
}

.padT5 .padT5.padL10.padR10 td.h18[nowrap="nowrap"] {
  white-space: normal;
}

/* ----- */
/* Форум */
/* ----- */

/* Разрешаем перенос пути до темы на форуме */
#tdContentCenter div.Text9 span.Text0 {
  display: inline-block;
}

/* Разрешаем перенос времени сообщения и домена на новую строку */
.msgHead .gbUserInfo .nowrap {
  white-space: normal;
}

/* Исправляем перенос текста сообщения */
.msgHead .gbMessage {
  /*clear: both;
  padding-top: 4px;
  min-height: auto;*/
}

/* Разрешаем разрывать текст длинных ссылок */
.msgHead .gbMessage a {
  word-break: break-all;
  display: inline-block;
}

/* Исправляем схлапывание ширины аватарки */
#tdContentCenter td > img.imgAvat {
  /*width: 56px;
  height: 66px;*/
}

/* На мобильных устройствах: */
@media (max-width: 768px) {
  /* Скрываем хлебные крошки и кнопку RSS */
  #tdContentCenter > table:first-child > tbody > tr:first-child > td:first-child > table:first-child > tbody > tr:nth-child(1) > td:nth-child(1) .Text9,
  #tdContentCenter > table:first-child > tbody > tr:first-child > td:first-child > table:first-child > tbody > tr:nth-child(1) > td:nth-child(2)[width="10"] {
    display: none;
  }

  /* Скрываем домен, владельца и показ аваторок */
  #tdContentCenter > table:first-child > tbody > tr:first-child > td:first-child > table:first-child + table > tbody > tr:nth-child(1) > td:nth-child(1) b,
  #tdContentCenter > table:first-child > tbody > tr:first-child > td:first-child > table:first-child + table > tbody > tr:nth-child(1) > td:nth-child(2)[align="right"] {
    display: none;
  }

  /* Скрываем модераторов форума */
  #tdContentCenter > table:first-child > tbody > tr:first-child > td:first-child > table:first-child + table + span[class="Text5"] {
    display: none;
  }


  /* Главная страница форума и отдельные списки тем */

  /* Глобальные темы на главной + весь список глобальных тем - правила общие, так как набор колонок не различается*/
  /* Скрываем картинку в "Публикация" */
  #tdContentCenter > table > tbody > tr > td > div[style="height:10px;"] + table.bg_light2[width="100%"] > tbody > tr > td:nth-child(1) > table > tbody > tr > td:nth-child(1),
  #tdContentCenter > table > tbody > tr > td > div[style="padding-top: 10px;"] + table.bg_light2[width="100%"] > tbody > tr > td:nth-child(1) > table > tbody > tr > td:nth-child(1),
  /* Скрываем "Автор" */
  #tdContentCenter > table > tbody > tr > td > div[style="height:10px;"] + table.bg_light2[width="100%"] > tbody > tr > td:nth-child(2),
  #tdContentCenter > table > tbody > tr > td > div[style="padding-top: 10px;"] + table.bg_light2[width="100%"] > tbody > tr > td:nth-child(2),
  /* Скрываем "Прочитана" */
  #tdContentCenter > table > tbody > tr > td > div[style="height:10px;"] + table.bg_light2[width="100%"] > tbody > tr > td:nth-child(4),
  #tdContentCenter > table > tbody > tr > td > div[style="padding-top: 10px;"] + table.bg_light2[width="100%"] > tbody > tr > td:nth-child(4),

  /* Игровые темы на главной */
  /* Скрываем значок типа игры  */
  #tdContentCenter > table > tbody > tr > td > table.bg_light2.w100per > tbody > tr > td:nth-child(1),
  /* Скрываем "Темы" */
  #tdContentCenter > table > tbody > tr > td > table.bg_light2.w100per > tbody > tr > td:nth-child(4),
  /* Скрываем "Сообщения" */
  #tdContentCenter > table > tbody > tr > td > table.bg_light2.w100per > tbody > tr > td:nth-child(5),

  /* Остальные темы на главной, либо внутри "Общие темы для всех стран", либо на странице ОргШтаб */
  /* Скрываем первую пустую колонку */
  #tdContentCenter > table > tbody > tr > td > a[href="/Publications/Default.aspx"] ~ div#forum_simple_search ~ table.tblGBSection > tbody > tr > td:nth-child(1),
  #tdContentCenter > table > tbody > tr > td > h1.PageTitle + form#aspnetForm[action="./OrgStaff.aspx"] ~ table.tblGBSection > tbody > tr > td:nth-child(1),
  #tdContentCenter > table > tbody > tr > td > div[style="height: 6px; width:1px;"] + table.tblGBSection > tbody > tr > td:nth-child(1),
  /* Скрываем "Темы" */
  #tdContentCenter > table > tbody > tr > td > a[href="/Publications/Default.aspx"] ~ div#forum_simple_search ~ table.tblGBSection > tbody > tr > td:nth-child(4),
  #tdContentCenter > table > tbody > tr > td > h1.PageTitle + form#aspnetForm[action="./OrgStaff.aspx"] ~ table.tblGBSection > tbody > tr > td:nth-child(4),
  #tdContentCenter > table > tbody > tr > td > div[style="height: 6px; width:1px;"] + table.tblGBSection > tbody > tr > td:nth-child(4),
  /* Скрываем "Сообщения" */
  #tdContentCenter > table > tbody > tr > td > a[href="/Publications/Default.aspx"] ~ div#forum_simple_search ~ table.tblGBSection > tbody > tr > td:nth-child(5),
  #tdContentCenter > table > tbody > tr > td > h1.PageTitle + form#aspnetForm[action="./OrgStaff.aspx"] ~ table.tblGBSection > tbody > tr > td:nth-child(5),
  #tdContentCenter > table > tbody > tr > td > div[style="height: 6px; width:1px;"] + table.tblGBSection > tbody > tr > td:nth-child(5),

  /* Полные списки тем */
  /* Скрываем первую пустую колонку со статусом темы */
  #tdContentCenter > table > tbody > tr > td > div[style="height:6px;width:1px;"] + table.tblGBSection > tbody > tr > td:nth-child(1),
  #tdContentCenter > table > tbody > tr > td > div#forum_simple_search + table.tblGBSection > tbody > tr > td:nth-child(1),
  /* Скрываем "Автор" */
  #tdContentCenter > table > tbody > tr > td > div[style="height:6px;width:1px;"] + table.tblGBSection > tbody > tr > td:nth-child(3),
  #tdContentCenter > table > tbody > tr > td > div#forum_simple_search + table.tblGBSection > tbody > tr > td:nth-child(3),
  /* Скрываем "Сообщения" */
  #tdContentCenter > table > tbody > tr > td > div[style="height:6px;width:1px;"] + table.tblGBSection > tbody > tr > td:nth-child(5),
  #tdContentCenter > table > tbody > tr > td > div#forum_simple_search + table.tblGBSection > tbody > tr > td:nth-child(5),
  /* Скрываем "Просмотры" */
  #tdContentCenter > table > tbody > tr > td > div[style="height:6px;width:1px;"] + table.tblGBSection > tbody > tr > td:nth-child(6),
  #tdContentCenter > table > tbody > tr > td > div#forum_simple_search + table.tblGBSection > tbody > tr > td:nth-child(6)
  {
    display: none;
  }

  /* Разрешаем переносы */
  #tdContentCenter > table > tbody > tr > td > div#forum_simple_search ~ table > tbody > tr > td,
  #tdContentCenter > table > tbody > tr > td > div[style="height:10px;"] + table.bg_light2[width="100%"],
  #tdContentCenter > table > tbody > tr > td > div[style="padding-top: 10px;"] + table.bg_light2[width="100%"],
  #tdContentCenter > table > tbody > tr > td > h1.PageTitle + form#aspnetForm[action="./OrgStaff.aspx"] ~ table.tblGBSection > tbody > tr > td
  {
    white-space: normal;
    word-break: keep-all;
  }

  /* Убираем минимальную ширину для поиска по темам */
  #forum_simple_search {
    min-width: unset;
  }

  /* Убираем картинку в теме и выравниваем текст справа от нее */
  #publCnt > div > table:nth-child(1) > tbody > tr > td:first-child {
    display: none;
  }
  #publCnt > div > table:nth-child(1) > tbody > tr > td:nth-child(2) > table > tbody > tr:nth-child(2) > td,
  #publCnt > div > table:nth-child(1) > tbody > tr > td:nth-child(2) > table > tbody > tr:nth-child(1) > td > table {
    padding-left: 14px;
  }
}

/* -------------------------- */
/* Список участников и команд */
/* -------------------------- */

/* Разрешаем переносы панели сортировки */
h1 + br + #MainForm[class="noPadMarg"] > table:nth-child(3) td[nowrap="nowrap"] {
  white-space: normal;
}

/* Разрешаем переносы и убираем ширину во весь экран */
h1 + br + #MainForm[class="noPadMarg"] > table:nth-child(4) > tbody > tr > td {
  white-space: normal;
  width: initial !important;
}

/* На планшетах и телефонах */
@media (max-width: 768px) {
  /* Убираем даты регистрации и активность участников */
  h1 + br + #MainForm[class="noPadMarg"] > table:nth-child(4) > tbody > tr > td:nth-child(6),
  h1 + br + #MainForm[class="noPadMarg"] > table:nth-child(4) > tbody > tr > td:nth-child(8) {
    display: none;
  }

  /* Разрешаем разрывать ники участников */
  h1 + br + #MainForm[class="noPadMarg"] > table:nth-child(4) > tbody > tr > td:nth-child(5) {
    word-break: break-all;
  }
}

/* На телефонах */
@media (max-width: 480px) {
  /* Разбираем таблицу */
  h1 + br + #MainForm[class="noPadMarg"] > table:nth-child(4) > tbody > tr > td {
    display: inline-block;
    padding-left: 0 !important;
    word-break: initial;
    margin-left: 1px;
    margin-right: 1px;
  }
}

/* ------------------ */
/* Информация об игре */
/* ------------------ */

/* Скрываем фотогалерею */
span#lblPhotoGalleries,
span#lblPhotoGalleries + br,
span#lblPhotoGalleries + br + br,
span#lblPhotoGalleries + br + br + table {
  display: none;
}

/* ТОП-10 и полный список финишировавших */

/* Разрешаем переносить слова */
span#lblTop10Game ~ br + br + table td,
span#lblTopFull + table td {
  white-space: normal;
}

/* Разрешаем разрывать текст в названиях команд */
span#lblTop10Game ~ br + br + table td:nth-child(2),
span#lblTopFull + table td:nth-child(2) {
  word-break: break-all;
  min-width: 80px;
}

/* Убираем лишний символ из столбца с номером команды */
span#lblTop10Game ~ br + br + table td:nth-child(1),
span#lblTopFull + table td:nth-child(1) {
  font-size: 0;
}
span#lblTop10Game ~ br + br + table td:nth-child(1) span,
span#lblTop10Game ~ br + br + table td:nth-child(1)::before,
span#lblTopFull + table td:nth-child(1) span,
span#lblTopFull + table td:nth-child(1)::before {
  font-size: 12px;
}

/* Уменьшаем ТОП-10 для планшетов */
@media (max-width: 992px) {
  /* Уменьшаем шрифт */
  span#lblTop10Game ~ br + br + table td,
  span#lblTop10Game ~ br + br + table td:nth-child(1) span,
  span#lblTop10Game ~ br + br + table td:nth-child(1)::before,
  span#lblTopFull + table td,
  span#lblTopFull + table td:nth-child(1) span,
  span#lblTopFull + table td:nth-child(1)::before {
    font-size: 10px;
  }
}
/* Уменьшаем для планшетов */
@media (max-width: 768px) {
  /* Убираем отступы */
  span#lblTop10Game ~ br + br + table td,
  span#lblTopFull + table td,
  #dlgContentArea span + br + br + table.table_light td {
    padding: 2px;
  }

  /* Уменьшаем шрифт */
  span#lblTop10Game ~ br + br + table td,
  span#lblTop10Game ~ br + br + table td:nth-child(1) span,
  span#lblTop10Game ~ br + br + table td:nth-child(1)::before,
  span#lblTopFull + table td,
  span#lblTopFull + table td:nth-child(1) span,
  span#lblTopFull + table td:nth-child(1)::before,
  #dlgContentArea span + br + br + table.table_light td {
    font-size: 9px;
  }

  /* Убираем жирный из ТОП-10 игры */
  span#lblTop10Game ~ br + br + table td.topWinners,
  span#lblTopFull + table td.topWinners,
  #dlgContentArea span + br + br + table.table_light td {
    font-weight: normal;
  }
  
  /* Убираем сертификат */
  span#lblTop10Game ~ br + br + table td:nth-child(9),
  span#lblTopFull + table td:nth-child(9) {
    display: none;
  }
}

/* Уменьшаем для телефонов */
@media (max-width: 480px) {
  /* Уменьшаем ширину названия команды */
  span#lblTop10Game ~ br + br + table td:nth-child(2),
  span#lblTopFull + table td:nth-child(2) {
    min-width: 66px;
  }

  /* Скрываем решетку перед номером игры */
  span#lblTop10Game ~ br + br + table td:nth-child(1) .yellow_darkgreen,
  span#lblTopFull + table td:nth-child(1) .yellow_darkgreen {
    display: none;
  }

  /* Скрываем чистый финиш */
  span#lblTop10Game ~ br + br + table td:nth-child(3),
  span#lblTopFull + table td:nth-child(3) {
    display: none;
  }
}

/* ------------ */
/* Свойства игр */
/* ------------ */

/* Мы считаем, что часть свойств игры не нужно отображать, тем более в общем списке на главной странице. */

/* Свойства не имеют опознавательных признаков, а их состав может отличаться. */
/* Поэтому единственный вариант - использовать javascript. */

/* Чтобы уменьшить моргания после загрузки страницы, предварительно скрываем лишнюю информацию. */
/* Селекторы по номеру могут быть ошибочными. Javascript исправит это как только будет готов. */

/* Список игр: */
/*.gameInfo:not(.re-unused-game-info-ready) > tbody > tr > td > table > tbody > tr:nth-child(4),  Минимальный пробег: */
/*.gameInfo:not(.re-unused-game-info-ready) > tbody > tr > td > table > tbody > tr:nth-child(6), /* Начало игры в вашей временной зоне: */
/*.gameInfo:not(.re-unused-game-info-ready) > tbody > tr > td > table > tbody > tr:nth-child(8), /* Времени осталось: */
/*.gameInfo:not(.re-unused-game-info-ready) > tbody > tr > td > table > tbody > tr:nth-child(9), /* Подтверждения принимаются до: */
/* Информация об игре: */
/*h1 + .gameInfo:not(.re-unused-game-info-ready) > tbody > tr:nth-child(10), /* Минимальный пробег: */
/*h1 + .gameInfo:not(.re-unused-game-info-ready) > tbody > tr:nth-child(12), /* Начало игры в вашей временной зоне: */
/*h1 + .gameInfo:not(.re-unused-game-info-ready) > tbody > tr:nth-child(14), /* Времени осталось: */
/*h1 + .gameInfo:not(.re-unused-game-info-ready) > tbody > tr:nth-child(16) /* Призовой фонд: */
/*{
  display: none;
}*/

/* Эти классы устанавливает javascript */
.re-unused-game-info-ready .re-unused-game-info {
  display: none;
}

/* --------------- */
/* Бонусы и штрафы */
/* --------------- */

/* Позволяем разрывать фильтры */
span.crumbLastItem + table + div.hr + table form[method=get] + tbody td {
  float: left;
  height: 20px;
}

/* Исправляем наличие пробела перед некоторыми полями фильтра */
span.crumbLastItem + table + div.hr + table form[method=get] + tbody td {
  margin-left: -6px;
  margin-right: 6px;
}
span.crumbLastItem + table + div.hr + table form[method=get] + tbody td:nth-child(1)::before,
span.crumbLastItem + table + div.hr + table form[method=get] + tbody td:nth-child(2)::before {
  content: '\00a0';
}

/* Добавляем переносы фильтра на новую строку */
span.crumbLastItem + table + div.hr + table form[method=get] + tbody td:nth-child(2) {
  clear: both;
}
@media (max-width: 992px) {
  span.crumbLastItem + table + div.hr + table form[method=get] + tbody td:nth-child(6) {
    clear: both;
  }
}
@media (max-width: 480px) {
  span.crumbLastItem + table + div.hr + table form[method=get] + tbody td:nth-child(4),
  span.crumbLastItem + table + div.hr + table form[method=get] + tbody td:nth-child(8) {
    clear: both;
  }
}

/* Отключаем разворачивание таблицы на всю ширину страницы */
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light,
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td {
  width: initial;
}

/* Включаем возможность переноса слов */
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td {
  white-space: normal;
}

/* Добавляем пробелы в заголовки */
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(1)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(1)::before {
  content: 'Дата / время';
}
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(4)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(4)::before {
  content: 'Действие / причина';
}
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(5)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(5)::before {
  content: 'Бонус / штраф';
}
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(1),
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(4),
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(5),
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(1),
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(4),
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(5) {
  font-size: 0;
}
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(1)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(4)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(5)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(1)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(4)::before,
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(5)::before {
  font-size: 12px;
}

/* Позволяем разрывать слово "Комментарий" */
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(6),
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(6) {
  word-break: break-all;
}

/* Разрешаем побуквенный перенос ников */
span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td:nth-child(2),
span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td:nth-child(2) {
  word-break: break-all;
  min-width: 80px;
}
@media (max-width: 480px) {
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td:nth-child(2),
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td:nth-child(2) {
    min-width: 50px;
  }
}

/* Уменьшаем таблицу */
@media (max-width: 992px) {
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(1)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(4)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(5)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(1)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(4)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(5)::before {
    font-size: 11px;
  }
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td {
    padding: 0 !important;;
  }
}
@media (max-width: 768px) {
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(1)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(4)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(5)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(1)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(4)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(5)::before {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light td,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(1)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(4)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr:first-child td:nth-child(5)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light td,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(1)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(4)::before,
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr:first-child td:nth-child(5)::before {
    font-size: 9px;
  }
}

/* На телефонах скрываем столбец "Действие/причина" */
@media (max-width: 480px) {
  span.crumbLastItem + table + div.hr + table + div.hr + table.table_light tr td:nth-child(4),
  span.crumbLastItem + table + div.hr + table + div.hr + table[width="100%"] + table.table_light tr td:nth-child(4) {
    display: none;
  }
}