.permission__host-selector {
    justify-content: flex-end;
}

.permission__list {
    .dijitAccordionTitle {
        height: auto;
        padding: 0;
    }

    .dijitAccordionContainer-child {
        overflow-y: hidden !important;
    }
}

.hostSelectorButton {
    margin: 0;
}

.hostFolderAccordionPermissionsTitle {
    vertical-align: middle;

    img {
        vertical-align: middle;
    }
}

.permissionsActions {
    border: 1px solid #ddd;
    background: #f1f1f1;
    padding: 5px 8px;
    width: 550px;
    text-align: center;
    margin: 20px auto 0 auto;
    border-radius: 5px;

    a {
        margin-right: 20px;
    }
}

#loadingPermissionsAccordion {
    padding-top: 25px;
    text-align: center;
}

#rolePermissionsMsg {
    color: #e84048;
    text-align: center;
}

.permissions__bar-user-role {
    background-color: $color-palette-gray-200;
    border-radius: $border-radius-xs;
    border: solid 1px $color-palette-gray-400;
    display: flex;
    justify-content: space-between;
    margin-bottom: $spacing-1 * 2;
    padding: $spacing-1;

    [class$="Icon"],
    [class*="Icon"] {
        margin-right: $spacing-1;
    }

    .inline-form {
        margin-right: $spacing-1 * 4;
    }
}

.permissions__bar-user-role-actions,
.permissions__bar-user-role-main {
    align-items: center;
    display: flex;
}

.permissions__button-row {
    display: flex;
    justify-content: center;
    margin-top: $spacing-1 * 2;

    .applyChangesButton {
        margin-right: $spacing-1 * 3;
    }

    .reset-permissions {
        vertical-align: middle;
        line-height: $spacing-1 * 4;
    }

    .checkbox {
        margin-left: $spacing-1 * 2;
    }
}

.permissionWrapper {
    background: none;
    padding: 0;
    margin: 0 auto;
    width: 90%;

    .dijitAccordionTitle {
        padding: 0;
    }

    .dijitContentPane {
        padding: $spacing-1 * 3 0;
        box-sizing: content-box;
    }
}

.permissionTable {
    .permissionType {
        width: 20%;
        text-align: right;
    }
}

.permissionTableTitle {
    .folderName {
        padding-left: $spacing-1;
        text-align: left;
        vertical-align: middle;
        width: 20%;

        img {
            display: inline-block;
            margin-right: calc($spacing-1 / 2);
            vertical-align: sub;
        }
    }
}

.permissionTableTitle,
.permissionTable,
.accordionEntry {
    width: 100%;

    td,
    th {
        width: 10%;
        text-align: center;
    }

    td {
        padding: calc($spacing-1 / 2);
    }

    th {
        font-weight: bold;

        &.permissionType {
            width: 40%;
            font-weight: normal;
            padding-left: $spacing-1;
            text-align: left;
        }

        &.permissionTitle {
            font-weight: bold;
        }
    }
}

#assetPermissionsMessageWrapper {
    padding-top: 15px;
    color: red;
    text-align: center;
    font-weight: bolder;
}
