@import "src/assets/styles/responsive-base.scss";

:host{
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(90vh - 36px);
  padding: 0;
  min-width: 50vw;
  max-width: 400px;
}

h2{
  padding: 12px;
  margin:0;
}

#selected-room-title{
  line-height: 24px;
  padding: 0px 12px;
  display:flex;
  align-items: center;

  mat-icon{
    margin-right:8px;
  }
}

app-avatar{
  height: 28px;
  width: 28px;
  margin-left: 0;
}

#content{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

#member-permission-container, #room-attach{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow:-1px 0px 1px inset rgba(0,0,0,0.5);
}

#permission-header{
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

.content-header{
  padding: 12px;
}

#member-permission{
  display: table;
  border-collapse: collapse;

  >div{
    display: table-row;
    border-bottom:1px solid rgba(0,0,0,0.2);

    >div{
      display: table-cell;
      vertical-align: middle;
      padding: 16px;
      
      .user{
        display: flex;
        align-items: center;

        .avatarname{
          white-space: nowrap;
        }
      }
    }
  }
}


#attach-room-dialog-content{
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 36px);
  box-sizing: border-box;
}

mat-list{
  width: 100%;
  flex: 1 1 auto;
  overflow-y: auto;
}

#anonymous-attention,#attached-drive-attention{
  font-size: 14px;
  margin: 12px;
  display: flex;
  span{
    margin-left: 5px;
  }
}
.one-row-title{
  display: flex;
  align-items: center;
}
.mat-table{
  background-color: unset;
}
.mat-cell, .mat-header-cell{
  padding-left: 8px;
  padding-right: 8px;
}
.center{
  text-align: center;
}
#selected-room{
  display: flex;
  padding: 0 20px;
  mat-icon{
    margin-right: 8px;
  }
}
.disabled{
  background-color: inherit !important;
  opacity: 0.5 !important;
  cursor: default !important;
}

mat-list-item{
  cursor: pointer;
}

mat-chip{
  font-size:12px;
  padding:8px;
  min-height: 24px;
}

