/* Responsywne style dla tabel na urządzeniach mobilnych */
@media (max-width: 768px) {
    .table-mobile-responsive th,
    .table-mobile-responsive td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .table-mobile-responsive {
        table-layout: fixed;
    }
    
    /* Szerokości kolumn dla tabeli wypłat */
    .table-mobile-responsive thead th:nth-child(1) {
        width: 40px !important;
    }
    
    .table-mobile-responsive thead th:nth-child(2) {
        width: 100px !important;
    }
    
    .table-mobile-responsive .badge {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobile bottom navigation bar */
    .mobile-nav-bottom {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
        height: 70px;
        justify-content: space-around;
        padding: 0;
    }
    
    .mobile-nav-bottom::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .mobile-nav-bottom .nav-item {
        display: block;
        flex: 1;
        max-width: 75px;
        min-width: 65px;
        height: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    
    .mobile-nav-bottom .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        padding: 0;
        color: #334155;
        text-decoration: none;
        text-align: center;
        margin: 0;
    }
    
    .mobile-nav-bottom .nav-link.active {
        color: #206bc4;
    }
    
    .mobile-nav-bottom .nav-link-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.4rem;
        margin-bottom: 4px;
        height: 30px;
        width: 100%;
    }
    
    .mobile-nav-bottom .nav-link-title {
        display: block;
        font-size: 0.7rem;
        line-height: 1;
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 0 2px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Add padding to the bottom of the page to prevent content from being hidden behind the nav bar */
    .page-wrapper {
        padding-bottom: 70px;
    }
    
    /* Mobile user menu styles */
    .mobile-user-dropdown {
        position: relative;
    }
    
    .mobile-user-dropdown .dropdown-menu {
        position: fixed !important;
        bottom: 70px !important;
        top: auto !important;
        right: 0;
        left: 0;
        margin: 0 10px;
        transform: translate(0, 0) !important;
        border-radius: 8px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mobile-user-dropdown .dropdown-item {
        padding: 12px 15px;
        display: flex;
        align-items: center;
    }
    
    .mobile-user-dropdown .dropdown-item i {
        margin-right: 10px;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    
    .mobile-user-dropdown .dropdown-header {
        font-weight: bold;
        padding: 12px 15px;
    }
}

/* Większa czytelność danych w tabelach */
.table-striped td, 
.table-striped th {
    padding: 0.75rem 0.5rem;
}

/* Lepsza czytelność etykiet w legendzie na małych ekranach */
@media (max-width: 576px) {
    .d-flex.align-items-center {
        flex-wrap: wrap;
    }
    
    .d-flex.align-items-center > div {
        margin-bottom: 5px;
    }
}

/* Definicje dla brandu uSell */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

/* Lepsze odstępy w menu bocznym */
.navbar-vertical .navbar-nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Silne definicje dla brandu uSell zapewniające prawidłowe wyświetlanie */
@font-face {
    font-family: 'Russo One Custom';
    src: url('/static/fonts/RussoOne-Regular.ttf') format('truetype'),
         local('Russo One'), 
         url('https://fonts.gstatic.com/s/russoone/v16/Z9XUDmZRWg6M1LvRYsHOy8mJvLuL9BLT.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

.brand-u-sell {
    font-family: 'Russo One Custom', 'Russo One', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    font-size: 2.2rem;
    line-height: 1;
    text-transform: none;
}

.brand-u {
    color: #206bc4 !important;
    font-family: 'Russo One Custom', 'Russo One', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    font-size: 1.2em;
    text-transform: none;
}

.brand-sell {
    color: #334155 !important;
    font-family: 'Russo One Custom', 'Russo One', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    font-size: 1.2em;
    text-transform: none;
}

.brand-u-white {
    color: white !important;
    font-family: 'Russo One Custom', 'Russo One', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    font-size: 1.2em;
    text-transform: none;
}

.brand-sell-white {
    color: white !important;
    font-family: 'Russo One Custom', 'Russo One', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    font-size: 1.2em;
    text-transform: none;
}