.portal-layout { 
    display: flex; 
    gap: 30px; 
    margin-top: 20px; 
    margin-bottom: 40px; 
    align-items: stretch; /* Gwarantuje równe wysokości paneli */
    justify-content: center;
}

.static-sidebar { 
    width: 420px !important; 
    flex: 0 0 420px !important;
    display: flex;
    flex-direction: column;
}

.static-sidebar .card {
    height: 100%;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.dynamic-content { 
    width: 850px !important; 
    flex: 0 0 850px !important;
    display: flex;
    flex-direction: column;
}

/* WIDOK MOBILNY */
@media (max-width: 1270px) {
    body > .container { padding-top: 0 !important; }
    .portal-layout { 
        flex-direction: column; 
        align-items: center; 
        margin-top: 80px !important;
        margin-bottom: 30px;
    }
    .static-sidebar, .dynamic-content { 
        width: 100% !important; 
        flex: 1 1 auto !important; 
        max-width: 850px; 
    }
    .static-sidebar .card {
        margin-bottom: 2rem !important;
        height: auto !important;
    }
}

@media (max-height: 900px) and (min-width: 1271px) {
    body > .container { padding-top: 80px !important; }
}
