/* ArezzoMT2 v142 - naprawa ucinania w rankingu środkowym i liście postaci.
   Zakres: pełne strony /ranking/players, /ranking/guilds i lista postaci użytkownika.
   Nie rusza panelu admina ani lewego sidebara. */

body.az-v22-body:not(.page-admin) {
  --az142-border: rgba(255, 112, 91, .38);
  --az142-border-soft: rgba(255, 112, 91, .18);
  --az142-head: linear-gradient(180deg, rgba(31,42,94,.92), rgba(18,24,58,.96));
  --az142-row: linear-gradient(180deg, rgba(52,45,106,.78), rgba(32,36,84,.82));
  --az142-text: #f8ead3;
  --az142-title: #fff2dc;
}

/* =========================
   ŚRODKOWY RANKING GRACZY/GILDII
   ========================= */

/* Główna karta nie może ucinać tabeli */
body.az-v22-body:not(.page-admin) .az74-center,
body.az-v22-body:not(.page-admin) .az86-center,
body.az-v22-body:not(.page-admin) .az74-center .container,
body.az-v22-body:not(.page-admin) .az86-center .container {
  min-width: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* W środku trzymaj normalną szerokość, ale bez wyjścia poza panel */
body.az-v22-body:not(.page-admin) .az74-center .container,
body.az-v22-body:not(.page-admin) .az86-center .container {
  width: 100% !important;
  max-width: 820px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Formularz szukania ma się mieścić w panelu */
body.az-v22-body:not(.page-admin) .az74-center .jumbotron,
body.az-v22-body:not(.page-admin) .az86-center .jumbotron {
  width: 100% !important;
  max-width: 100% !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.az-v22-body:not(.page-admin) .az74-center .jumbotron .row,
body.az-v22-body:not(.page-admin) .az86-center .jumbotron .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-items: center !important;
}

body.az-v22-body:not(.page-admin) .az74-center .jumbotron [class*="col-"],
body.az-v22-body:not(.page-admin) .az86-center .jumbotron [class*="col-"] {
  padding-left: 6px !important;
  padding-right: 6px !important;
  min-width: 0 !important;
}

body.az-v22-body:not(.page-admin) .az74-center .form-control,
body.az-v22-body:not(.page-admin) .az86-center .form-control {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

body.az-v22-body:not(.page-admin) .az74-center .btn,
body.az-v22-body:not(.page-admin) .az86-center .btn {
  max-width: 100% !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* Pełny ranking - tabela nie może wyjeżdżać/ucinać EXP */
body.az-v22-body:not(.page-admin) .az74-center table.table,
body.az-v22-body:not(.page-admin) .az86-center table.table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* Kolumny rankingu graczy/gildii */
body.az-v22-body:not(.page-admin) .az74-center table.table thead th:nth-child(1),
body.az-v22-body:not(.page-admin) .az86-center table.table thead th:nth-child(1),
body.az-v22-body:not(.page-admin) .az74-center table.table tbody th:nth-child(1),
body.az-v22-body:not(.page-admin) .az74-center table.table tbody td:nth-child(1),
body.az-v22-body:not(.page-admin) .az86-center table.table tbody th:nth-child(1),
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td:nth-child(1) {
  width: 9% !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table thead th:nth-child(2),
body.az-v22-body:not(.page-admin) .az86-center table.table thead th:nth-child(2),
body.az-v22-body:not(.page-admin) .az74-center table.table tbody td:nth-child(2),
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td:nth-child(2) {
  width: 28% !important;
  text-align: left !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table thead th:nth-child(3),
body.az-v22-body:not(.page-admin) .az86-center table.table thead th:nth-child(3),
body.az-v22-body:not(.page-admin) .az74-center table.table tbody td:nth-child(3),
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td:nth-child(3) {
  width: 20% !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table thead th:nth-child(4),
body.az-v22-body:not(.page-admin) .az86-center table.table thead th:nth-child(4),
body.az-v22-body:not(.page-admin) .az74-center table.table tbody td:nth-child(4),
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td:nth-child(4) {
  width: 15% !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table thead th:nth-child(5),
body.az-v22-body:not(.page-admin) .az86-center table.table thead th:nth-child(5),
body.az-v22-body:not(.page-admin) .az74-center table.table tbody td:nth-child(5),
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td:nth-child(5) {
  width: 28% !important;
}

/* Styl komórek - prosto, bez rozjazdów kolorów */
body.az-v22-body:not(.page-admin) .az74-center table.table thead th,
body.az-v22-body:not(.page-admin) .az86-center table.table thead th,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th {
  padding: 10px 8px !important;
  background: var(--az142-head) !important;
  color: var(--az142-title) !important;
  border-top: 1px solid var(--az142-border-soft) !important;
  border-bottom: 1px solid var(--az142-border-soft) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table tbody td,
body.az-v22-body:not(.page-admin) .az74-center table.table tbody th,
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td,
body.az-v22-body:not(.page-admin) .az86-center table.table tbody th,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody th {
  padding: 11px 8px !important;
  background: var(--az142-row) !important;
  color: var(--az142-text) !important;
  border-top: 1px solid var(--az142-border-soft) !important;
  border-bottom: 1px solid var(--az142-border-soft) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table thead th:first-child,
body.az-v22-body:not(.page-admin) .az86-center table.table thead th:first-child,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th:first-child {
  border-left: 1px solid var(--az142-border-soft) !important;
  border-radius: 10px 0 0 10px !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table thead th:last-child,
body.az-v22-body:not(.page-admin) .az86-center table.table thead th:last-child,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th:last-child {
  border-right: 1px solid var(--az142-border-soft) !important;
  border-radius: 0 10px 10px 0 !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table tbody td:first-child,
body.az-v22-body:not(.page-admin) .az74-center table.table tbody th:first-child,
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td:first-child,
body.az-v22-body:not(.page-admin) .az86-center table.table tbody th:first-child,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td:first-child,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody th:first-child {
  border-left: 1px solid var(--az142-border-soft) !important;
  border-radius: 10px 0 0 10px !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table tbody td:last-child,
body.az-v22-body:not(.page-admin) .az74-center table.table tbody th:last-child,
body.az-v22-body:not(.page-admin) .az86-center table.table tbody td:last-child,
body.az-v22-body:not(.page-admin) .az86-center table.table tbody th:last-child,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td:last-child,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody th:last-child {
  border-right: 1px solid var(--az142-border-soft) !important;
  border-radius: 0 10px 10px 0 !important;
}

body.az-v22-body:not(.page-admin) .az74-center table.table img,
body.az-v22-body:not(.page-admin) .az86-center table.table img,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table img {
  max-width: 32px !important;
  max-height: 24px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* =========================
   LISTA POSTACI
   ========================= */

body.az-v22-body:not(.page-admin) .mt2cms2-c-l,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l .jumbotron,
body.az-v22-body:not(.page-admin) .mt2cms2-c-l .jumbotron .container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.az-v22-body:not(.page-admin) .mt2cms2-c-l .jumbotron {
  padding: 18px 22px !important;
}

/* Usuwa problem z dodatkową ramką-divem, która ucinała tabelę listy postaci */
body.az-v22-body:not(.page-admin) .mt2cms2-c-l .jumbotron div[style*="border"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

/* Kolumny listy postaci: Pozycja / Klasa / Nazwa / Poziom / EXP */
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th:nth-child(1),
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody th:nth-child(1),
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td:nth-child(1) {
  width: 16% !important;
}

body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th:nth-child(2),
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td:nth-child(2) {
  width: 14% !important;
}

body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th:nth-child(3),
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td:nth-child(3) {
  width: 28% !important;
  text-align: left !important;
}

body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th:nth-child(4),
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td:nth-child(4) {
  width: 16% !important;
}

body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th:nth-child(5),
body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td:nth-child(5) {
  width: 26% !important;
}

/* Mobile / wąskie szerokości */
@media (max-width: 768px) {
  body.az-v22-body:not(.page-admin) .az74-center .container,
  body.az-v22-body:not(.page-admin) .az86-center .container {
    max-width: 100% !important;
  }

  body.az-v22-body:not(.page-admin) .az74-center table.table thead th,
  body.az-v22-body:not(.page-admin) .az86-center table.table thead th,
  body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table thead th {
    padding: 8px 5px !important;
    font-size: 11px !important;
  }

  body.az-v22-body:not(.page-admin) .az74-center table.table tbody td,
  body.az-v22-body:not(.page-admin) .az74-center table.table tbody th,
  body.az-v22-body:not(.page-admin) .az86-center table.table tbody td,
  body.az-v22-body:not(.page-admin) .az86-center table.table tbody th,
  body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody td,
  body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table tbody th {
    padding: 9px 5px !important;
    font-size: 11px !important;
  }

  body.az-v22-body:not(.page-admin) .az74-center table.table img,
  body.az-v22-body:not(.page-admin) .az86-center table.table img,
  body.az-v22-body:not(.page-admin) .mt2cms2-c-l table.table img {
    max-width: 26px !important;
    max-height: 20px !important;
  }
}
