/*
 * POLSKAELITA.PL - PANEL BOCZNY
 * Green Dark | MyBB 1.8.41
 * TopStats 2.0.0
 *
 * Plik: pe_sidebar.css
 *
 * Poprawki:
 * - naglowki +12px w prawo
 * - liczniki -14px w lewo
 * - zachowanie obecnego ukladu
 * - bez zmian w innych elementach forum
 */

/* ============================================
   GLOWNY UKLAD
============================================ */

.pe-index-layout .pe-sidebar {
    min-width: 0;
    box-sizing: border-box;
}

.pe-sidebar .pe-sidebar-block {
    min-width: 0;
    max-width: 100%;
    margin: 0 0 18px;
    box-sizing: border-box;
}

.pe-sidebar .pe-sidebar-block > br {
    display: none;
}

/* ============================================
   KONTENERY BLOKOW
============================================ */

.pe-sidebar .pe-sidebar-latest > table.tborder,
.pe-sidebar .pe-sidebar-posters > table.tborder,
.pe-sidebar .pe-sidebar-reputation > table.tborder {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #283238;
    border-radius: 10px;
    border-spacing: 0;
    background: #151b20;
    box-shadow: 0 4px 14px rgba(0,0,0,.20);
    overflow: hidden;
}

.pe-sidebar .pe-sidebar-latest > table.tborder > tbody,
.pe-sidebar .pe-sidebar-posters > table.tborder > tbody,
.pe-sidebar .pe-sidebar-reputation > table.tborder > tbody,
.pe-sidebar .pe-sidebar-latest > table.tborder > tbody > tr,
.pe-sidebar .pe-sidebar-posters > table.tborder > tbody > tr,
.pe-sidebar .pe-sidebar-reputation > table.tborder > tbody > tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   NAGLOWKI - PRZESUNIECIE W PRAWO
============================================ */

.pe-sidebar .pe-sidebar-latest .thead,
.pe-sidebar .pe-sidebar-posters .thead,
.pe-sidebar .pe-sidebar-reputation .thead {
    display: block;
    width: 100%;
    box-sizing: border-box;

    padding: 13px 14px;
    padding-left: 26px !important;

    margin: 0;
    background: #1b2328;
    color: #edf4f0;
    border: 0;
    border-bottom: 1px solid #2d3935;

    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    font-weight: 700;
}

/* Najnowsze tematy */

.pe-sidebar .pe-sidebar-latest .thead::before {
    content: "★";
    display: inline-block;
    margin-right: 8px;
    color: #6bdc95;
}

/* Top 5 piszacych */

.pe-sidebar .pe-sidebar-posters .thead::before {
    content: "✎";
    display: inline-block;
    margin-right: 8px;
    color: #6bdc95;
}

/* Top 5 reputacji */

.pe-sidebar .pe-sidebar-reputation .thead::before {
    content: "✦";
    display: inline-block;
    margin-right: 8px;
    color: #6bdc95;
}

/* ============================================
   KAFELKI
============================================ */

.pe-sidebar .pe-sidebar-latest .trow1,
.pe-sidebar .pe-sidebar-posters .trow1,
.pe-sidebar .pe-sidebar-reputation .trow1 {
    display: block;
    width: auto;
    margin: 10px;
    padding: 12px;
    box-sizing: border-box;

    border: 1px solid #2b3940;
    border-radius: 9px;
    background: #20292f;
    color: #c8d4cf;

    line-height: 1.45;
    font-size: 12px;
    overflow: hidden;

    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.pe-sidebar .pe-sidebar-latest .trow1:hover,
.pe-sidebar .pe-sidebar-posters .trow1:hover,
.pe-sidebar .pe-sidebar-reputation .trow1:hover {
    border-color: #436552;
    background: #243038;
    box-shadow: 0 0 0 1px rgba(94,177,125,.05);
}

/* ============================================
   AVATARY
============================================ */

.pe-sidebar .pe-sidebar-latest .trow1 img,
.pe-sidebar .pe-sidebar-posters .trow1 img,
.pe-sidebar .pe-sidebar-reputation .trow1 img {
    float: left;
    display: block;

    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;

    margin: 0 12px 8px 0 !important;
    padding: 0 !important;

    border: 1px solid #41554a;
    border-radius: 50%;
    background: #182025;
    object-fit: cover;
    box-sizing: border-box;
}

/* Czyszczenie floatow */

.pe-sidebar .pe-sidebar-latest .trow1::after,
.pe-sidebar .pe-sidebar-posters .trow1::after,
.pe-sidebar .pe-sidebar-reputation .trow1::after {
    content: "";
    display: block;
    clear: both;
}

/* ============================================
   LINKI I TEKSTY
============================================ */

.pe-sidebar .pe-sidebar-latest .trow1 a,
.pe-sidebar .pe-sidebar-posters .trow1 a,
.pe-sidebar .pe-sidebar-reputation .trow1 a {
    color: #eef5f1;
    text-decoration: none;
}

.pe-sidebar .pe-sidebar-latest .trow1 a:hover,
.pe-sidebar .pe-sidebar-posters .trow1 a:hover,
.pe-sidebar .pe-sidebar-reputation .trow1 a:hover {
    color: #84e6a6;
    text-decoration: none;
}

/* ============================================
   NAJNOWSZE TEMATY
============================================ */

.pe-sidebar .pe-sidebar-latest .trow1 > a:first-of-type {
    display: block;
    margin: 0 0 6px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;

    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Zachowanie naturalnego ukladu pluginu */

.pe-sidebar .pe-sidebar-latest .trow1 br {
    display: block;
    content: "";
    margin: 3px 0;
}

/* Teksty pomocnicze */

.pe-sidebar .pe-sidebar-latest .trow1 span,
.pe-sidebar .pe-sidebar-latest .trow1 .smalltext {
    color: #9db0a8;
    font-size: 11px;
    line-height: 1.45;
}

/* Badge autora */

.pe-sidebar .pe-sidebar-latest .trow1 .pe-login {
    display: inline-flex;
    vertical-align: middle;
    margin: 2px 0 0;
}

/* ============================================
   TOP 5 PISZACYCH I REPUTACJI
============================================ */

/*
 * LICZNIKI
 *
 * Przesuwamy o 14px w lewo.
 * Bez position:absolute.
 * Pozostawiamy naturalne ulozenie float.
 */

.pe-sidebar .pe-sidebar-posters .trow1 > span:last-of-type,
.pe-sidebar .pe-sidebar-reputation .trow1 > span:last-of-type {
    float: right !important;
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-width: 30px;
    min-height: 28px;

    margin: 2px 14px 0 10px !important;
    padding: 2px 8px;

    box-sizing: border-box;

    border: 1px solid #2d7044;
    border-radius: 7px;
    background: #1f6c38;
    color: #ecfff3;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* Login / nick uzytkownika */

.pe-sidebar .pe-sidebar-posters .trow1 > span:first-of-type,
.pe-sidebar .pe-sidebar-reputation .trow1 > span:first-of-type {
    display: block;
    overflow: hidden;
    margin: 6px 0 0 !important;
}

/* Zachowanie formatow loginow */

.pe-sidebar .pe-sidebar-posters .trow1 .pe-login,
.pe-sidebar .pe-sidebar-reputation .trow1 .pe-login {
    display: inline-flex;
    vertical-align: middle;
    max-width: 100%;
}

/* ============================================
   TEAM ONLINE
============================================ */

.pe-sidebar .pe-sidebar-team table.tborder,
.pe-sidebar .pe-sidebar-team .tborder {
    border-radius: 10px;
    overflow: hidden;
}

/* ============================================
   RESPONSYWNOSC
============================================ */

@media (max-width: 800px) {

    .pe-sidebar .pe-sidebar-latest .trow1,
    .pe-sidebar .pe-sidebar-posters .trow1,
    .pe-sidebar .pe-sidebar-reputation .trow1 {
        padding: 10px;
    }

    .pe-sidebar .pe-sidebar-latest .trow1 img,
    .pe-sidebar .pe-sidebar-posters .trow1 img,
    .pe-sidebar .pe-sidebar-reputation .trow1 img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        margin-right: 10px !important;
    }

}

/* ============================================
   DOSTEPNOSC
============================================ */

@media (prefers-reduced-motion: reduce) {

    .pe-sidebar .pe-sidebar-latest .trow1,
    .pe-sidebar .pe-sidebar-posters .trow1,
    .pe-sidebar .pe-sidebar-reputation .trow1 {
        transition: none;
    }

}