/* Ukrycie brandingu i panelu użytkownika */
.sidebar-user-panel,
.brand-link {
    display: none !important;
}

/* Główne pozycje menu */
.nav-sidebar .nav-item > .nav-link {
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cfd8dc;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    transition: background 0.3s;
}

/* Ikony w głównym menu */
.nav-sidebar .nav-item > .nav-link i.nav-icon {
    font-size: 1.1rem;
    margin-right: 10px;
}

/* Strzałki w głównym menu */
.nav-sidebar .nav-item > .nav-link .right {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Submenu */
.nav-sidebar .nav-treeview {
    padding-left: 8px;
    display: none;
}

/* Linki w submenu */
.nav-sidebar .nav-treeview > .nav-item > .nav-link {
    padding: 6px 20px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #b0bec5;
    background-color: transparent;
    border-radius: 0.4rem;
    margin: 2px 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover submenu */
.nav-sidebar .nav-treeview > .nav-item > .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Active submenu */
.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    background-color: #546e7a;
    color: #ffffff;
    font-weight: 500;
}



/* --- Tryb mini-sidebar --- */
.sidebar-mini.sidebar-collapse .main-sidebar,
.sidebar-mini.sidebar-collapse .nav-sidebar {
    width: 80px;
    min-width: 80px;
}




/* Linki submenu w mini */
.sidebar-mini.sidebar-collapse .nav-treeview .nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    color: #cfd8dc;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Hover linków submenu w mini */
.sidebar-mini.sidebar-collapse .nav-treeview .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Active link submenu w mini */
.sidebar-mini.sidebar-collapse .nav-treeview .nav-link.active {
    background-color: #546e7a;
    color: #ffffff;
    font-weight: 500;
}

/* ----------- Content / Tabela / Filtry ----------- */

/* Wrapper filtrów */
#change-list-filters {
    margin-bottom: 1.5rem;
    background: #ffffff;
    padding: 16px;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Pola formularza */
#changelist-search .form-group {
    margin-bottom: 12px;
}

/* Inputy/selecty */
#changelist-search .form-control {
    height: 38px;
    font-size: 0.88rem;
    width: 100%;
}

/* Przycisk szukaj */
#search_group .btn-primary {
    height: 38px;
    font-size: 0.88rem;
    width: 100%;
}

/* Akcje nad tabelą */
.change-list-actions {
    margin-bottom: 1rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* Select w akcjach */
.actions select.form-control {
    min-width: 100px;
    font-size: 0.88rem;
}

/* Przycisk Wykonaj */
.actions button[type="submit"] {
    padding: 6px 16px;
    font-size: 0.88rem;
    height: 36px;
}

/* Tabela */
.table {
    margin-bottom: 0;
    font-size: 0.88rem;
    white-space: normal;
    table-layout: auto;
}

/* Headery tabeli */
.table thead th {
    background-color: #f1f3f5;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 12px;
}

/* Komórki tabeli */
.table tbody td,
.table tbody th {
    padding: 8px 12px;
    vertical-align: middle;
}

/* Checkboxy */
.table td.action-checkbox {
    text-align: center;
    width: 40px;
}

/* Info i paginacja */
.dataTables_info {
    font-size: 0.85rem;
    padding: 0.75rem 0;
}

.pagination {
    margin: 0;
}

/* Usunięcie zbędnych br */
.clear {
    display: none;
}

/* ----------- Responsywność ----------- */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 10px;
    }

    .page-actions .btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    #change-list-filters {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions select.form-control {
        width: 100%;
    }
}
