/* GTA Game Next 2.2.0 — forum overrides loaded after plugin CSS. */
body.gtx-site .gtx-forum-shell,
body.gtx-site .gtx-forum-shell .gtx-main-content,
body.gtx-site .gtx-forum-shell .forum-viewforum,
body.gtx-site .gtx-forum-shell .forum-viewtopic,
body.gtx-site .gtx-forum-shell .forum-post {
  color: #e6ebf5 !important;
}

body.gtx-site .gtx-forum-shell table,
body.gtx-site .gtx-forum-shell .table {
  width: 100% !important;
  color: #e6ebf5 !important;
  border-color: #30384b !important;
  background: #0d1119 !important;
}

body.gtx-site .gtx-forum-shell table th,
body.gtx-site .gtx-forum-shell .table th,
body.gtx-site .gtx-forum-shell .forumheader,
body.gtx-site .gtx-forum-shell .forumheader2,
body.gtx-site .gtx-forum-shell .forumheader3,
body.gtx-site .gtx-forum-shell .forumheader4 {
  color: #ffffff !important;
  border-color: #384158 !important;
  background: linear-gradient(90deg, #1a2030, #211a32) !important;
}

body.gtx-site .gtx-forum-shell table td,
body.gtx-site .gtx-forum-shell .table td {
  color: #dce3f0 !important;
  border-color: #293143 !important;
  background: #0f141e !important;
}

body.gtx-site .gtx-forum-shell table tbody tr:nth-child(even) td,
body.gtx-site .gtx-forum-shell .table-striped > tbody > tr:nth-of-type(even) > * {
  background: #121824 !important;
}

body.gtx-site .gtx-forum-shell table tbody tr:hover td {
  background: #171e2c !important;
}

body.gtx-site .gtx-forum-shell a {
  color: #65d7ff !important;
}
body.gtx-site .gtx-forum-shell a:hover,
body.gtx-site .gtx-forum-shell a:focus {
  color: #c095ff !important;
}

body.gtx-site .gtx-forum-shell .smalltext,
body.gtx-site .gtx-forum-shell .small-text,
body.gtx-site .gtx-forum-shell small,
body.gtx-site .gtx-forum-shell .text-muted,
body.gtx-site .gtx-forum-shell .text-secondary,
body.gtx-site .gtx-forum-shell [class*="description"],
body.gtx-site .gtx-forum-shell [class*="metadata"],
body.gtx-site .gtx-forum-shell [class*="meta"] {
  color: #aeb9ce !important;
  opacity: 1 !important;
}

body.gtx-site .gtx-forum-shell .badge,
body.gtx-site .gtx-forum-shell .label,
body.gtx-site .gtx-forum-shell [class*="badge"] {
  color: #081019 !important;
  background: #c7d0df !important;
}

body.gtx-site .gtx-forum-shell input,
body.gtx-site .gtx-forum-shell select,
body.gtx-site .gtx-forum-shell textarea,
body.gtx-site .gtx-forum-shell .form-control,
body.gtx-site .gtx-forum-shell .form-select {
  color: #eef2fa !important;
  border-color: #39445b !important;
  background: #10151f !important;
}
body.gtx-site .gtx-forum-shell input::placeholder,
body.gtx-site .gtx-forum-shell textarea::placeholder {
  color: #8692aa !important;
  opacity: 1 !important;
}

body.gtx-site .gtx-forum-shell .btn,
body.gtx-site .gtx-forum-shell button[type="submit"],
body.gtx-site .gtx-forum-shell button[type="button"].btn,
body.gtx-site .gtx-forum-shell input[type="submit"],
body.gtx-site .gtx-forum-shell input[type="button"] {
  color: #071019 !important;
  border-color: transparent !important;
  background: linear-gradient(90deg, #65d7ff, #9b63ff) !important;
  font-weight: 800 !important;
}

body.gtx-site .gtx-forum-shell .alert-warning,
body.gtx-site .gtx-forum-shell .alert-info,
body.gtx-site .gtx-forum-shell .alert {
  color: #e9eef8 !important;
  border-color: #42506b !important;
  background: #171e2c !important;
}

/* TinyMCE 4 outer chrome used by e107 2.3.x. */
body.gtx-site .gtx-forum-shell .mce-tinymce,
body.gtx-site .gtx-forum-shell .mce-container,
body.gtx-site .gtx-forum-shell .mce-container-body,
body.gtx-site .gtx-forum-shell .mce-panel,
body.gtx-site .gtx-forum-shell .mce-toolbar-grp,
body.gtx-site .gtx-forum-shell .mce-menubar,
body.gtx-site .gtx-forum-shell .mce-statusbar {
  color: #dfe6f3 !important;
  border-color: #354056 !important;
  background: #151b27 !important;
}
body.gtx-site .gtx-forum-shell .mce-btn,
body.gtx-site .gtx-forum-shell .mce-menubtn {
  border-color: transparent !important;
  background: #1b2231 !important;
}
body.gtx-site .gtx-forum-shell .mce-btn button,
body.gtx-site .gtx-forum-shell .mce-menubtn button,
body.gtx-site .gtx-forum-shell .mce-ico,
body.gtx-site .gtx-forum-shell .mce-txt,
body.gtx-site .gtx-forum-shell .mce-path-item {
  color: #e6ebf5 !important;
}
body.gtx-site .gtx-forum-shell .mce-btn:hover,
body.gtx-site .gtx-forum-shell .mce-btn:focus,
body.gtx-site .gtx-forum-shell .mce-btn.mce-active {
  background: #283149 !important;
}

.gtx-chatbox-notice {
  padding: .9rem 1rem;
  color: #f5d76a;
  border: 1px dashed #715f32;
  border-radius: 12px;
  background: #19170f;
}

/* ========================================================================
   GTA Game Next 2.2.2 — forum index, kontrast i menu opcji postu
   ======================================================================== */

/* Pełny zakres kolorystyczny dla wszystkich głównych kontenerów forum e107. */
body.gtx-site .gtx-forum-shell #forum,
body.gtx-site .gtx-forum-shell #forum-viewforum,
body.gtx-site .gtx-forum-shell #forum-viewtopic,
body.gtx-site .gtx-forum-shell #forum-stats,
body.gtx-site .gtx-forum-shell #forum-rules,
body.gtx-site .gtx-forum-shell .forum-viewtopic-post,
body.gtx-site .gtx-forum-shell .forum-thread-text,
body.gtx-site .gtx-forum-shell .finfobar,
body.gtx-site .gtx-forum-shell .forum-user-combo {
  color: #e9eef8 !important;
}

body.gtx-site .gtx-forum-shell #forum p,
body.gtx-site .gtx-forum-shell #forum div,
body.gtx-site .gtx-forum-shell #forum span,
body.gtx-site .gtx-forum-shell #forum-viewforum p,
body.gtx-site .gtx-forum-shell #forum-viewforum div,
body.gtx-site .gtx-forum-shell #forum-viewforum span,
body.gtx-site .gtx-forum-shell #forum-viewtopic p,
body.gtx-site .gtx-forum-shell #forum-viewtopic div,
body.gtx-site .gtx-forum-shell #forum-viewtopic span {
  opacity: 1 !important;
}

/* Opisy działów, daty i dawne klasy e107 miały praktycznie czarny kolor. */
body.gtx-site .gtx-forum-shell .smalltext,
body.gtx-site .gtx-forum-shell .smallblacktext,
body.gtx-site .gtx-forum-shell .mediumtext,
body.gtx-site .gtx-forum-shell .muted,
body.gtx-site .gtx-forum-shell #forum td small,
body.gtx-site .gtx-forum-shell #forum-viewforum td small,
body.gtx-site .gtx-forum-shell #forum-viewtopic small,
body.gtx-site .gtx-forum-shell .forum-thread-text,
body.gtx-site .gtx-forum-shell .finfobar {
  color: #b9c5d9 !important;
  opacity: 1 !important;
}

body.gtx-site .gtx-forum-shell #forum td,
body.gtx-site .gtx-forum-shell #forum-viewforum td,
body.gtx-site .gtx-forum-shell #forum-viewtopic .forum-viewtopic-post {
  color: #e4eaf5 !important;
  border-color: #30394d !important;
  background: #111722 !important;
}

body.gtx-site .gtx-forum-shell #forum tr:nth-child(even) td,
body.gtx-site .gtx-forum-shell #forum-viewforum tr:nth-child(even) td,
body.gtx-site .gtx-forum-shell #forum-viewtopic .forum-viewtopic-post:nth-child(odd) {
  background: #151c29 !important;
}

body.gtx-site .gtx-forum-shell #forum-viewtopic .forum-viewtopic-post {
  margin-bottom: 1rem;
  padding: 1rem !important;
  border: 1px solid #30394d !important;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

body.gtx-site .gtx-forum-shell #forum-viewtopic .forum-thread-text {
  min-height: 120px;
  color: #f0f3f9 !important;
  font-size: .96rem;
  line-height: 1.65;
}

/* Menu Options/UserCombo generowane przez Bootstrap nie może pozostać białe. */
body.gtx-site .gtx-forum-shell .dropdown-menu,
body.gtx-site .gtx-forum-shell #forum-viewtopic .dropdown-menu,
body.gtx-site .gtx-forum-shell .forum-user-combo .dropdown-menu {
  min-width: 190px;
  padding: .45rem !important;
  border: 1px solid #3a455d !important;
  border-radius: 12px !important;
  color: #e9eef8 !important;
  background: #121824 !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.48) !important;
  z-index: 1080 !important;
}

body.gtx-site .gtx-forum-shell .dropdown-menu li,
body.gtx-site .gtx-forum-shell .dropdown-menu .dropdown-item,
body.gtx-site .gtx-forum-shell .dropdown-menu li > a,
body.gtx-site .gtx-forum-shell #forum-viewtopic .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin: 0;
  padding: .62rem .72rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #dce7f7 !important;
  background: transparent !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

body.gtx-site .gtx-forum-shell .dropdown-menu .dropdown-item:hover,
body.gtx-site .gtx-forum-shell .dropdown-menu .dropdown-item:focus,
body.gtx-site .gtx-forum-shell .dropdown-menu li > a:hover,
body.gtx-site .gtx-forum-shell .dropdown-menu li > a:focus,
body.gtx-site .gtx-forum-shell #forum-viewtopic .dropdown-menu a:hover,
body.gtx-site .gtx-forum-shell #forum-viewtopic .dropdown-menu a:focus {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(88,221,255,.16), rgba(164,92,255,.18)) !important;
}

body.gtx-site .gtx-forum-shell .dropdown-menu .dropdown-divider,
body.gtx-site .gtx-forum-shell .dropdown-menu .divider {
  margin: .35rem 0 !important;
  border-color: #30394d !important;
}

/* Ikony, strzałki i tekst w przyciskach opcji. */
body.gtx-site .gtx-forum-shell .dropdown-menu i,
body.gtx-site .gtx-forum-shell .dropdown-menu .fa,
body.gtx-site .gtx-forum-shell .dropdown-menu .fas,
body.gtx-site .gtx-forum-shell .dropdown-menu .far {
  color: #63d9ff !important;
}

body.gtx-site .gtx-forum-shell .btn-group,
body.gtx-site .gtx-forum-shell .dropdown {
  position: relative;
}

/* Chatbox na /forum jest renderowany w home_layout tak samo jak w działach. */
body.gtx-site.gtx-is-forum .gtx-forum-index-chatbox {
  display: block;
}
body.gtx-site.gtx-is-not-forum .gtx-forum-index-chatbox {
  display: none;
}

/* Formularz szybkiej odpowiedzi i standardowe pola forum. */
body.gtx-site .gtx-forum-shell #forum-viewtopic textarea,
body.gtx-site .gtx-forum-shell #forum-viewtopic .form-control,
body.gtx-site .gtx-forum-shell #forum-viewforum .form-control {
  color: #f2f5fb !important;
  background: #0d131e !important;
  border-color: #3a455d !important;
}


/* ========================================================================
   GTA Game Next 2.3.12 — Chatbox na 4 wiadomości z polem zawsze na dole
   ======================================================================== */

/*
 * e107 generuje formularz #chatbox przed listą #chatbox-posts-block.
 * Flexbox zmienia ich kolejność wizualną bez modyfikowania pluginu:
 * 1) wiadomości, 2) link moderacji, 3) formularz na dole.
 */
body.gtx-site .gtx-forum-chatbox .gtx-panel__body,
body.gtx-site .gtx-forum-chatbox #chatbox_posts {
  display: flex !important;
  flex-direction: column !important;
  gap: .45rem;
  max-height: none !important;
  overflow: visible !important;
}

body.gtx-site .gtx-forum-chatbox .gtx-panel__body {
  padding: .65rem .75rem .7rem;
}

body.gtx-site .gtx-forum-chatbox .gtx-panel__body > *,
body.gtx-site .gtx-forum-chatbox #chatbox_posts > * {
  order: 2;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block {
  order: 1 !important;
  flex: 0 0 auto;
  width: 100%;
  height: 220px;
  min-height: 180px;
  max-height: 220px;
  padding: .15rem .35rem .15rem .1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-bottom: 0;
}

body.gtx-site .gtx-forum-chatbox form#chatbox {
  order: 3 !important;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 !important;
  padding: .55rem 0 0;
  border-top: 1px solid rgba(121, 137, 171, .22);
  background: #111722;
}

/* Link „moderuj chatbox” pozostaje pomiędzy wiadomościami i polem pisania. */
body.gtx-site .gtx-forum-chatbox #chatbox-posts-block ~ br,
body.gtx-site .gtx-forum-chatbox #chatbox_posts > br {
  display: none !important;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block ~ div[style*="text-align:center"] {
  order: 2 !important;
  margin: 0 !important;
  padding: 0 .15rem;
  font-size: .75rem;
  line-height: 1.2;
}

body.gtx-site .gtx-forum-chatbox #chatbox-input-block {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: .45rem;
  width: 100%;
  margin: 0 !important;
}

body.gtx-site .gtx-forum-chatbox #chatbox-input-block > br {
  display: none !important;
}

body.gtx-site .gtx-forum-chatbox #nick {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.gtx-site .gtx-forum-chatbox textarea#cmessage {
  grid-column: 1;
  width: 100% !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 68px !important;
  margin: 0 !important;
  padding: .55rem .7rem !important;
  overflow-y: auto !important;
  resize: vertical;
  line-height: 1.35;
  color: #edf3ff !important;
  background: #0c121d !important;
  border: 1px solid #39445a !important;
  border-radius: 9px !important;
}

body.gtx-site .gtx-forum-chatbox textarea#cmessage:focus {
  border-color: var(--gtx-cyan) !important;
  box-shadow: 0 0 0 3px rgba(88, 221, 255, .12) !important;
}

body.gtx-site .gtx-forum-chatbox #chat_submit,
body.gtx-site .gtx-forum-chatbox #chatbox-input-block > input[type="button"] {
  min-width: 0;
  height: 42px;
  margin: 0 !important;
  padding: .5rem .75rem !important;
  white-space: nowrap;
  align-self: stretch;
}

body.gtx-site .gtx-forum-chatbox #emote {
  grid-column: 1 / -1;
  max-height: 105px;
  margin: 0 !important;
  overflow-y: auto;
  color: #dce5f4;
  background: #0d131e;
  border-color: #354057;
}

/* Kompaktowe wpisy — panel pozostaje niski także przy 10 wiadomościach. */
body.gtx-site .gtx-forum-chatbox #chatbox-posts-block .media-list,
body.gtx-site .gtx-forum-chatbox #chatbox-posts-block ul {
  margin: 0 !important;
  padding: 0 !important;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block li.media {
  align-items: flex-start;
  margin: 0 0 .45rem !important;
  padding: 0 0 .4rem !important;
  border-bottom: 1px solid rgba(121, 137, 171, .12);
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block li.media:last-child {
  margin-bottom: 0 !important;
  border-bottom: 0;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block .media-left {
  margin-right: .55rem !important;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block .media-object img,
body.gtx-site .gtx-forum-chatbox #chatbox-posts-block img {
  width: 34px !important;
  height: 34px !important;
  object-fit: cover;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block .media-body {
  min-width: 0;
  font-size: .82rem;
  line-height: 1.3;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block .media-body p {
  margin: .1rem 0 0 !important;
  line-height: 1.35;
}

/* Czytelny, wąski pasek przewijania tylko dla listy wiadomości. */
body.gtx-site .gtx-forum-chatbox #chatbox-posts-block {
  scrollbar-width: thin;
  scrollbar-color: #62708b #0c121d;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block::-webkit-scrollbar {
  width: 8px;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block::-webkit-scrollbar-track {
  background: #0c121d;
  border-radius: 999px;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block::-webkit-scrollbar-thumb {
  background: #62708b;
  border-radius: 999px;
}

body.gtx-site .gtx-forum-chatbox #chatbox-posts-block::-webkit-scrollbar-thumb:hover {
  background: #7e8da9;
}

@media (max-width: 575.98px) {
  body.gtx-site .gtx-forum-chatbox #chatbox-posts-block {
    height: 180px;
    max-height: 180px;
  }

  body.gtx-site .gtx-forum-chatbox #chatbox-input-block {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.gtx-site .gtx-forum-chatbox textarea#cmessage {
    grid-column: 1 / -1;
  }

  body.gtx-site .gtx-forum-chatbox #chat_submit,
  body.gtx-site .gtx-forum-chatbox #chatbox-input-block > input[type="button"] {
    height: 38px;
  }
}

/* ========================================================================
   GTA Game Next 2.3.6 — działające emotikony Chatboxa
   ======================================================================== */
body.gtx-site .gtx-forum-chatbox #emote {
  display: none !important;
  grid-column: 1 / -1;
  width: 100%;
  max-height: 132px;
  margin: .45rem 0 0 !important;
  padding: .55rem;
  overflow: auto;
  border: 1px solid #354057 !important;
  border-radius: 9px;
  color: #dce5f4;
  background: #0d131e !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

body.gtx-site .gtx-forum-chatbox #emote.gtx-emote-open {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

body.gtx-site .gtx-forum-chatbox #emote a,
body.gtx-site .gtx-forum-chatbox #emote button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: .25rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
}

body.gtx-site .gtx-forum-chatbox #emote a:hover,
body.gtx-site .gtx-forum-chatbox #emote a:focus-visible,
body.gtx-site .gtx-forum-chatbox #emote button:hover,
body.gtx-site .gtx-forum-chatbox #emote button:focus-visible {
  border-color: rgba(88, 221, 255, .32);
  background: rgba(88, 221, 255, .08);
  outline: none;
}

body.gtx-site .gtx-forum-chatbox #emote img {
  display: block;
  width: auto !important;
  max-width: 28px !important;
  height: auto !important;
  max-height: 28px !important;
}

/* ========================================================================
   GTA Game Next 2.3.7 — awaryjny zestaw emotikon Chatboxa
   ======================================================================== */
body.gtx-site .gtx-forum-chatbox #emote.gtx-emote-fallback {
  align-content: flex-start;
}

body.gtx-site .gtx-forum-chatbox #emote .gtx-fallback-emote {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 !important;
  border: 1px solid rgba(139, 151, 181, .24);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .035);
  font: 400 1.35rem/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}

body.gtx-site .gtx-forum-chatbox #emote .gtx-fallback-emote:hover,
body.gtx-site .gtx-forum-chatbox #emote .gtx-fallback-emote:focus-visible {
  transform: translateY(-1px) scale(1.05);
  border-color: rgba(88, 221, 255, .55);
  background: rgba(88, 221, 255, .11);
  outline: none;
}

/* ========================================================================
   GTA Game Next 2.3.8 — niezależny zestaw obrazkowych emotikon Chatboxa
   ======================================================================== */
body.gtx-site .gtx-forum-chatbox #emote .gtx-theme-emote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: .4rem;
  width: 100%;
}

body.gtx-site .gtx-forum-chatbox #emote .gtx-emote-choice {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 4px !important;
  border: 1px solid rgba(139, 151, 181, .25) !important;
  border-radius: 9px;
  background: rgba(255, 255, 255, .035) !important;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}

body.gtx-site .gtx-forum-chatbox #emote .gtx-emote-choice:hover,
body.gtx-site .gtx-forum-chatbox #emote .gtx-emote-choice:focus-visible {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(88, 221, 255, .62) !important;
  background: rgba(88, 221, 255, .11) !important;
  outline: none;
}

body.gtx-site .gtx-forum-chatbox #emote .gtx-emote-choice img,
body.gtx-site .gtx-forum-chatbox #emote .gtx-emote-icon {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
}

body.gtx-site .gtx-forum-chatbox .gtx-chat-emote {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  margin: -3px .14rem 0;
  vertical-align: middle;
  object-fit: contain;
}


/* ========================================================================
   GTA Game Next 2.3.15 — formularze forum, profile postów i moderacja czatu
   ======================================================================== */

/* Edytor nowego tematu/odpowiedzi: nie dziedziczy gradientu zwykłych przycisków. */
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn button,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn button,
body.gtx-forum-compose-page .gtx-forum-shell .tox button,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-tbtn,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-mbtn {
  color: #dce7f7 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.gtx-forum-compose-page .gtx-forum-shell .mce-tinymce,
body.gtx-forum-compose-page .gtx-forum-shell .mce-container,
body.gtx-forum-compose-page .gtx-forum-shell .mce-container-body,
body.gtx-forum-compose-page .gtx-forum-shell .mce-panel,
body.gtx-forum-compose-page .gtx-forum-shell .mce-toolbar-grp,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubar,
body.gtx-forum-compose-page .gtx-forum-shell .mce-statusbar,
body.gtx-forum-compose-page .gtx-forum-shell .tox.tox-tinymce,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-editor-header,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-menubar,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-toolbar,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-toolbar__primary,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-statusbar {
  color: #dfe7f5 !important;
  border-color: #354158 !important;
  background: #151b27 !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.gtx-forum-compose-page .gtx-forum-shell .mce-tinymce,
body.gtx-forum-compose-page .gtx-forum-shell .tox.tox-tinymce {
  width: 100% !important;
  border: 1px solid #354158 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}

body.gtx-forum-compose-page .gtx-forum-shell .mce-btn,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn {
  margin: 2px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
}

body.gtx-forum-compose-page .gtx-forum-shell .mce-btn:hover,
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn:focus,
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn.mce-active,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn:hover,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-tbtn:hover,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-tbtn--enabled,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-mbtn:hover {
  background: rgba(88, 221, 255, .12) !important;
}

body.gtx-forum-compose-page .gtx-forum-shell .mce-edit-area,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-edit-area,
body.gtx-forum-compose-page .gtx-forum-shell iframe {
  background: #0f131d !important;
}

/* Prawdziwe radio/checkboxy. Ogólne style pól nie mogą ich rozciągać ani blokować. */
body.gtx-forum-compose-page .gtx-forum-shell input[type="radio"],
body.gtx-forum-compose-page .gtx-forum-shell input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  position: static !important;
  display: inline-block !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 .35rem 0 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  vertical-align: middle !important;
  accent-color: #65d7ff;
  cursor: pointer;
}

body.gtx-forum-compose-page .gtx-thread-type-label,
body.gtx-forum-compose-page .gtx-forum-shell label {
  color: #e4ebf7 !important;
  cursor: pointer;
}

body.gtx-forum-compose-page .gtx-forum-shell fieldset,
body.gtx-forum-compose-page .gtx-forum-shell .form-group,
body.gtx-forum-compose-page .gtx-forum-shell .mb-3 {
  border-color: rgba(142, 158, 194, .18) !important;
}

/* Rozszerzony profil autora w poście. */
body.gtx-site .gtx-forum-shell .gtx-forum-topic__topbar,
body.gtx-site .gtx-forum-shell .gtx-forum-topic__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-topic__title {
  margin: .35rem 0 1rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 950;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-card {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0 !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  overflow: visible;
  border: 1px solid #30394d !important;
  border-radius: 15px !important;
  background: #111722 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user {
  min-width: 0;
  padding: 1rem .85rem;
  border-right: 1px solid #30394d;
  text-align: center;
  background: linear-gradient(180deg, rgba(34, 42, 61, .95), rgba(20, 26, 39, .95));
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__name {
  margin-bottom: .65rem;
  font-weight: 900;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__avatar img {
  display: block;
  width: 104px !important;
  height: 104px !important;
  margin: 0 auto .7rem;
  border: 2px solid rgba(101, 215, 255, .72);
  border-radius: 50% !important;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(155, 99, 255, .12);
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__title,
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank {
  margin: .35rem 0;
  color: #dce6f5 !important;
  font-size: .78rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__stats {
  display: grid;
  gap: .32rem;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(139, 153, 183, .16);
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__stat {
  color: #aebbd0 !important;
  font-size: .72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__stat:empty,
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__title:empty,
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank:empty {
  display: none;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-content__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  min-height: 40px;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(139, 153, 183, .16);
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-content__date {
  color: #aebbd0 !important;
  font-size: .77rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-content__body {
  flex: 1 1 auto;
  min-height: 120px;
  padding: 1rem 0;
  color: #eef3fa !important;
  line-height: 1.65;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-content__footer:empty {
  display: none;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-content__footer {
  padding-top: .75rem;
  border-top: 1px solid rgba(139, 153, 183, .14);
  color: #9eabc1;
  font-size: .78rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-emote {
  display: inline-block !important;
  width: 26px !important;
  height: 26px !important;
  margin: -3px .12rem 0;
  vertical-align: middle;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  body.gtx-site .gtx-forum-shell .gtx-forum-post-card {
    grid-template-columns: 1fr;
  }

  body.gtx-site .gtx-forum-shell .gtx-forum-post-user {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar rank"
      "stats stats";
    align-items: center;
    gap: .25rem .75rem;
    border-right: 0;
    border-bottom: 1px solid #30394d;
    text-align: left;
  }

  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__avatar { grid-area: avatar; }
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__name { grid-area: name; margin: 0; }
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank,
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__title { grid-area: rank; margin: 0; }
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__stats { grid-area: stats; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__avatar img { width: 64px !important; height: 64px !important; margin: 0; }
}

/* Strona moderowania Chatboxa. */
body.gtx-chatbox-moderation-page .gtx-main-content,
body.gtx-chatbox-moderation-page .gtx-main,
body.gtx-chatbox-moderation-page main {
  color: #e8eef9 !important;
}

body.gtx-chatbox-moderation-page .gtx-main-content table,
body.gtx-chatbox-moderation-page .gtx-main-content .table,
body.gtx-chatbox-moderation-page .gtx-main-content form,
body.gtx-chatbox-moderation-page .gtx-main-content .media-list,
body.gtx-chatbox-moderation-page .gtx-main-content ul {
  color: #e8eef9 !important;
  border-color: #30394d !important;
  background: #111722 !important;
}

body.gtx-chatbox-moderation-page .gtx-main-content td,
body.gtx-chatbox-moderation-page .gtx-main-content th,
body.gtx-chatbox-moderation-page .gtx-main-content li,
body.gtx-chatbox-moderation-page .gtx-main-content .media {
  color: #e8eef9 !important;
  border-color: #30394d !important;
  background: #111722 !important;
}

body.gtx-chatbox-moderation-page .gtx-main-content tr:nth-child(even) td,
body.gtx-chatbox-moderation-page .gtx-main-content li:nth-child(even) {
  background: #151c29 !important;
}

body.gtx-chatbox-moderation-page .gtx-main-content input[type="checkbox"] {
  appearance: auto !important;
  width: 16px !important;
  height: 16px !important;
  opacity: 1 !important;
  accent-color: #65d7ff;
}

body.gtx-chatbox-moderation-page .gtx-main-content a {
  color: #65d7ff !important;
}

/* Komentarze pod artykułem. */
body.gtx-site textarea[placeholder="Napisz komentarz..."] {
  color: #eef3fa !important;
  border-color: #39445b !important;
  background: #10151f !important;
}

/* ========================================================================
   GTA Game Next 2.3.16 — stabilizacja forum i moderacji Chatboxa
   ======================================================================== */

/* Obrazki dodane przez motyw są ostatecznym wynikiem konwersji emotikon. */
body.gtx-site .gtx-forum-shell img[data-gtx-emote-rendered="1"],
body.gtx-chatbox-moderation-page img[data-gtx-emote-rendered="1"] {
  display: inline-block !important;
  object-fit: contain;
}

body.gtx-chatbox-moderation-page .gtx-main-content .gtx-chat-emote,
body.gtx-chatbox-moderation-page .gtx-main .gtx-chat-emote,
body.gtx-chatbox-moderation-page main .gtx-chat-emote {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: -3px .12rem 0 !important;
  vertical-align: middle;
}

body.gtx-chatbox-moderation-page .gtx-main-content .gtx-chatmod-avatar,
body.gtx-chatbox-moderation-page .gtx-main .gtx-chatmod-avatar,
body.gtx-chatbox-moderation-page main .gtx-chatmod-avatar {
  display: inline-block !important;
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 .75rem .35rem 0 !important;
  border: 2px solid rgba(101, 215, 255, .62);
  border-radius: 50% !important;
  object-fit: cover;
  vertical-align: top;
  box-shadow: 0 0 0 3px rgba(155, 99, 255, .10);
}

body.gtx-chatbox-moderation-page .gtx-main-content form {
  overflow: hidden;
  border: 1px solid #30394d !important;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

body.gtx-chatbox-moderation-page .gtx-main-content li,
body.gtx-chatbox-moderation-page .gtx-main-content .media {
  padding: .9rem 1rem !important;
  border-bottom: 1px solid #30394d !important;
}

body.gtx-chatbox-moderation-page .gtx-main-content li:last-child,
body.gtx-chatbox-moderation-page .gtx-main-content .media:last-child {
  border-bottom: 0 !important;
}


/* ========================================================================
   GTA Game Next 2.3.17 — ranga użytkownika i polskie statystyki forum
   ======================================================================== */
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank {
  display: grid;
  gap: .28rem;
  margin: .55rem 0 .15rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-line,
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__level-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .28rem;
  min-height: 22px;
  padding: .22rem .48rem;
  border: 1px solid rgba(101, 215, 255, .14);
  border-radius: 999px;
  background: rgba(8, 13, 23, .42);
  color: #eaf1fb !important;
  font-size: .72rem;
  line-height: 1.25;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__meta-label {
  color: #8fa0ba !important;
  font-weight: 700;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-value,
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__level-value {
  color: #65d7ff !important;
  font-weight: 900;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__level-glyphs {
  display: inline-flex;
  gap: 2px;
  color: #ffd84d !important;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-special img,
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-image img {
  display: block;
  max-width: 118px;
  max-height: 28px;
  width: auto !important;
  height: auto !important;
  margin: .15rem auto;
  object-fit: contain;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-line[hidden],
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__level-line[hidden],
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-special[hidden],
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-image[hidden] {
  display: none !important;
}

body.gtx-site .gtx-forum-shell #forum-stats,
body.gtx-site .gtx-forum-shell [id*="forum-stats"],
body.gtx-site .gtx-forum-shell .forum-stats {
  color: #e9eff9 !important;
}

body.gtx-site .gtx-forum-shell #forum-stats .nav-tabs,
body.gtx-site .gtx-forum-shell [id*="forum-stats"] .nav-tabs,
body.gtx-site .gtx-forum-shell .forum-stats .nav-tabs {
  gap: .35rem;
  border-bottom-color: #344056 !important;
}

body.gtx-site .gtx-forum-shell #forum-stats .nav-link,
body.gtx-site .gtx-forum-shell [id*="forum-stats"] .nav-link,
body.gtx-site .gtx-forum-shell .forum-stats .nav-link {
  color: #7bdcff !important;
  border: 1px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
  background: transparent !important;
}

body.gtx-site .gtx-forum-shell #forum-stats .nav-link.active,
body.gtx-site .gtx-forum-shell [id*="forum-stats"] .nav-link.active,
body.gtx-site .gtx-forum-shell .forum-stats .nav-link.active {
  color: #07101d !important;
  border-color: #65d7ff !important;
  background: linear-gradient(135deg, #65d7ff, #9b63ff) !important;
}

@media (max-width: 767.98px) {
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__rank-line,
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__level-line {
    justify-content: flex-start;
  }
}


/* ========================================================================
   GTA Game Next 2.3.21 — pole „Typ” po CSS pluginu forum
   ======================================================================== */
html.gtx-forum-compose-page .gtx-thread-type-heading,
body.gtx-forum-compose-page .gtx-thread-type-heading,
body.gtx-forum-compose-page input.gtx-thread-type-heading,
body.gtx-forum-compose-page input[value="Type"],
body.gtx-forum-compose-page input[value="Typ"],
body.gtx-forum-compose-page button.gtx-thread-type-heading,
body.gtx-forum-compose-page .input-group-text.gtx-thread-type-heading,
body.gtx-forum-compose-page .form-control.gtx-thread-type-heading {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: auto !important;
  margin: 0 0 .55rem !important;
  padding: .42rem .72rem !important;
  color: #e8eef9 !important;
  -webkit-text-fill-color: #e8eef9 !important;
  border: 1px solid #354158 !important;
  border-radius: 8px !important;
  background: #171d2a !important;
  background-color: #171d2a !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

body.gtx-forum-compose-page .input-group:has(.gtx-thread-type-heading),
body.gtx-forum-compose-page .form-group:has(.gtx-thread-type-heading) {
  background: transparent !important;
}


/* ========================================================================
   GTA Game Next 2.3.22 — bezwarunkowo ciemny „Typ” i menu TinyMCE na forum
   ======================================================================== */

/*
 * e107 może wyrenderować nagłówek typu jako input, button, span lub dodatek
 * grupy inputów. Reguły obejmują wszystkie warianty, także disabled/readonly
 * i elementy ze stylami inline pochodzącymi z Bootstrapa/pluginu forum.
 */
html.gtx-forum-compose-page body .gtx-thread-type-heading,
html.gtx-forum-compose-page body input.gtx-thread-type-heading,
html.gtx-forum-compose-page body button.gtx-thread-type-heading,
html.gtx-forum-compose-page body span.gtx-thread-type-heading,
html.gtx-forum-compose-page body div.gtx-thread-type-heading,
html.gtx-forum-compose-page body .btn.gtx-thread-type-heading,
html.gtx-forum-compose-page body .btn-default.gtx-thread-type-heading,
html.gtx-forum-compose-page body .btn-light.gtx-thread-type-heading,
html.gtx-forum-compose-page body .form-control.gtx-thread-type-heading,
html.gtx-forum-compose-page body .input-group-text.gtx-thread-type-heading,
html.gtx-forum-compose-page body .gtx-thread-type-heading:disabled,
html.gtx-forum-compose-page body .gtx-thread-type-heading[disabled],
html.gtx-forum-compose-page body .gtx-thread-type-heading[readonly] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 6% !important;
  max-width: max-content !important;
  min-height: 34px !important;
  height: 34px !important;
  margin: 0 0 .55rem !important;
  padding: .42rem .72rem !important;
  opacity: 1 !important;
  color: #e8eef9 !important;
  -webkit-text-fill-color: #e8eef9 !important;
  border: 1px solid #354158 !important;
  border-radius: 8px !important;
  background: #171d2a !important;
  background-color: #171d2a !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  text-transform: none !important;
}

html.gtx-forum-compose-page body .gtx-thread-type-heading:hover,
html.gtx-forum-compose-page body .gtx-thread-type-heading:focus,
html.gtx-forum-compose-page body .gtx-thread-type-heading:active {
  opacity: 1 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(88, 221, 255, .48) !important;
  background: rgba(88, 221, 255, .10) !important;
  background-color: #192332 !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/*
 * TinyMCE 4 dołącza rozwijane menu i okna do końca <body>, a nie wewnątrz
 * .gtx-forum-shell. Dlatego selektory muszą działać globalnie na stronie
 * tworzenia/edycji postu. Paleta jest taka sama jak w usersettings.php.
 */
body.gtx-forum-compose-page .mce-menu,
body.gtx-forum-compose-page .mce-floatpanel,
body.gtx-forum-compose-page .mce-window,
body.gtx-forum-compose-page .mce-window-head,
body.gtx-forum-compose-page .mce-foot,
body.gtx-forum-compose-page > .mce-container.mce-panel,
body.gtx-forum-compose-page > .mce-container.mce-floatpanel {
  color: #e7edf8 !important;
  border-color: rgba(104, 211, 255, .22) !important;
  background: #171c29 !important;
  background-color: #171c29 !important;
  background-image: none !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38) !important;
}

body.gtx-forum-compose-page .mce-menu .mce-container-body,
body.gtx-forum-compose-page .mce-menu .mce-stack-layout,
body.gtx-forum-compose-page .mce-menu .mce-menu-item,
body.gtx-forum-compose-page .mce-floatpanel .mce-container-body,
body.gtx-forum-compose-page .mce-window .mce-container-body {
  color: #dce7f7 !important;
  border-color: rgba(154, 173, 216, .14) !important;
  background: #171c29 !important;
  background-color: #171c29 !important;
  background-image: none !important;
}

body.gtx-forum-compose-page .mce-menu-item,
body.gtx-forum-compose-page .mce-menu-item .mce-text,
body.gtx-forum-compose-page .mce-menu-item .mce-ico,
body.gtx-forum-compose-page .mce-menu-item .mce-caret,
body.gtx-forum-compose-page .mce-window .mce-label,
body.gtx-forum-compose-page .mce-window .mce-title {
  color: #dce7f7 !important;
  text-shadow: none !important;
}

body.gtx-forum-compose-page .mce-menu-item:hover,
body.gtx-forum-compose-page .mce-menu-item:focus,
body.gtx-forum-compose-page .mce-menu-item.mce-selected,
body.gtx-forum-compose-page .mce-menu-item.mce-active,
body.gtx-forum-compose-page .mce-menu-item-normal.mce-active {
  color: #fff !important;
  background: rgba(88, 221, 255, .11) !important;
  background-color: #202b3b !important;
  background-image: none !important;
}

body.gtx-forum-compose-page .mce-menu-item:hover .mce-text,
body.gtx-forum-compose-page .mce-menu-item:focus .mce-text,
body.gtx-forum-compose-page .mce-menu-item.mce-selected .mce-text,
body.gtx-forum-compose-page .mce-menu-item.mce-active .mce-text,
body.gtx-forum-compose-page .mce-menu-item:hover .mce-ico,
body.gtx-forum-compose-page .mce-menu-item:focus .mce-ico,
body.gtx-forum-compose-page .mce-menu-item.mce-selected .mce-ico,
body.gtx-forum-compose-page .mce-menu-item.mce-active .mce-ico {
  color: #fff !important;
}

body.gtx-forum-compose-page .mce-menu-item-sep,
body.gtx-forum-compose-page .mce-menu-item-sep:hover,
body.gtx-forum-compose-page .mce-menu-item-sep:focus {
  height: 1px !important;
  margin: .3rem .55rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: rgba(154, 173, 216, .16) !important;
}

/* TinyMCE 5/6 — ten sam wygląd, gdy instalacja użyje nowszej wersji. */
body.gtx-forum-compose-page .tox-tinymce-aux .tox-menu,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-collection,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-dialog,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-pop,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-toolbar {
  color: #e7edf8 !important;
  border-color: rgba(104, 211, 255, .22) !important;
  background: #171c29 !important;
  background-color: #171c29 !important;
  background-image: none !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38) !important;
}

body.gtx-forum-compose-page .tox-tinymce-aux .tox-collection__item,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-collection__item-label,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-dialog__title,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-label,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-toolbar-label {
  color: #dce7f7 !important;
}

body.gtx-forum-compose-page .tox-tinymce-aux .tox-collection__item--active,
body.gtx-forum-compose-page .tox-tinymce-aux .tox-collection__item:hover {
  color: #fff !important;
  background: rgba(88, 221, 255, .11) !important;
}

/* ========================================================================
   GTA Game Next 2.3.23 — rzeczywisty element zakładki „Typ” w e107
   ======================================================================== */
/*
 * Forum nie generuje tu pola formularza ani nagłówka, tylko aktywną zakładkę:
 * <a class="nav-link active" href="#type" data-bs-toggle="tab">Typ</a>.
 * Nadpisujemy więc bezpośrednio regułę Bootstrap .nav-tabs .nav-link.active,
 * niezależnie od działania JavaScriptu i klasy dodawanej przez motyw.
 */
.gtx-forum-shell ul.nav.nav-tabs > li.nav-item > a.nav-link[href="#type"],
.gtx-forum-shell ul.nav.nav-tabs > li.nav-item > a.nav-link[data-bs-target="#type"],
.gtx-forum-shell ul.nav.nav-tabs > li.nav-item > button.nav-link[data-bs-target="#type"],
.gtx-forum-shell .nav-tabs .nav-link.active[href="#type"],
.gtx-forum-shell .nav-tabs .nav-link.active[data-bs-target="#type"] {
  --bs-nav-link-color: #dce7f7 !important;
  --bs-nav-link-hover-color: #ffffff !important;
  --bs-nav-tabs-link-active-color: #e8eef9 !important;
  --bs-nav-tabs-link-active-bg: #171d2a !important;
  --bs-nav-tabs-link-active-border-color: #354158 #354158 #171d2a !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 48px !important;
  min-height: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: .42rem .72rem !important;
  opacity: 1 !important;
  color: #e8eef9 !important;
  -webkit-text-fill-color: #e8eef9 !important;
  border: 1px solid #354158 !important;
  border-bottom-color: #171d2a !important;
  border-radius: 8px 8px 0 0 !important;
  background: #171d2a !important;
  background-color: #171d2a !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

.gtx-forum-shell ul.nav.nav-tabs > li.nav-item > a.nav-link[href="#type"]:hover,
.gtx-forum-shell ul.nav.nav-tabs > li.nav-item > a.nav-link[href="#type"]:focus,
.gtx-forum-shell ul.nav.nav-tabs > li.nav-item > a.nav-link[href="#type"]:active,
.gtx-forum-shell .nav-tabs .nav-link.active[href="#type"]:hover,
.gtx-forum-shell .nav-tabs .nav-link.active[href="#type"]:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(88, 221, 255, .48) !important;
  border-bottom-color: #192332 !important;
  background: #192332 !important;
  background-color: #192332 !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
}


/* ========================================================================
   GTA Game Next 2.3.61 — emotikony i edytor zaawansowany w szybkiej odpowiedzi
   ======================================================================== */
body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .65rem 0 .5rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools button,
body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 38px;
  padding: .55rem .75rem;
  border: 1px solid rgba(111, 137, 181, .28) !important;
  border-radius: 9px !important;
  background: rgba(18, 24, 37, .98) !important;
  color: #d9e5f5 !important;
  font: inherit;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools button:hover,
body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools button:focus-visible,
body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools a:hover,
body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools a:focus-visible,
body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools.is-emotes-open .gtx-forum-quickreply-emote-toggle {
  border-color: #67d6ff !important;
  background: rgba(35, 48, 75, .98) !important;
  color: #fff !important;
  outline: none;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-advanced {
  background: linear-gradient(135deg, rgba(101, 215, 255, .18), rgba(151, 96, 255, .22)) !important;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-emotes {
  margin: 0 0 .8rem;
  padding: .65rem;
  border: 1px solid rgba(105, 213, 255, .25);
  border-radius: 11px;
  background: rgba(13, 18, 29, .98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-emotes[hidden] {
  display: none !important;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-emote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: .42rem;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-emote-choice {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: .3rem;
  border: 1px solid rgba(115, 137, 177, .22) !important;
  border-radius: 9px !important;
  background: rgba(22, 28, 43, .96) !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-emote-choice:hover,
body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-emote-choice:focus-visible {
  border-color: #69d5ff !important;
  background: rgba(42, 54, 82, .98) !important;
  transform: translateY(-1px);
  outline: none;
}

body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-emote-choice img {
  display: block;
  width: 30px !important;
  height: 30px !important;
  object-fit: contain;
}

@media (max-width: 620px) {
  body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools {
    justify-content: stretch;
  }

  body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools button,
  body.gtx-site .gtx-forum-shell .gtx-forum-quickreply-tools a {
    flex: 1 1 calc(50% - .55rem);
  }
}


/* ================================================================
   GTA Game Next 2.3.62 — stabilny układ forum i spójne emotikony
   ================================================================ */
html.gtx-forum-index-pending body.gtx-site .gtx-forum-shell .gtx-main-content form:has(input[type="search"], input[name="q"], input[name="srch"], input[name="query"], input[name="s"]),
html.gtx-forum-index-pending body.gtx-site .gtx-forum-shell .gtx-main-content > *:has(form input[type="search"], form input[name="q"], form input[name="srch"], form input[name="query"], form input[name="s"]) {
  display: none !important;
}

body.gtx-site .gtx-forum-shell .gtc-forum-search-source,
body.gtx-site .gtx-forum-shell .gtc-forum-search-origin {
  display: none !important;
}

body.gtx-site .gtx-forum-shell .gtx-forum-compose-emote-tools {
  margin-top: 10px;
  justify-content: flex-end;
}

body.gtx-site .gtx-forum-shell .gtx-forum-compose-emotes {
  margin-top: 8px;
}

html.gtx-forum-posted-redirect body {
  opacity: 0 !important;
  pointer-events: none !important;
}


/* GTA Game Next 2.3.63 — menu ostatniego postu w jednym wierszu. */
body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell {
  position: relative;
  padding-right: 3.25rem !important;
  vertical-align: middle !important;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-dropdown,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-dropdown {
  position: absolute !important;
  top: 50%;
  right: .45rem;
  z-index: 4;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: translateY(-50%);
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-dropdown > .dropdown-toggle,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-dropdown > .dropdown-toggle,
body.gtx-site #forum-viewforum .dropdown-toggle.gtx-forum-lastpost-dropdown,
body.gtx-site .forum-viewforum .dropdown-toggle.gtx-forum-lastpost-dropdown {
  display: grid !important;
  place-items: center;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-dropdown .dropdown-menu,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-dropdown .dropdown-menu {
  right: 0;
  left: auto;
}

/* Karta dołączona przez AJAX ma identyczny odstęp jak zwykłe posty. */
body.gtx-site #forum-viewtopic > .forum-viewtopic-post.gtx-ajax-post-relocated {
  margin-bottom: 1rem;
}


/* ========================================================================
   GTA Game Next 2.3.64 — spokojniejsze przyciski, lista tematów i edytor
   ======================================================================== */
body.gtx-site .gtx-forum-shell .btn,
body.gtx-site .gtx-forum-shell button,
body.gtx-site .gtx-forum-shell input[type="submit"] {
  color: #e2e9f3 !important;
  -webkit-text-fill-color: currentColor !important;
  border: 1px solid rgba(113, 139, 178, .34) !important;
  background: linear-gradient(135deg, rgba(29, 38, 53, .98), rgba(36, 31, 49, .98)) !important;
  box-shadow: 0 7px 17px rgba(0, 0, 0, .15) !important;
  text-shadow: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease !important;
}

body.gtx-site .gtx-forum-shell .btn:hover,
body.gtx-site .gtx-forum-shell .btn:focus-visible,
body.gtx-site .gtx-forum-shell button:hover,
body.gtx-site .gtx-forum-shell button:focus-visible,
body.gtx-site .gtx-forum-shell input[type="submit"]:hover,
body.gtx-site .gtx-forum-shell input[type="submit"]:focus-visible {
  color: #fff !important;
  border-color: rgba(101, 201, 234, .52) !important;
  background: linear-gradient(135deg, rgba(36, 49, 67, .99), rgba(48, 38, 63, .99)) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .21) !important;
}

body.gtx-site .gtx-forum-shell .btn-primary,
body.gtx-site .gtx-forum-shell button.btn-primary,
body.gtx-site .gtx-forum-shell input.btn-primary[type="submit"] {
  color: #eef4fb !important;
  border-color: rgba(105, 190, 224, .46) !important;
  background: linear-gradient(135deg, rgba(39, 58, 75, .99), rgba(57, 43, 72, .99)) !important;
}

/* Nie zmieniamy semantyki przycisków narzędziowych TinyMCE. */
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn button,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn button,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-tbtn,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-mbtn {
  box-shadow: none !important;
  transform: none !important;
}

body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell {
  min-width: 150px;
  padding-right: 2.35rem !important;
}

body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell a,
body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell time,
body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell small,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell a,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell time,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell small {
  white-space: nowrap;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-dropdown,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-dropdown {
  right: .32rem;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-dropdown > .dropdown-toggle,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-dropdown > .dropdown-toggle,
body.gtx-site #forum-viewforum .dropdown-toggle.gtx-forum-lastpost-dropdown,
body.gtx-site .forum-viewforum .dropdown-toggle.gtx-forum-lastpost-dropdown {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 7px !important;
}

body.gtx-forum-compose-page .gtx-forum-shell iframe .gtx-forum-emote,
body.gtx-forum-compose-page .gtx-forum-shell .gtx-forum-compose-preview .gtx-forum-emote {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 .08rem !important;
  vertical-align: -.28em !important;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell,
  body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell {
    min-width: 126px;
    padding-right: 2.15rem !important;
  }
}

/* 2.3.64 final: menu ostatniego postu bez nakładania na tekst. */
body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell {
  width: 184px;
  min-width: 184px;
  padding-right: .58rem !important;
  white-space: normal;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-layout,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: .42rem;
  width: 100%;
  min-width: 0;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-summary,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-summary {
  min-width: 0;
  white-space: nowrap;
  line-height: 1.35;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-summary *,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-summary * {
  white-space: nowrap;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-dropdown,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-dropdown {
  position: relative !important;
  inset: auto !important;
  align-self: center;
  justify-self: end;
  width: 28px !important;
  margin: 0 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell,
  body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell {
    width: 158px;
    min-width: 158px;
  }
}


/* ========================================================================
   GTA Game Next 2.3.65 — menu tematu poza ostatnim postem i spójne przyciski
   ======================================================================== */
/* Przywracamy natywny układ kolumny „Ostatni post”. Menu należy do tematu,
   dlatego trafia do szerokiej pierwszej kolumny zamiast zwężać datę i autora. */
body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell {
  width: auto !important;
  min-width: 0 !important;
  padding-right: .72rem !important;
  white-space: normal !important;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-layout,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-layout {
  display: contents !important;
}

body.gtx-site #forum-viewforum .gtx-forum-lastpost-summary,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-summary,
body.gtx-site #forum-viewforum .gtx-forum-lastpost-summary *,
body.gtx-site .forum-viewforum .gtx-forum-lastpost-summary * {
  white-space: normal !important;
}

body.gtx-site #forum-viewforum td.gtx-forum-topic-cell,
body.gtx-site .forum-viewforum td.gtx-forum-topic-cell {
  position: relative;
  padding-right: 2.65rem !important;
}

body.gtx-site #forum-viewforum .gtx-forum-topic-menu-slot,
body.gtx-site .forum-viewforum .gtx-forum-topic-menu-slot {
  position: absolute;
  top: .62rem;
  right: .48rem;
  z-index: 5;
  width: 28px;
  height: 28px;
}

body.gtx-site #forum-viewforum .gtx-forum-topic-dropdown,
body.gtx-site .forum-viewforum .gtx-forum-topic-dropdown {
  position: relative !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
}

body.gtx-site #forum-viewforum .gtx-forum-topic-dropdown > .dropdown-toggle,
body.gtx-site .forum-viewforum .gtx-forum-topic-dropdown > .dropdown-toggle {
  display: grid !important;
  place-items: center;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 7px !important;
}

body.gtx-site #forum-viewforum .gtx-forum-topic-dropdown .dropdown-menu,
body.gtx-site .forum-viewforum .gtx-forum-topic-dropdown .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

/* Ten sam ciemny zestaw przycisków co w portalu, bez jaskrawego gradientu. */
body.gtx-site .gtx-forum-shell .btn,
body.gtx-site .gtx-forum-shell button:not(.mce-open),
body.gtx-site .gtx-forum-shell input[type="submit"],
body.gtx-site .gtx-forum-shell input[type="button"] {
  color: #edf3fb !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: rgba(116, 143, 183, .38) !important;
  background: linear-gradient(135deg, #202a3a 0%, #2a2438 100%) !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18) !important;
}

body.gtx-site .gtx-forum-shell .btn:hover,
body.gtx-site .gtx-forum-shell .btn:focus-visible,
body.gtx-site .gtx-forum-shell button:not(.mce-open):hover,
body.gtx-site .gtx-forum-shell button:not(.mce-open):focus-visible,
body.gtx-site .gtx-forum-shell input[type="submit"]:hover,
body.gtx-site .gtx-forum-shell input[type="submit"]:focus-visible,
body.gtx-site .gtx-forum-shell input[type="button"]:hover,
body.gtx-site .gtx-forum-shell input[type="button"]:focus-visible {
  color: #fff !important;
  border-color: rgba(97, 199, 232, .55) !important;
  background: linear-gradient(135deg, #2b3b4d 0%, #42324f 100%) !important;
}

/* Narzędzia TinyMCE pozostają neutralne. */
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn,
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn:hover,
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn:focus,
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn button,
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn button:hover,
body.gtx-forum-compose-page .gtx-forum-shell .mce-btn button:focus,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn:hover,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn:focus,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn button,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn button:hover,
body.gtx-forum-compose-page .gtx-forum-shell .mce-menubtn button:focus,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-tbtn,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-tbtn:hover,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-tbtn:focus,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-mbtn,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-mbtn:hover,
body.gtx-forum-compose-page .gtx-forum-shell .tox .tox-mbtn:focus {
  color: #e6ebf5 !important;
  border-color: transparent !important;
  background: #1b2231 !important;
  box-shadow: none !important;
  transform: none !important;
}


/* ========================================================================
   GTA Game Next 2.3.66 — stabilna lista tematów i menu w skrajnym prawym rogu
   ======================================================================== */
body.gtx-site #forum-viewforum td.gtx-forum-topic-cell,
body.gtx-site .forum-viewforum td.gtx-forum-topic-cell,
body.gtx-site #forum-viewforum td:first-child,
body.gtx-site .forum-viewforum td:first-child {
  padding-right: .72rem !important;
}

body.gtx-site #forum-viewforum .gtx-forum-topic-menu-slot,
body.gtx-site .forum-viewforum .gtx-forum-topic-menu-slot {
  display: none !important;
}

body.gtx-site #forum-viewforum tr,
body.gtx-site .forum-viewforum tr {
  position: relative;
  z-index: 1;
}

body.gtx-site #forum-viewforum tr.gtx-forum-row-menu-open,
body.gtx-site .forum-viewforum tr.gtx-forum-row-menu-open {
  z-index: 200;
}

body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell-v128,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell-v128 {
  position: relative;
  min-width: 184px;
  padding-right: 2.8rem !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body.gtx-site #forum-viewforum .gtx-forum-row-menu,
body.gtx-site .forum-viewforum .gtx-forum-row-menu {
  position: absolute !important;
  top: 50%;
  right: .48rem;
  left: auto !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 8;
}

body.gtx-site #forum-viewforum tr.gtx-forum-row-menu-open .gtx-forum-row-menu,
body.gtx-site .forum-viewforum tr.gtx-forum-row-menu-open .gtx-forum-row-menu {
  z-index: 1200;
}

body.gtx-site #forum-viewforum .gtx-forum-row-menu > .dropdown-toggle,
body.gtx-site .forum-viewforum .gtx-forum-row-menu > .dropdown-toggle {
  display: grid !important;
  place-items: center;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 7px !important;
}

body.gtx-site #forum-viewforum .gtx-forum-row-menu .dropdown-menu,
body.gtx-site .forum-viewforum .gtx-forum-row-menu .dropdown-menu {
  right: 0 !important;
  left: auto !important;
  z-index: 1250 !important;
  min-width: 150px;
}

body.gtx-site #forum-viewforum .gtx-thread-pages,
body.gtx-site .forum-viewforum .gtx-thread-pages {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: .22rem;
  width: fit-content;
  max-width: 100%;
  clear: both;
  margin: .28rem 0 0 !important;
  padding: 0 !important;
  color: #9eabc0;
  font-size: .68rem;
  line-height: 1.2;
  white-space: normal !important;
}

body.gtx-site #forum-viewforum .gtx-thread-pages a,
body.gtx-site .forum-viewforum .gtx-thread-pages a {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 20px;
  padding: .08rem .3rem;
  border: 1px solid rgba(116, 143, 183, .28);
  border-radius: 5px;
  background: rgba(20, 27, 39, .86);
  color: #dbe6f4;
  text-decoration: none;
}

body.gtx-site #forum-viewforum .gtx-thread-pages .gtc-topic-list-badge,
body.gtx-site .forum-viewforum .gtx-thread-pages .gtc-topic-list-badge,
body.gtx-site #forum-viewforum td:last-child .gtc-topic-list-badge,
body.gtx-site .forum-viewforum td:last-child .gtc-topic-list-badge {
  display: none !important;
}

@media (max-width: 760px) {
  body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell-v128,
  body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell-v128 {
    min-width: 150px;
    white-space: normal !important;
  }
}


/* ========================================================================
   GTA Game Next 2.3.67 — lista tematów zgodna ze stroną główną forum
   ======================================================================== */
body.gtx-site #forum-viewforum table.gtx-topic-list-index-style,
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style {
  table-layout: fixed !important;
  width: 100% !important;
  border-collapse: collapse !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-index-style tr > :first-child,
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style tr > :first-child {
  width: auto !important;
  text-align: left !important;
}


body.gtx-site #forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-has-icon-cell tr > :first-child,
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-has-icon-cell tr > :first-child {
  width: 52px !important;
  text-align: center !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-has-icon-cell tbody tr > :nth-child(2),
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-has-icon-cell tbody tr > :nth-child(2) {
  width: auto !important;
  text-align: left !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-index-style tr > :nth-last-child(3),
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style tr > :nth-last-child(3) {
  width: 88px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-index-style tr > :nth-last-child(2),
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style tr > :nth-last-child(2) {
  width: 96px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-index-style tr > :last-child,
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style tr > :last-child {
  width: 172px !important;
  text-align: left !important;
  vertical-align: middle !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-index-style tbody tr,
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style tbody tr {
  position: relative;
  z-index: 1;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-index-style tbody tr.gtx-topic-menu-open,
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style tbody tr.gtx-topic-menu-open {
  z-index: 800;
}

body.gtx-site #forum-viewforum td.gtx-topic-list-main-cell,
body.gtx-site .forum-viewforum td.gtx-topic-list-main-cell {
  position: relative !important;
  overflow: visible !important;
  padding: .78rem 2.7rem .78rem .72rem !important;
}

body.gtx-site #forum-viewforum td.gtx-topic-list-last-cell,
body.gtx-site .forum-viewforum td.gtx-topic-list-last-cell,
body.gtx-site #forum-viewforum td.gtx-forum-lastpost-cell-v128,
body.gtx-site .forum-viewforum td.gtx-forum-lastpost-cell-v128 {
  position: relative !important;
  min-width: 0 !important;
  padding: .78rem .72rem !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* Paginacja jest metadanym tematu, a nie osobną kolumną. */
body.gtx-site #forum-viewforum .gtx-thread-pages,
body.gtx-site .forum-viewforum .gtx-thread-pages,
body.gtx-site #forum-viewforum .gtx-thread-pages-index-style,
body.gtx-site .forum-viewforum .gtx-thread-pages-index-style {
  position: static !important;
  inset: auto !important;
  float: none !important;
  clear: both !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: .22rem !important;
  width: fit-content !important;
  max-width: calc(100% - 2.15rem) !important;
  margin: .26rem 0 0 2.15rem !important;
  padding: 0 !important;
  color: #9eabc0 !important;
  font-size: .68rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

body.gtx-site #forum-viewforum .gtx-thread-pages a,
body.gtx-site .forum-viewforum .gtx-thread-pages a {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 21px !important;
  min-height: 19px !important;
  padding: .05rem .28rem !important;
  border: 1px solid rgba(116, 143, 183, .26) !important;
  border-radius: 5px !important;
  color: #cbd7e7 !important;
  background: rgba(18, 24, 35, .88) !important;
  text-decoration: none !important;
}

body.gtx-site #forum-viewforum .gtx-thread-pages a:hover,
body.gtx-site .forum-viewforum .gtx-thread-pages a:hover,
body.gtx-site #forum-viewforum .gtx-thread-pages a:focus-visible,
body.gtx-site .forum-viewforum .gtx-thread-pages a:focus-visible {
  border-color: rgba(103, 205, 238, .46) !important;
  color: #f2f7fc !important;
  background: rgba(31, 42, 58, .96) !important;
}

/* Menu opcji trafia do szerokiej komórki tematu i nie zmienia kolumny ostatniego posta. */
body.gtx-site #forum-viewforum .gtx-forum-topic-actions,
body.gtx-site .forum-viewforum .gtx-forum-topic-actions {
  position: absolute !important;
  top: .58rem !important;
  right: .55rem !important;
  left: auto !important;
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 20 !important;
}

body.gtx-site #forum-viewforum .gtx-forum-topic-actions > .dropdown-toggle,
body.gtx-site .forum-viewforum .gtx-forum-topic-actions > .dropdown-toggle {
  display: grid !important;
  place-items: center !important;
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(116, 143, 183, .22) !important;
  border-radius: 6px !important;
  color: #aebbd0 !important;
  background: rgba(20, 27, 39, .72) !important;
  box-shadow: none !important;
  opacity: .34;
  transition: opacity .16s ease, border-color .16s ease, background .16s ease !important;
}

body.gtx-site #forum-viewforum tr:hover .gtx-forum-topic-actions > .dropdown-toggle,
body.gtx-site .forum-viewforum tr:hover .gtx-forum-topic-actions > .dropdown-toggle,
body.gtx-site #forum-viewforum .gtx-forum-topic-actions > .dropdown-toggle:focus-visible,
body.gtx-site .forum-viewforum .gtx-forum-topic-actions > .dropdown-toggle:focus-visible,
body.gtx-site #forum-viewforum tr.gtx-topic-menu-open .gtx-forum-topic-actions > .dropdown-toggle,
body.gtx-site .forum-viewforum tr.gtx-topic-menu-open .gtx-forum-topic-actions > .dropdown-toggle {
  opacity: 1;
  border-color: rgba(103, 205, 238, .42) !important;
  color: #edf4fc !important;
  background: rgba(31, 41, 57, .96) !important;
}

body.gtx-site #forum-viewforum .gtx-forum-topic-actions .dropdown-menu,
body.gtx-site .forum-viewforum .gtx-forum-topic-actions .dropdown-menu {
  top: calc(100% + 5px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 2500 !important;
  min-width: 158px !important;
}

/* Wyczyść pozostałości po poprzednich wariantach rozmieszczenia menu. */
body.gtx-site #forum-viewforum .gtx-forum-row-menu,
body.gtx-site .forum-viewforum .gtx-forum-row-menu,
body.gtx-site #forum-viewforum .gtx-forum-topic-menu-slot,
body.gtx-site .forum-viewforum .gtx-forum-topic-menu-slot {
  display: none !important;
}

@media (max-width: 760px) {
  body.gtx-site #forum-viewforum table.gtx-topic-list-index-style,
  body.gtx-site .forum-viewforum table.gtx-topic-list-index-style {
    table-layout: auto !important;
  }

  body.gtx-site #forum-viewforum table.gtx-topic-list-index-style tr > :last-child,
  body.gtx-site .forum-viewforum table.gtx-topic-list-index-style tr > :last-child {
    width: 145px !important;
  }

  body.gtx-site #forum-viewforum .gtx-thread-pages,
  body.gtx-site .forum-viewforum .gtx-thread-pages {
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}

/* ========================================================================
   GTA Game Next 2.3.68 — jednoznaczne szerokości kolumn listy tematów
   ======================================================================== */
/* e107 ma cztery nagłówki, ale pięć komórek w wierszu (ikona + temat +
   odpowiedzi + wyświetlenia + ostatni post). Colgroup usuwa niejednoznaczność
   algorytmu tabeli i utrzymuje identyczne granice w nagłówku oraz wierszach. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout {
  table-layout: fixed !important;
  width: 100% !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-icon,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-icon {
  width: 48px !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-topic,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-topic {
  width: 48% !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-replies,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-replies {
  width: 104px !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-views,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-views {
  width: 13.5% !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-last,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-last {
  width: 20% !important;
}

/* Wyłącz szerokości odziedziczone z poprzednich wersji. O rozmiarze kolumn
   decyduje wyłącznie powyższy colgroup. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-icon-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-main-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-replies-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-views-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-last-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-icon-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-main-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-replies-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-views-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-last-cell {
  width: auto !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-icon-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-icon-cell {
  padding: .78rem .45rem !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow: visible !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-replies-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-views-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-replies-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-views-cell {
  padding-right: .55rem !important;
  padding-left: .55rem !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-replies-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-views-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-last-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-replies-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-views-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-last-cell {
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-last-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > .gtx-topic-list-last-cell {
  padding-right: .72rem !important;
  padding-left: .78rem !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: normal !important;
}

/* Ikona tematu ma własne 48 px i nie jest już wciskana w kilka pikseli. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout .gtx-topic-list-icon-cell > i,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout .gtx-topic-list-icon-cell > span,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout .gtx-topic-list-icon-cell img,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout .gtx-topic-list-icon-cell > i,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout .gtx-topic-list-icon-cell > span,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout .gtx-topic-list-icon-cell img {
  max-width: 100% !important;
}

@media (max-width: 760px) {
  body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout,
  body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout {
    table-layout: fixed !important;
  }

  body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-replies-cell,
  body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-views-cell,
  body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-replies-cell,
  body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout thead .gtx-topic-list-views-cell {
    white-space: normal !important;
    line-height: 1.15 !important;
  }
}

/* ========================================================================
   GTA Game Next 2.3.69 — lista tematów jak na stronie głównej forum
   ======================================================================== */
/* e107 generuje już jeden prawidłowy colgroup. JavaScript 2.3.69 korzysta z
   niego zamiast dokładać drugi. Pięć szerokości poniżej daje razem 100%. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-icon,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-icon {
  width: 7% !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-topic,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-topic {
  width: 44% !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-replies,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-replies {
  width: 14% !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-views,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-views {
  width: 15% !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-last,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-last {
  width: 20% !important;
}

/* Nagłówki e107 są zwykłymi wierszami TH, bez obowiązkowego THEAD. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout th,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout th {
  min-width: 0 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-topic-heading,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-topic-heading {
  padding-right: .65rem !important;
  padding-left: .65rem !important;
  text-align: left !important;
  white-space: normal !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-replies-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-views-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-last-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-replies-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-views-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout th.gtx-topic-list-last-cell {
  padding-right: .22rem !important;
  padding-left: .22rem !important;
  font-size: .68rem !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  overflow-wrap: normal !important;
  text-overflow: clip !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-icon-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-icon-cell {
  padding-right: .28rem !important;
  padding-left: .28rem !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-main-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-main-cell {
  padding-left: .62rem !important;
  overflow-wrap: anywhere !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-replies-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-views-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-replies-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-views-cell {
  padding-right: .3rem !important;
  padding-left: .3rem !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-last-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout td.gtx-topic-list-last-cell {
  padding-right: .6rem !important;
  padding-left: .6rem !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
  body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-icon,
  body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-icon {
    width: 10% !important;
  }

  body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-topic,
  body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-topic {
    width: 64% !important;
  }

  body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-replies,
  body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout col.gtx-topic-col-replies {
    width: 26% !important;
  }
}


/* ========================================================================
   GTA Game Next 2.3.70 — pełna siatka tabeli, awatary i paginacja tematu
   ======================================================================== */
/* Lista tematów ma wyglądać jak tabela działów na stronie głównej. Wymuszamy
   obrys każdej rzeczywistej komórki, również ikony, odpowiedzi i wyświetleń.
   border-collapse zapobiega podwójnym liniom pomiędzy sąsiednimi komórkami. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid #30394d !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > th,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > th {
  border: 1px solid #384158 !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > td,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > td {
  border: 1px solid #30394d !important;
}

/* Pierwszy nagłówek e107 obejmuje ikonę i temat przez colspan=2. Dolne
   komórki zachowują jednak własne granice, więc kolumna ikony ma pełny obrys. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tbody tr > .gtx-topic-list-icon-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tbody tr > .gtx-topic-list-replies-cell,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tbody tr > .gtx-topic-list-views-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tbody tr > .gtx-topic-list-icon-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tbody tr > .gtx-topic-list-replies-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tbody tr > .gtx-topic-list-views-cell {
  border-right: 1px solid #30394d !important;
  border-left: 1px solid #30394d !important;
  border-bottom: 1px solid #30394d !important;
}

/* Awatar jest kwadratowy przed zaokrągleniem. Poprzednie 12.5% zwężało obraz
   do kilkunastu pikseli i pokazywało tylko pionowy fragment grafiki. */
body.gtx-site .gtx-forum-shell .gtx-forum-post-user__avatar {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

body.gtx-site .gtx-forum-shell .gtx-forum-post-user__avatar img {
  display: block !important;
  flex: 0 0 104px;
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  object-position: center !important;
}

/* e107 może zwrócić wariant Bootstrap 3 albo Bootstrap 5. Selektory poniżej
   obejmują oba warianty oraz aktywny numer wyrenderowany jako span. */
body.gtx-site #forum-viewtopic .pagination,
body.gtx-site .gtx-forum-topic .pagination,
body.gtx-site .gtx-forum-topic__footer .pagination {
  display: inline-flex !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
  gap: .28rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

body.gtx-site #forum-viewtopic .pagination > li,
body.gtx-site .gtx-forum-topic .pagination > li,
body.gtx-site .gtx-forum-topic__footer .pagination > li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

body.gtx-site #forum-viewtopic .pagination > li > a,
body.gtx-site #forum-viewtopic .pagination > li > span,
body.gtx-site #forum-viewtopic .pagination .page-link,
body.gtx-site .gtx-forum-topic .pagination > li > a,
body.gtx-site .gtx-forum-topic .pagination > li > span,
body.gtx-site .gtx-forum-topic .pagination .page-link,
body.gtx-site .gtx-forum-topic__footer .pagination > li > a,
body.gtx-site .gtx-forum-topic__footer .pagination > li > span,
body.gtx-site .gtx-forum-topic__footer .pagination .page-link {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 35px !important;
  min-height: 35px !important;
  margin: 0 !important;
  padding: .42rem .68rem !important;
  border: 1px solid #354158 !important;
  border-radius: 7px !important;
  color: #dce6f5 !important;
  background: #151b28 !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.gtx-site #forum-viewtopic .pagination > li > a:hover,
body.gtx-site #forum-viewtopic .pagination > li > a:focus-visible,
body.gtx-site #forum-viewtopic .pagination .page-link:hover,
body.gtx-site #forum-viewtopic .pagination .page-link:focus-visible,
body.gtx-site .gtx-forum-topic .pagination > li > a:hover,
body.gtx-site .gtx-forum-topic .pagination > li > a:focus-visible,
body.gtx-site .gtx-forum-topic .pagination .page-link:hover,
body.gtx-site .gtx-forum-topic .pagination .page-link:focus-visible {
  border-color: rgba(101, 215, 255, .58) !important;
  color: #ffffff !important;
  background: #202a3b !important;
}

body.gtx-site #forum-viewtopic .pagination > li.active > a,
body.gtx-site #forum-viewtopic .pagination > li.active > span,
body.gtx-site #forum-viewtopic .pagination > .active,
body.gtx-site #forum-viewtopic .pagination .page-item.active .page-link,
body.gtx-site #forum-viewtopic .pagination .page-link.active,
body.gtx-site #forum-viewtopic .pagination [aria-current="page"],
body.gtx-site .gtx-forum-topic .pagination > li.active > a,
body.gtx-site .gtx-forum-topic .pagination > li.active > span,
body.gtx-site .gtx-forum-topic .pagination > .active,
body.gtx-site .gtx-forum-topic .pagination .page-item.active .page-link,
body.gtx-site .gtx-forum-topic .pagination .page-link.active,
body.gtx-site .gtx-forum-topic .pagination [aria-current="page"] {
  border-color: #65d7ff !important;
  color: #f8fbff !important;
  background: linear-gradient(135deg, rgba(101, 215, 255, .26), rgba(155, 99, 255, .30)) !important;
  box-shadow: inset 0 -2px 0 rgba(101, 215, 255, .40), 0 0 0 1px rgba(101, 215, 255, .08) !important;
}

body.gtx-site #forum-viewtopic .pagination > li.disabled > a,
body.gtx-site #forum-viewtopic .pagination > li.disabled > span,
body.gtx-site #forum-viewtopic .pagination .page-item.disabled .page-link,
body.gtx-site .gtx-forum-topic .pagination > li.disabled > a,
body.gtx-site .gtx-forum-topic .pagination > li.disabled > span,
body.gtx-site .gtx-forum-topic .pagination .page-item.disabled .page-link {
  border-color: rgba(53, 65, 88, .65) !important;
  color: #718099 !important;
  background: #111620 !important;
  opacity: .68 !important;
  pointer-events: none !important;
}

@media (max-width: 767.98px) {
  body.gtx-site .gtx-forum-shell .gtx-forum-post-user__avatar img {
    flex-basis: 64px;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
}

/* ========================================================================
   GTA Game Next 2.3.71 — stabilna siatka listy tematów w Firefox
   ======================================================================== */
/*
 * Firefox ma znany problem z malowaniem obramowań komórek, gdy tabela używa
 * border-collapse: collapse, a jej wiersze są position: relative. W tej liście
 * wiersze muszą pozostać pozycjonowane, ponieważ menu tematu ma wyższy z-index.
 * Przechodzimy więc na model separate bez odstępów i rysujemy tylko prawą oraz
 * dolną krawędź każdej komórki. Dzięki temu nie powstają podwójne linie, a
 * ikona, temat, odpowiedzi, wyświetlenia i ostatni post mają pełną siatkę.
 */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 0 !important;
  outline: 1px solid #30394d !important;
  outline-offset: -1px !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > th,
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > td,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > th,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > td {
  border: 0 !important;
  background-clip: padding-box !important;
}

/* Nagłówek: pierwszy TH ma colspan=2, więc jego prawa krawędź wypada dokładnie
   po kolumnie tematu. Kolejne linie rozdzielają odpowiedzi, wyświetlenia i
   ostatni post. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > th,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > th {
  border-bottom: 1px solid #384158 !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tr > th:not(:last-child),
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tr > th:not(:last-child) {
  border-right: 1px solid #384158 !important;
}

/* Wiersze danych: każda komórka ma dolną krawędź, a wszystkie poza ostatnią
   także prawą. Obejmuje to pierwszą komórkę z ikoną oraz statystyki. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tbody tr > td,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tbody tr > td {
  border-bottom: 1px solid #30394d !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tbody tr > td:not(:last-child),
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tbody tr > td:not(:last-child) {
  border-right: 1px solid #30394d !important;
}

/* Dolną i prawą zewnętrzną krawędź zapewnia outline tabeli. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout tbody tr:last-child > td,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout tbody tr:last-child > td {
  border-bottom: 0 !important;
}


/* ========================================================================
   GTA Game Next 2.3.72 — wyśrodkowany nagłówek i czysta aktywna paginacja
   ======================================================================== */
/* Nagłówek „Odpowiedzi” bywa zwracany przez e107 jako TH albo TD i może
   zawierać dodatkowy element wewnętrzny. Klasa data-gtx-topic-header jest
   dodawana przez theme.js, dzięki czemu centrowanie nie zależy od wariantu
   szablonu ani od klasy .text-center dostarczonej przez Bootstrap. */
body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout [data-gtx-topic-header="1"].gtx-topic-list-replies-cell,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout [data-gtx-topic-header="1"].gtx-topic-list-replies-cell {
  padding-right: .22rem !important;
  padding-left: .22rem !important;
  text-align: center !important;
  vertical-align: middle !important;
  justify-content: center !important;
  align-items: center !important;
}

body.gtx-site #forum-viewforum table.gtx-topic-list-column-layout [data-gtx-topic-header="1"].gtx-topic-list-replies-cell > *,
body.gtx-site .forum-viewforum table.gtx-topic-list-column-layout [data-gtx-topic-header="1"].gtx-topic-list-replies-cell > * {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
  justify-content: center !important;
}

/* W starszym HTML e107 aktywna klasa może znajdować się na LI. Poprzednia
   reguła kolorowała wtedy jednocześnie LI i jego link/span, tworząc widoczny
   pasek po lewej stronie. Kontener LI pozostaje teraz przezroczysty, a wygląd
   aktywnej strony jest nakładany wyłącznie na właściwy element .page-link. */
body.gtx-site #forum-viewtopic .pagination > li.active,
body.gtx-site #forum-viewtopic .pagination > .active,
body.gtx-site .gtx-forum-topic .pagination > li.active,
body.gtx-site .gtx-forum-topic .pagination > .active,
body.gtx-site .gtx-forum-topic__footer .pagination > li.active,
body.gtx-site .gtx-forum-topic__footer .pagination > .active {
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.gtx-site #forum-viewtopic .pagination > li.active > a,
body.gtx-site #forum-viewtopic .pagination > li.active > span,
body.gtx-site #forum-viewtopic .pagination .page-item.active > .page-link,
body.gtx-site #forum-viewtopic .pagination .page-link.active,
body.gtx-site #forum-viewtopic .pagination .page-link[aria-current="page"],
body.gtx-site .gtx-forum-topic .pagination > li.active > a,
body.gtx-site .gtx-forum-topic .pagination > li.active > span,
body.gtx-site .gtx-forum-topic .pagination .page-item.active > .page-link,
body.gtx-site .gtx-forum-topic .pagination .page-link.active,
body.gtx-site .gtx-forum-topic .pagination .page-link[aria-current="page"],
body.gtx-site .gtx-forum-topic__footer .pagination > li.active > a,
body.gtx-site .gtx-forum-topic__footer .pagination > li.active > span,
body.gtx-site .gtx-forum-topic__footer .pagination .page-item.active > .page-link,
body.gtx-site .gtx-forum-topic__footer .pagination .page-link.active,
body.gtx-site .gtx-forum-topic__footer .pagination .page-link[aria-current="page"] {
  border-color: rgba(101, 215, 255, .72) !important;
  color: #ffffff !important;
  background: rgba(101, 215, 255, .13) !important;
  box-shadow: inset 0 -2px 0 rgba(101, 215, 255, .42) !important;
  text-shadow: none !important;
  opacity: 1 !important;
}


/* ========================================================================
   GTA Game Next 2.3.73 — rzeczywiste centrowanie nagłówka „Odpowiedzi”
   ======================================================================== */
/* Pierwszy nagłówek „Tematy” ma colspan=2. W starszej regule pozycyjnej
   :nth-child(2) wskazywał więc w nagłówku na „Odpowiedzi”, a nie na komórkę
   tematu. Reguła legacy została ograniczona do tbody. Poniższa reguła jest
   dodatkowym zabezpieczeniem dla wariantów HTML e107 bez osobnego thead. */
body.gtx-site #forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-column-layout tr > th.gtx-topic-list-replies-cell[data-gtx-topic-header="1"],
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-column-layout tr > th.gtx-topic-list-replies-cell[data-gtx-topic-header="1"],
body.gtx-site #forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-column-layout tr > td.gtx-topic-list-replies-cell[data-gtx-topic-header="1"],
body.gtx-site .forum-viewforum table.gtx-topic-list-index-style.gtx-topic-list-column-layout tr > td.gtx-topic-list-replies-cell[data-gtx-topic-header="1"] {
  display: table-cell !important;
  padding-right: .22rem !important;
  padding-left: .22rem !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* ========================================================================
   GTA Game Next 2.4.11 — jednolity gradient wszystkich kategorii forum
   ======================================================================== */
/*
 * e107 nie nadaje wszystkim wierszom kategorii tej samej klasy. Część z nich
 * jest renderowana jako nagłówki TH, a część jako zwykłe komórki TD. theme.js
 * rozpoznaje wiersz po kolumnach „Odpowiedzi”, „Tematy” i „Ostatni post” i
 * dodaje klasę niezależną od wariantu HTML.
 */
body.gtx-site .gtx-forum-shell table tr.gtx-forum-category-row > th,
body.gtx-site .gtx-forum-shell table tr.gtx-forum-category-row > td,
body.gtx-site .gtx-forum-shell table tr.gtx-forum-category-row:hover > th,
body.gtx-site .gtx-forum-shell table tr.gtx-forum-category-row:hover > td {
  border-color: rgba(154, 173, 216, .25) !important;
  color: #f8faff !important;
  background: linear-gradient(100deg, rgba(31, 42, 59, .98), rgba(34, 25, 51, .98)) !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}

body.gtx-site .gtx-forum-shell table tr.gtx-forum-category-row > td:first-child,
body.gtx-site .gtx-forum-shell table tr.gtx-forum-category-row > th:first-child {
  color: #ffffff !important;
}

/* ========================================================================
   GTA Game Next 2.4.12 — stały gradient kategorii mimo table-striped
   ======================================================================== */
/*
 * Bootstrap/e107 nakłada na komórki tabeli pasek przez bardzo duży wewnętrzny
 * box-shadow oparty o --bs-table-accent-bg. Na części wierszy zakrywał on
 * gradient i dlatego stawał się on widoczny dopiero po najechaniu. Wyłączamy
 * nakładkę wyłącznie w oznaczonych wierszach kategorii forum.
 */
body.gtx-site .gtx-forum-shell table.table-striped > tbody > tr.gtx-forum-category-row > .gtx-forum-category-cell,
body.gtx-site .gtx-forum-shell table > tbody > tr.gtx-forum-category-row > .gtx-forum-category-cell,
body.gtx-site .gtx-forum-shell table.table-striped > tbody > tr.forum-parent.gtx-forum-category-row > th,
body.gtx-site .gtx-forum-shell table.table-striped > tbody > tr.forum-parent.gtx-forum-category-row > td,
body.gtx-site .gtx-forum-shell table > tbody > tr.gtx-forum-category-row:hover > .gtx-forum-category-cell {
  --bs-table-bg: transparent !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-hover-bg: transparent !important;
  --bs-table-striped-color: #f8faff !important;
  --bs-table-hover-color: #f8faff !important;
  border-color: rgba(154, 173, 216, .25) !important;
  color: #f8faff !important;
  background-color: rgb(31, 42, 59) !important;
  background-image: linear-gradient(100deg, rgba(31, 42, 59, .98), rgba(34, 25, 51, .98)) !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}


/* 2.4.22: czytelna ikona działu forum zamiast wąskiej kropki. */
body.gtx-site .gtx-forum-shell #forum td.gtx-forum-index-icon-cell,
body.gtx-site .gtx-forum-shell table td.gtx-forum-index-icon-cell {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
}
body.gtx-site .gtx-forum-shell .gtx-forum-index-icon {
  display: inline-block !important;
  width: 1.25rem !important;
  min-width: 1.25rem !important;
  height: 1.25rem !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  color: #66d6ff !important;
  opacity: 1 !important;
  overflow: visible !important;
}


/* ========================================================================
   GTA Game Next 2.4.25 — menu opcji tematu poza obszarem przewijanej tabeli
   ======================================================================== */
/* Globalna warstwa responsywności nadaje tabelom overflow-y:hidden, co zgodnie
   z zachowaniem Bootstrap może ucinać dropdowny. Klasa jest dodawana wyłącznie
   na czas otwarcia menu, więc przewijanie poziome pozostaje dostępne po jego
   zamknięciu. */
body.gtx-site #forum-viewforum .gtx-responsive-table.gtx-forum-dropdown-open,
body.gtx-site .forum-viewforum .gtx-responsive-table.gtx-forum-dropdown-open,
body.gtx-site #forum-viewforum .table-responsive.gtx-forum-dropdown-open,
body.gtx-site .forum-viewforum .table-responsive.gtx-forum-dropdown-open {
  overflow: visible !important;
  z-index: 1100 !important;
}

body.gtx-site #forum-viewforum .gtx-responsive-table.gtx-forum-dropdown-open > table,
body.gtx-site .forum-viewforum .gtx-responsive-table.gtx-forum-dropdown-open > table,
body.gtx-site #forum-viewforum .table-responsive.gtx-forum-dropdown-open > table,
body.gtx-site .forum-viewforum .table-responsive.gtx-forum-dropdown-open > table {
  position: relative;
  z-index: 1;
}

body.gtx-site #forum-viewforum tr.gtx-topic-menu-open,
body.gtx-site .forum-viewforum tr.gtx-topic-menu-open,
body.gtx-site #forum-viewforum tr.gtx-topic-menu-open > td,
body.gtx-site .forum-viewforum tr.gtx-topic-menu-open > td {
  overflow: visible !important;
}

body.gtx-site #forum-viewforum tr.gtx-topic-menu-open .gtx-forum-topic-actions,
body.gtx-site .forum-viewforum tr.gtx-topic-menu-open .gtx-forum-topic-actions {
  z-index: 2600 !important;
}

body.gtx-site #forum-viewforum tr.gtx-topic-menu-open .gtx-forum-topic-actions .dropdown-menu,
body.gtx-site .forum-viewforum tr.gtx-topic-menu-open .gtx-forum-topic-actions .dropdown-menu {
  z-index: 2700 !important;
}


/* ========================================================================
   GTA Game Next 2.4.26 — portal menu opcji tematu poza tabelą forum
   ======================================================================== */
/* Menu jest na czas otwarcia przenoszone bezpośrednio pod <body>. Dzięki temu
   nie podlega overflow ani kontekstom nakładania tabeli i kolejnych sekcji. */
body > .gtx-forum-topic-menu-portal {
  position: fixed !important;
  inset: auto !important;
  display: none !important;
  min-width: 190px !important;
  max-width: calc(100vw - 16px) !important;
  margin: 0 !important;
  padding: .45rem !important;
  border: 1px solid #3a455d !important;
  border-radius: 12px !important;
  color: #e9eef8 !important;
  background: #121824 !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .62) !important;
  list-style: none !important;
  transform: none !important;
  z-index: 100000 !important;
}

body > .gtx-forum-topic-menu-portal.show,
body > .gtx-forum-topic-menu-portal[data-gtx-portal-open="1"] {
  display: block !important;
}

body > .gtx-forum-topic-menu-portal > li {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
  text-align: left !important;
}

body > .gtx-forum-topic-menu-portal .dropdown-item,
body > .gtx-forum-topic-menu-portal > li > a,
body > .gtx-forum-topic-menu-portal > li > button {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  width: 100% !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: .62rem .72rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #dce7f7 !important;
  background: transparent !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}

body > .gtx-forum-topic-menu-portal .dropdown-item:hover,
body > .gtx-forum-topic-menu-portal .dropdown-item:focus,
body > .gtx-forum-topic-menu-portal > li > a:hover,
body > .gtx-forum-topic-menu-portal > li > a:focus,
body > .gtx-forum-topic-menu-portal > li > button:hover,
body > .gtx-forum-topic-menu-portal > li > button:focus {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(88, 221, 255, .16), rgba(164, 92, 255, .18)) !important;
  outline: 0 !important;
}

body > .gtx-forum-topic-menu-portal > li:empty {
  display: none !important;
}
