[class*='palstat'], .secure .tabset {
    margin-bottom:1rem;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient:horizontal;
    -webkit-box-direction:normal;
        -ms-flex-flow:row wrap;
            flex-flow:row wrap;
    -ms-flex-direction:row;
        flex-direction:row;
    -ms-flex-wrap:wrap;
        flex-wrap:wrap;
}
.nav-button.fusion-button {
    width:100%;
    display:block;
    margin-bottom:5px;
    float:none;
    clear:both;
}
ul.valikko, [class*='palstat'] {
    clear:both;
    float:none;
    width:100%;
}
ul.napit, ul.design-submenu {
    list-style:none;
    margin:0;
    padding:0;
}
ul.napit {
    padding-top:1rem;
    margin-top:1rem;
    border-top:1px solid #ddd;
}
ul.napit li {
    display:inline-block;
}
[class*='palstat']:after {
    content:"";
    display:block;
    float:none;
    clear:both;
}
.palstavasen, .palstaoikea {
    border-top:1px solid #ddd;
    padding:1rem 0;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
}
.palstavasen {
    float:left;
}
.palstaoikea {
    float:right;
}
.rwd-palstat4 .palstavasen {
    width:50%;
}

.rwd-palstat2 .palstavasen,
.rwd-palstat2 .palstaoikea {
    width:100%;
}
ul.napit .linkki,
.palstaoikea .linkki,
.linkki.fusion-button {
    background: #e10514;
    color: #fff;
    font-size:13px;
    font-weight:bold;
    text-align:center;
    padding: 10px 20px;
    margin-right: 5px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 10px;
}

.palstaoikea .linkki {
    float:left;
} 

.linkki.suuri {
    width:calc(100% - 5px);
}
.linkki.pieni {
    width:calc(33% - 5px);
    box-sizing: border-box;
}

[class*='palstat'].secure {
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
        -ms-flex-flow:column wrap;
            flex-flow:column wrap;
}

[class*='palstat'].secure > div {
    border: 1px solid #ddd;
    border-radius:1rem;
    padding:10px;
    margin-bottom:1rem;
}

.tabset {
    position:relative;
    z-index:0;
    -webkit-box-pack:justify;
        -ms-flex-pack:justify;
            justify-content:space-between;
}
.tabset:after {
    content:" ";
    width:auto;
    display:block;
    border-bottom:1px solid #ddd;
    position:absolute;
    bottom:0;
    z-index:1;
    left:-10px;
    right:-10px;
}

.tabset div.tab-ctrl {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    padding:10px 20px;
    border:1px solid #ddd;
    border-bottom-width:0;
    border-radius:1rem 1rem 0 0;
    max-width:calc(50% - 0.5rem);
    background-color:#fff;
    cursor:pointer;
}
.tabset div.tab-ctrl.active {
    z-index:2;
}

div.tab {
    display:none;
    padding:10px;
}
div.tab.active {
    display:block;
}
div.tab h3 {
    float:none;
    clear:both;
}

.ur-frontend-form {
    margin: 30px 0;
}

[class*='palstat'].secure .palstaoikea {
    padding:20px;
}

@media only screen and (min-width:1024px) {
    .rwd-palstat2 .palstavasen,
    .rwd-palstat2 .palstaoikea {
        width:50%;
    }
    .rwd-palstat4 .palstavasen {
        width:23.4%;
    }
    .rwd-palstat2 .palstaoikea {
        padding-left:1rem;
    }
    .palstaoikea .linkki {
        float:right;
    }
    [class*='palstat'].secure {
        -webkit-box-pack:justify;
            -ms-flex-pack:justify;
                justify-content:space-between;
        -webkit-box-orient:horizontal;
        -webkit-box-direction:normal;
            -ms-flex-flow:row wrap;
                flex-flow:row wrap;
    }
    [class*='palstat'].secure > div {
        max-width:calc(50% - 0.5rem);
        margin-bottom:0;
    }
}

