﻿@media screen and (min-width: 992px) {
    .perm-group {
        display: flex;
        align-items: flex-start;
        width: 100%;
        padding: 16px 0;
        border-bottom: 2px solid #ddd;
    }

    .perm-title {
        width: 256px;
        font-size: 1.3rem;
        margin: 6px 0;
    }

    .perm-switches {
        display: flex;
        flex-direction: column;
        width: calc(100% - 256px);
    }

    .perm-main {
        margin-bottom: 16px;
        width: 100%;
    }

    .perm-subs {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        border: 1px solid #ddd;
        padding: 16px 32px;
        border-radius: 8px;
        box-shadow: 0 0 32px #6661;
    }

    .perm-sub {
        width: 33%;
    }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    .perm-group {
        display: flex;
        align-items: flex-start;
        width: 100%;
        padding: 16px 0;
        border-bottom: 2px solid #ddd;
    }

    .perm-title {
        width: 224px;
        font-size: 1.2rem;
        margin: 6px 0;
    }

    .perm-switches {
        display: flex;
        flex-direction: column;
        width: calc(100% - 224px);
    }

    .perm-main {
        margin-bottom: 16px;
        width: 100%;
    }

    .perm-subs {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        border: 1px solid #ddd;
        padding: 16px 32px;
        border-radius: 8px;
        box-shadow: 0 0 32px #6661;
    }

    .perm-sub {
        width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .perm-group {
        display: flex;
        align-items: flex-start;
        width: 100%;
        padding: 16px 0;
        border-bottom: 2px solid #ddd;
    }

    .perm-title {
        width: 224px;
        font-size: 1.2rem;
        margin: 6px 0;
    }

    .perm-switches {
        display: flex;
        flex-direction: column;
        width: calc(100% - 224px);
    }

    .perm-main {
        margin-bottom: 16px;
        width: 100%;
    }

    .perm-subs {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        width: calc(100% + 224px);
        margin-left: -224px;
        border: 1px solid #ddd;
        padding: 16px 32px;
        border-radius: 8px;
        box-shadow: 0 0 32px #6661;
    }

    .perm-sub {
        width: 50%;
    }
}